19.10.2013, 11:26
PHP код:
C:\Documents and Settings\Scample\Desktop\New Folder (8)\gamemodes\Private.pwn(22962) : error 001: expected token: ";", but found "for"
pawn Код:
CMD:tplist(playerid, params[])
{
#pragma unused params
new
count = 0,
h,
m,
tmp[128],
string[800];
new player1 = strval(tmp)
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
if( PlayerInfo[playerid][Trusted]>= 1)
{
format(string, 500, "%s[ID:%i]| Score: %d | Hours: %d |Mins: %d", PlayerName2(i),i,GetPlayerScore(player1),h,m);
//We are appending the string, so put %s before any new data is added,
//and that parameter actually refers to the string itself.
count++;
}
}
}
if (count == 0) ShowPlayerDialog(playerid, 806, DIALOG_STYLE_MSGBOX, "{FF0000}=™Online Trusted Player™=", "No Trusted player Currently Online", "Ok", "");
else ShowPlayerDialog(playerid, 806, DIALOG_STYLE_MSGBOX, "{FF0000}=™Online Trusted Player™=", string, "Ok", "");
return 1;
}