code error:
#2

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {

    new carro = GetPlayerVehicleID(playerid);
    for(new i = 0; i < sizeof(CarroA); i ++)
    if(carro == CarroA[i])
    if(Gang[playerid] != aztecas)
    RemovePlayerFromVehicle(playerid);

    for(new i = 0; i < sizeof(CarroG); i ++)
    if(carro == CarroG[i])
    if(Gang[playerid] != grove)
    RemovePlayerFromVehicle(playerid);

    for(new i = 0; i < sizeof(CarroV); i ++)
    if(carro == CarroV[i])
    if(Gang[playerid] != vagos)
    RemovePlayerFromVehicle(playerid);

    for(new i = 0; i < sizeof(CarroB); i ++)
    if(carro == CarroB[i])
    if(Gang[playerid] != ballas)
    RemovePlayerFromVehicle(playerid);
    } //Only one flower bracket is needed
    return 1;
}
Reply


Messages In This Thread
code error: - by Pedro Pawno - 28.03.2013, 00:52
Re: code error: - by LeeXian99 - 28.03.2013, 01:47

Forum Jump:


Users browsing this thread: 1 Guest(s)