[Ajuda] Na OnPlayerEnterVehicle - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Na OnPlayerEnterVehicle (
/showthread.php?tid=643344)
Na OnPlayerEnterVehicle -
teto27 - 18.10.2017
Bom ,
fiz um sistema de carteiras de habilitaзгo
new licence[MAX_PLAYERS];
se for 0 = sem licenзa , 1 = licenciado
entao eu tentei '-'
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(licence[playerid] != 1) return SendClientMessage(playerid, -1, " {F28CAA} [INFO]Vocк Nao Esta Liceciado , Retire Sua Carteira de Motorista, faзa o teste"), RemovePlayerFromVehicle(playerid);
{
}
}
No if(licence[playerid] != 1)
eu ja tentei =0 , E ==0 , e nao Funfa ja tentei <1 tbm
Re: Na OnPlayerEnterVehicle -
ZaHHak - 18.10.2017
Tenta assim, se nгo tiver carteira
Код:
if(!licence[playerid])
se tiver
Код:
if(licence[playerid])
Re: Na OnPlayerEnterVehicle -
IlanZ - 18.10.2017
PHP код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)
{
if(!licence[playerid])
RemovePlayerFromVehicle(playerid);
}
return 1;
}
Re: Na OnPlayerEnterVehicle -
C4rtm4n - 18.10.2017
Quote:
if(licence[playerid] != 1)
|
PHP код:
if(!(licenca[playerid]==1)) return ...
Em bool
PHP код:
if(licenca[playerid] != true) return ....