[Pomoc] stats.

Započeo Otisao s Foruma!, Februar 14, 2012, 21:35:58 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.


Skripta koju koristim: FG
Detaljan opis problema: mjenjao sam stats i ovo izbaci pomoc.
Dio Skripte: if (strcmp(cmd, "/stats", true) == 0)
{

if (gPlayerLogged[playerid] != 0)
{
    new ftext[30];
    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{ ftext = "LS PD"; }
  else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
{ ftext = "FBI"; }
else if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
{ ftext = "SWAT"; }
        else if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
{ ftext = "Hitna Pomoc"; }
  else if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
{ ftext = "Yakuza"; }
else if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
{ ftext = "LCN"; }
else if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)
{ ftext = "Vlada"; }
else if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
{ ftext = "Hitman Org"; }
else if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9)
{ ftext = "Novinari"; }
else if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)
{ ftext = "TAXI"; }
else if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)
{ ftext = "SF PD"; }
else if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
{ ftext = "Ruska Mafija"; }
else if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
{ ftext = "Triads"; }
//else if(PlayerInfo[targetid][pMember] == 14 || PlayerInfo[targetid][pLeader] == 14)
//{ ftext = "Yamaguchi"; }
else if(PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)
{ ftext = "Crips"; }
else if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
{ ftext = "Bloods"; }
else if(PlayerInfo[playerid][pMember] == 18 || PlayerInfo[playerid][pLeader] == 18)
{ ftext = "Groove Street"; }
else if(PlayerInfo[playerid][pMember] == 19 || PlayerInfo[playerid][pLeader] == 19)
{ ftext = "Ms 13"; }
else if(PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20)
{ ftext = "Parking Servis"; }
/* else if(PlayerInfo[targetid][pMember] == 17 || PlayerInfo[targetid][pLeader] == 17)
{ ftext = "CIA"; }*/
else
{ ftext = "Nijedna"; }
new f2text[20];
    if(PlayerInfo[playerid][pFMember] < 255) { f2text = FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyName]; }
else { f2text = "Nijedna"; }

new htext[30];
if(PlayerInfo[playerid][pPhousekey] == 255)
{ htext = "NE"; }
else
{ htext = "DA"; }

new c1text[30];
if(PlayerInfo[playerid][pPhousekey] == 999)
{ c1text = "NE"; }
else
{ c1text = "DA"; }

new c2text[30];
if(PlayerInfo[playerid][pPhousekey] == 999)
{ c2text = "NE"; }
else
{ c2text = "DA"; }

new c3text[30];
if(PlayerInfo[playerid][pPhousekey] == 999)
{ c3text = "NE"; }
else
{ c3text = "DA"; }
ShowStats(playerid,playerid);
GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "  %s vadi svoju osobnu i gleda.", sendername);
    ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
          {
            new str[128], pName[MAX_PLAYER_NAME]
            new money[128]
                GetPlayerName(playerid, pName, sizeof(pName));
GetPlayerMoney(playerid, money, sizeof(money)); // wtf ? :S
format(string, sizeof(string), "Ime i prezime:%s\nLevel:%d\nGodine%d\nPol:%s\nDonatorRank:%d\nNovcanik $%d\nBanka:$%d\nBroj telefona%d\nOrgranizacija %s\n Kuca:%s \nVozilo1:%s \nVozilo2:%s\nVozilo 3:%s\nExtremeRP Bodova %d",
pName,PlayerInfo[playerid][pLevel],PlayerInfo[playerid][pAge],PlayerInfo[playerid][pSex],PlayerInfo[playerid][pDonateRank],PlayerInfo[playerid][pCash],PlayerInfo[playerid][pAccount],PlayerInfo[playerid][pPnumber],ftext,htext,c1text,c2text,c3text,[PlayerInfo][playerid][gPupgrade]); //zavrsi
ShowPlayerDialog(playerid,2003,DIALOG_STYLE_MSGBOX ,"|°~Extreme Roleplay - Informacije o korisnickom racunu~°|",string,"Ok","Zatvori");

}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "   Niste prijavljeni!");
}

return 1;
}


ovo izbaci
C:\Documents and Settings\IbroO\Desktop\rpmd\gamemodes\sarajevo.pwn(28554) : warning 202: number of arguments does not match definition
C:\Documents and Settings\IbroO\Desktop\rpmd\gamemodes\sarajevo.pwn(28554) : warning 202: number of arguments does not match definition
C:\Documents and Settings\IbroO\Desktop\rpmd\gamemodes\sarajevo.pwn(28555 -- 28556) : error 029: invalid expression, assumed zero
C:\Documents and Settings\IbroO\Desktop\rpmd\gamemodes\sarajevo.pwn(28556) : warning 215: expression has no effect
C:\Documents and Settings\IbroO\Desktop\rpmd\gamemodes\sarajevo.pwn(28556) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\IbroO\Desktop\rpmd\gamemodes\sarajevo.pwn(28556) : error 029: invalid expression, assumed zero
C:\Documents and Settings\IbroO\Desktop\rpmd\gamemodes\sarajevo.pwn(28556) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.


