SA-MP Forums Archive
Someone see here any error? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Someone see here any error? (/showthread.php?tid=317140)



Someone see here any error? - SpiderWalk - 10.02.2012

pawn Код:
CMD:stats(playerid,params[])
{
    new str[128],gName[MAX_PLAYER_NAME];
    GetPlayerName(playerid,gName,sizeof(gName));

    format(str,sizeof(str),""embed_green"Player Stats from "embed_white"%s \n\n\n\n\
    "
embed_green"Score: "embed_white"%d\n\
    "
embed_green"Deaths: "embed_white"%d\n\
    "
embed_green"Kills: "embed_white"%d",
    gName,
    GetPlayerScore(playerid),
    Deaths[playerid],
    Kills[playerid],
    SPD(playerid,Dialog:Stats,BOX,""embed_white"Player Stats",str,"Ok","");
   
    return 1;
}
Error
Код:
H:\samp03dsvr_win32(1)\filterscripts\DP.pwn(930 -- 935) : error 001: expected token: ",", but found ";"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.



Re: Someone see here any error? - Babul - 10.02.2012

the SPD is ShowPlayerDialog, right? you forgot to close this line:
pawn Код:
Kills[playerid]);



Re: Someone see here any error? - N0FeaR - 10.02.2012

nvm wrong answer.


Re: Someone see here any error? - SpiderWalk - 10.02.2012

Quote:
Originally Posted by Babul
Посмотреть сообщение
the SPD is ShowPlayerDialog, right? you forgot to close this line:
pawn Код:
Kills[playerid]);
aaaaaaaaaaaa Thanks i didnt saw it.. Thanks