28.01.2015, 19:56
PHP код:
if(strcmp(cmd, "/eventfreezeall", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 5)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(eventon(i) == 1)
{
TogglePlayerControllable(i, 0);
format(string, sizeof(string), "ADMIN: Замрази всички в евента");
SendClientMessage(i, COLOR_ORANGE, string);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Ти не си админ!");
}
}
return 1;
}
PHP код:
D:\Olcay\StreetWar\gamemodes\Credo.pwn(7055) : error 012: invalid function call, not a valid address
D:\Olcay\StreetWar\gamemodes\Credo.pwn(7055) : warning 215: expression has no effect
D:\Olcay\StreetWar\gamemodes\Credo.pwn(7055) : error 001: expected token: ";", but found ")"
D:\Olcay\StreetWar\gamemodes\Credo.pwn(7055) : error 029: invalid expression, assumed zero
D:\Olcay\StreetWar\gamemodes\Credo.pwn(7055) : fatal error 107: too many
Help me please...