Help with OnPlayerEnterVehicle and Operators ...
#1

Buenas a Todos, Ayuda con esto...

So it works perfectly:
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(!ispassenger)
    {
        if(vehicleid == variablevehiculo)
        {
            if(!Variable[playerid])  //<------------
            {
                //SendClientMessage ...
            }
            return 0;
        }
    }
    return 1;
}
put another variable and no longer works.
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(!ispassenger)
    {
        if(vehicleid == variablevehiculo)
        {
            if(!Variable[playerid] && !VariableNew[playerid]) //<------------
            {
                //SendClientMessage ...
            }
            return 0;
        }
    }
    return 1;
}
I can say that happens?.
Thanks in advance.

sorry for my English.
Reply
#2

Your VariableNew[playerid] returned 0. Check it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)