[Ajuda] Erros
#1

Erros

Код:
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
Linhas

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;
}
help pf.
Reply
#2

Como й feito isso?

pawn Код:
OnSpec[x][gSpectateID]
??
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)