/fixveh help
#1

Hey guys/girls. I am new with scripting and have been getting a few commands to work without errors. I wanted to create a command to fix a players vehicle. This command would be used by the player to fix their own vehicle. I tried a few variations and a few days and have not developed a solution. Could someone enlighten me onto what i'm doing wrong? The code is:

Код:
		if (strcmp("/fixveh", cmdtext, true) == 0)
		{
		    new vehicleid;
			IsPlayerInVehicle(playerid, vehicleid);
			RepairVehicle(vehicleid);
			return 1;
		}
Thanks!

P.S. With the code above, I am able to compile, run, and play on the server. However, when I use the command in a vehicle, it does not work.
Reply


Messages In This Thread
/fixveh help - by darkvsoul36 - 12.05.2012, 20:46
Re: /fixveh help - by SnG.Scot_MisCuDI - 12.05.2012, 20:51
Re: /fixveh help - by Mimic - 12.05.2012, 20:52
Re: /fixveh help - by AndreT - 12.05.2012, 20:56
Re: /fixveh help - by darkvsoul36 - 12.05.2012, 20:56
Re: /fixveh help - by sniperwars - 12.05.2012, 21:00
Re: /fixveh help - by RedWingz - 12.05.2012, 21:13
Re: /fixveh help - by darkvsoul36 - 14.05.2012, 17:55
Re: /fixveh help - by Faisal_khan - 14.05.2012, 18:01
Re: /fixveh help - by darkvsoul36 - 14.05.2012, 18:08

Forum Jump:


Users browsing this thread: 1 Guest(s)