SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 04/01/2010, 12:41 AM   #1
Darekfred
Big Clucker
 
Join Date: Oct 2009
Posts: 131
Reputation: 0
Default Vehicleid?

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""
Darekfred is offline  
Old 04/01/2010, 12:42 AM   #2
Jay_
Gangsta
 
Jay_'s Avatar
 
Join Date: Jul 2009
Posts: 654
Reputation: 204
Default Re: Vehicleid?

You need to store the vehicle id in a global variable from where your calling ShowPlayerDialog from.
Jay_ is offline  
Old 04/01/2010, 01:00 AM   #3
MerLow
Big Clucker
 
Join Date: Jul 2008
Posts: 64
Reputation: 0
Default Re: Vehicleid?

I think GetPlayerVehicleID(playerid) solve your problem.
MerLow is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
GetVehicleSpeed(vehicleid)?? VirSpectorX Help Archive 3 14/04/2010 08:29 AM
VehicleId AddStaticVehicle NPC nico005 Help Archive 1 05/10/2009 02:26 PM
VehicleID Grex Help Archive 4 16/09/2009 06:06 PM
[solved] vehicleid Marc_307 Help Archive 3 06/07/2009 02:33 PM


All times are GMT. The time now is 07:35 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.