forward OnDefaultParseFile(extraid, value [], key [], tag [], file []);
public OnDefaultParseFile(extraid, value [], key [], tag [], file [])
{
return printf("OnDefaultParseFile(%d, %s, %s, %s, %s)", extraid, value, key, tag, file);
}
forward __OnDefaultParseFile(extraid, value [], key [], tag [], file []);
public __OnDefaultParseFile(extraid, value [], key [], tag [], file [])
{
return printf("OnDefaultParseFile(%d, %s, %s, %s, %s)", extraid, value, key, tag, file);
}
pawn Код:
|
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;
}
stock ReverseSpectate(playerid)
{
if(ConnectedPlayers(playerid) == 2)
return StopSpectate(playerid);
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;
}
if(ConnectedPlayers() == 2) { StopSpectate(playerid); return 1; }
PT o erro ainda permanece
A linha 15411 й essa aqui \/ PHP код:
|
if(ConnectedPlayers == 2) { StopSpectate(playerid); return 1; }