[Ajuda] Na OnPlayerEnterVehicle
#1

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
Reply
#2

Tenta assim, se nгo tiver carteira
Код:
if(!licence[playerid])
se tiver
Код:
if(licence[playerid])
Reply
#3

PHP код:
public OnPlayerStateChange(playeridnewstateoldstate)
{
    if(
oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)
    {
        if(!
licence[playerid]) 
            
RemovePlayerFromVehicle(playerid);
    }
    return 
1;

Reply
#4

Quote:

if(licence[playerid] != 1)

PHP код:
if(!(licenca[playerid]==1)) return ... 
Em bool

PHP код:
if(licenca[playerid] != true) return .... 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)