[Ajuda] Definir veiculos
#9

Quote:

H:\ftn.pwn(385) : error 025: function heading differs from prototype
H:\ftn.pwn(400) : warning 209: function "OnPlayerStateChange" should return a value

№ Erro
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldastate)
№ Warning
pawn Код:
}
Code Completo :
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldastate)
{
    if(newstate == PLAYER_STATE_DRIVER)
    {
        if(GetPlayerVehicleID(playerid) >= 1 && GetPlayerVehicleID(playerid) <= 18 && Team[playerid] != TEAM_CT)
        {
            RemovePlayerFromVehicle(playerid);
            return SendClientMessage(playerid, -1, "Voce nгo й policial!");
        }
        else if(GetPlayerVehicleID(playerid) >= 19 && GetPlayerVehicleID(playerid) <= 28 && Team[playerid] != TEAM_T)
        {
            RemovePlayerFromVehicle(playerid);
            return SendClientMessage(playerid, -1, "Voce nгo й terrorista!");
        }
    }
// й essa aqi
}
Reply


Messages In This Thread
[Ajuda] Definir veiculos - by Laercio - 11.11.2011, 15:49
Re: [Ajuda] Definir veiculos - by Pharrel - 11.11.2011, 16:07
Re: [Ajuda] Definir veiculos - by Laercio - 11.11.2011, 16:08
Re: [Ajuda] Definir veiculos - by ViniBorn - 11.11.2011, 16:09
Re: [Ajuda] Definir veiculos - by Laercio - 11.11.2011, 16:12
Re: [Ajuda] Definir veiculos - by Pharrel - 11.11.2011, 16:13
Re: [Ajuda] Definir veiculos - by Laercio - 11.11.2011, 16:17
Re: [Ajuda] Definir veiculos - by Pharrel - 11.11.2011, 16:20
Re: [Ajuda] Definir veiculos - by Laercio - 11.11.2011, 16:25
Re: [Ajuda] Definir veiculos - by Pharrel - 11.11.2011, 16:30

Forum Jump:


Users browsing this thread: 1 Guest(s)