09.09.2012, 21:16
Erros
Linhas
help pf.
Код:
error 001: expected token: ")", but found "[" error 029: invalid expression, assumed zero warning 215: expression has no effect error 001: expected token: ";", but found "]" fatal error 107: too many error messages on one line
pawn Код:
stock OpenSpec(playerid, specid)
{
for(new x=0; x<MAX_PLAYERS; x++)
{
if(GetPlayerState(x) == PLAYER_STATE_SPECTATING && OnSpec[x][gSpectateID] == playerid) // Erro
{
AdvanceSpectate(x);
}
}
if(IsPlayerInAnyVehicle(specid))
{
SetPlayerInterior(playerid,GetPlayerInterior(specid));
TogglePlayerSpectating(playerid, 1);
PlayerSpectateVehicle(playerid, GetPlayerVehicleID(specid));
OnSpec[playerid][gSpectateID] = specid;
ModSpec[playerid][gSpectateType] = ADMIN_SPEC_TYPE_VEHICLE;
}
else
{
SetPlayerInterior(playerid,GetPlayerInterior(specid));
TogglePlayerSpectating(playerid, 1);
PlayerSpectatePlayer(playerid, specid);
OnSpec[playerid][gSpectateID] = specid;
ModSpec[playerid][gSpectateType] = ADMIN_SPEC_TYPE_PLAYER;
}
SetPlayerVirtualWorld(playerid,GetPlayerVirtualWorld(specid));
return 1;
}