Help with OnPlayerEnterVehicle and Operators ... - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help with OnPlayerEnterVehicle and Operators ... (
/showthread.php?tid=408159)
Help with OnPlayerEnterVehicle and Operators ... -
OTACON - 17.01.2013
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.
Re: Help with OnPlayerEnterVehicle and Operators ... -
Diorturato - 17.01.2013
Your VariableNew[playerid] returned 0. Check it.