SA-MP Forums Archive
I have a Problem o.o - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: I have a Problem o.o (/showthread.php?tid=264858)



I have a Problem o.o - weper - 28.06.2011

What is the problem in this?

new Buyableveh1;

public OnGameModeInit()
{
Buyableveh1 = CreateVehicle(481,47.0560,1157.3497,18.1752,178.13 13,3,3, 60);
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(GetPlayerVehicleID(playerid) == Buyableveh1)
{
ShowPlayerDialog(playerid,1001,DIALOG_STYLE_LIST," Vehicle","Start\nBuy (7000$)\nSell\nVehicleID\nLeave Vehicle","OK", "CLOSE");
}
}
}

I can't see the dialog, if i go in the vehicle :S Pls help
(Sorry for my bad english)


Re: I have a Problem o.o - weper - 28.06.2011

don't working :S


Re: I have a Problem o.o - BaubaS - 28.06.2011

Lol, GetPlayerVehicleID will return 0 in OnPlayerEnterVehicle, because he didnt entered the car yet. Also, how the f... player state can be driver, if he just started entering the car?

if(vehicleid == Buyableveh1)