Neke slike/video za lakse dobivanje pomoci(neobavezno):
[[/center]
DgL <3
Otisao s Foruma zz


ajde oznaci koje su koje linije daj liniju 28554 i liniju 28556

â–º USKORO â—,,
•Reg/Log System [100%]•House System [80%]•Bizz System [50%] •Ownership system [90%] •Admin System [90%] •GM System [0%] •Stats System [100%] •Jail System [90%] •Job System [70%] •Event System [40%] •Bank System [60%] •Org/Mafije [35%] •Donator System [10%]
I najveci talenti gube se u neradu, zato nemoj traziti izgovor da ne znas nego naÄ'i resenje!

      GetPlayerMoney(playerid, money, sizeof(money)); // wtf ? :S 28554

28556 pName,PlayerInfo[playerid][pLevel],PlayerInfo[playerid][pAge],PlayerInfo[playerid][pSex],PlayerInfo[playerid][pDonateRank],PlayerInfo[playerid][pCash],PlayerInfo[playerid][pAccount],PlayerInfo[playerid][pPnumber],ftext,htext,c1text,c2text,c3text,[PlayerInfo][playerid][gPupgrade]); //zavrsi

edit ovo je

format(string, sizeof(string), "Ime i prezime:%s\nLevel:%d\nGodine%d\nPol:%s\nDonatorRank:%d\nNovcanik $%d\nBanka:$%d\nBroj telefona%d\nOrgranizacija %s\n Kuca:%s \nVozilo1:%s \nVozilo2:%s\nVozilo 3:%s\nExtremeRP Bodova %d", ovo je 28555
Poslednja Izmena: Februar 14, 2012, 21:52:22 POSLE PODNE od ¢fg™87
[[/center]
DgL <3
Otisao s Foruma zz


Probaj :
if (strcmp(cmd, "/stats", true) == 0)
{

if (gPlayerLogged[playerid] != 0)
{
    new ftext[30];
    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{ ftext = "LS PD"; }
  else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
{ ftext = "FBI"; }
else if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
{ ftext = "SWAT"; }
        else if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
{ ftext = "Hitna Pomoc"; }
  else if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
{ ftext = "Yakuza"; }
else if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
{ ftext = "LCN"; }
else if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)
{ ftext = "Vlada"; }
else if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
{ ftext = "Hitman Org"; }
else if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9)
{ ftext = "Novinari"; }
else if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)
{ ftext = "TAXI"; }
else if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)
{ ftext = "SF PD"; }
else if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
{ ftext = "Ruska Mafija"; }
else if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
{ ftext = "Triads"; }
//else if(PlayerInfo[targetid][pMember] == 14 || PlayerInfo[targetid][pLeader] == 14)
//{ ftext = "Yamaguchi"; }
else if(PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)
{ ftext = "Crips"; }
else if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
{ ftext = "Bloods"; }
else if(PlayerInfo[playerid][pMember] == 18 || PlayerInfo[playerid][pLeader] == 18)
{ ftext = "Groove Street"; }
else if(PlayerInfo[playerid][pMember] == 19 || PlayerInfo[playerid][pLeader] == 19)
{ ftext = "Ms 13"; }
else if(PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20)
{ ftext = "Parking Servis"; }
/* else if(PlayerInfo[targetid][pMember] == 17 || PlayerInfo[targetid][pLeader] == 17)
{ ftext = "CIA"; }*/
else
{ ftext = "Nijedna"; }
new f2text[20];
    if(PlayerInfo[playerid][pFMember] < 255) { f2text = FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyName]; }
else { f2text = "Nijedna"; }

new htext[30];
if(PlayerInfo[playerid][pPhousekey] == 255)
{ htext = "NE"; }
else
{ htext = "DA"; }

new c1text[30];
if(PlayerInfo[playerid][pPhousekey] == 999)
{ c1text = "NE"; }
else
{ c1text = "DA"; }

new c2text[30];
if(PlayerInfo[playerid][pPhousekey] == 999)
{ c2text = "NE"; }
else
{ c2text = "DA"; }

new c3text[30];
if(PlayerInfo[playerid][pPhousekey] == 999)
{ c3text = "NE"; }
else
{ c3text = "DA"; }
ShowStats(playerid,playerid);
GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "  %s vadi svoju osobnu i gleda.", sendername);
    ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
          {
            new str[128], pName[MAX_PLAYER_NAME]
            new money[128]
                GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "Ime i prezime:%s\nLevel:%d\nGodine%d\nPol:%s\nDonatorRank:%d\nNovcanik $%d\nBanka:$%d\nBroj telefona%d\nOrgranizacija %s\n Kuca:%s \nVozilo1:%s \nVozilo2:%s\nVozilo 3:%s\nExtremeRP Bodova %d",
pName,PlayerInfo[playerid][pLevel],PlayerInfo[playerid][pAge],PlayerInfo[playerid][pSex],PlayerInfo[playerid][pDonateRank],PlayerInfo[playerid][pCash],PlayerInfo[playerid][pAccount],PlayerInfo[playerid][pPnumber],ftext,htext,c1text,c2text,c3text,[PlayerInfo][playerid][gPupgrade]); //zavrsi
ShowPlayerDialog(playerid,2003,DIALOG_STYLE_MSGBOX ,"|°~Extreme Roleplay - Informacije o korisnickom racunu~°|",string,"Ok","Zatvori");

}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "   Niste prijavljeni!");
}

return 1;
}

isto nece.. :'(
[[/center]
DgL <3
Otisao s Foruma zz



eto ti gore xd.
[[/center]
DgL <3
Otisao s Foruma zz