01.02.2015, 12:53
Novos erros:
pwn(15411) : error 012: invalid function call, not a valid address
pwn(15411) : error 001: expected token: ";", but found ")"
pwn(15411) : error 029: invalid expression, assumed zero
pwn(15411) : fatal error 107: too many error messages on one line
pwn(15411) : error 012: invalid function call, not a valid address
pwn(15411) : error 001: expected token: ";", but found ")"
pwn(15411) : error 029: invalid expression, assumed zero
pwn(15411) : fatal error 107: too many error messages on one line
PHP код:
stock ReverseSpectate(playerid)
{
if(ConnectedPlayers(playerid) == 2) { StopSpectate(playerid); return 1; }
if(GetPlayerState(playerid) == PLAYER_STATE_SPECTATING && Player[playerid][gSpectateID] != INVALID_PLAYER_ID) {
for(new x=Player[playerid][gSpectateID]-1; x>=0; x--) {
if(x == 0) { x = MAX_PLAYERS; }
if(IsPlayerConnected(x) && x != playerid) {
if(GetPlayerState(x) == PLAYER_STATE_SPECTATING && Player[x][gSpectateID] != INVALID_PLAYER_ID ||
(GetPlayerState(x) != 1 && GetPlayerState(x) != 2 && GetPlayerState(x) != 3))
{
continue;
}
else {
StartSpectate(playerid, x);
break;
}
}
}
}
return 1;
}