Vehicleid? - 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: Vehicleid? (
/showthread.php?tid=118568)
Vehicleid? -
Darekfred - 04.01.2010
Like i made a Dialog tuning, but how to make this like the dialog reads the vehicle id?
Code:
if(listitem == 7)
{
AddVehicleComponent(vehicleid, 1029);
SendClientMessage(playerid, 0xFFFFFFAA, "X-Flow Exhaust.");
return 1;
if(listitem == 8)
{
AddVehicleComponent(vehicleid, 1032);
SendClientMessage(playerid, 0xFFFFFFAA, "Alien Roof.");
return 1;
if(listitem == 9)
{
AddVehicleComponent(vehicleid, 1033);
SendClientMessage(playerid, 0xFFFFFFAA, "X-Flow Roof.");
return 1;
if(listitem == 10)
{
With this code i get errors "error 017: undefined symbol "vehicleid""
Re: Vehicleid? -
Jay_ - 04.01.2010
You need to store the vehicle id in a global variable from where your calling ShowPlayerDialog from.
Re: Vehicleid? -
MerLow - 04.01.2010
I think GetPlayerVehicleID(playerid) solve your problem.