28.05.2016, 05:22
hello guys i made this CMD:-
but i am getting these errors:-
and the line getting error is this:-
kindly tell me how to fix it.
PHP код:
CMD:vips(playerid, params[])
{
#pragma unused params
new
count = 0,
string[800];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
if(GetPVarInt(playerid, "DonateRank") >= 1)
{
format(string, 500, "%s %s [ID:%i]", string, i, GetPVarInt(playerid, "DonateRank");
count++;
}
}
}
if (count == 0) ShowPlayerDialog(playerid, 800, DIALOG_STYLE_MSGBOX, "{F81414}Online V.I.Ps", "{00FFEE}No V.I.Ps Online", "Close", "");
else ShowPlayerDialog(playerid, 800, DIALOG_STYLE_MSGBOX, "{F81414}Online V.I.Ps", string, "Close", "");
return 1;
}
PHP код:
D:\michaelwcrp\filterscripts\Command(2).pwn(74) : error 001: expected token: ",", but found ";"
PHP код:
Line 74:- format(string, 500, "%s %s [ID:%i]", string, i, GetPVarInt(playerid, "DonateRank");