One question...
#1

So, this is a fragment of my script:

Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	if(dialogid == TUNINGMENU)
	{
		if(response)
		{
			if(listitem == 0) // Hydraulics
			{
			AddVehicleComponent(vehicle, 1087);
			SendClientMessage(playerid, COLOR_GREEN, "You have succesfully added Hydraulics to your vehicle!");
			}
And I need help... You can add hydraulics ONLY in vehicle IDs 511 and 512 (example)... How to make this:

Other ID:

Код:
SendClientMessage(playerid, COLOR_RED, "ERROR: You can't add hydraulics to this vehicle!");
True ID:

Код:
SendClientMessage(playerid, COLOR_GREY, "You have succesfully added hydraulics to your vehicle!");
AddVehicleComponent(vehicle, 1087);
Reply


Messages In This Thread
One question... - by Libra - 10.06.2010, 12:07
Re: One question... - by DJDhan - 10.06.2010, 12:40

Forum Jump:


Users browsing this thread: 1 Guest(s)