07.10.2011, 10:49
Error:
Error Area:
PHP код:
error 001: expected token: "]", but found ")"
pawn Код:
public OnPlayerText(playerid, text[])
{
if(text[0] == '@')
{
new Pname[24], string[150];
GetPlayerName(playerid, Pname, 24);
format(string, sizeof(string), "|TEAM CHAT| %s(%d): %s", Pname, playerid, text[1]);
for(new i; i<MAX_PLAYERS; i++)
{
if(!IsPlayerConnected(i)) continue;
if(PoliceRank[playerid] >= PoliceRank[i] || (GangRank[playerid >= GangRank[i])
SendClientMessage(i, -1, string);
}
return 0;
}
return 1;
}
pawn Код:
if(PoliceRank[playerid] >= PoliceRank[i] || (GangRank[playerid >= GangRank[i])