How to check if there's a number in a string and get that number as a variable
#4

Quote:
Originally Posted by MD5
Посмотреть сообщение
Код:
//OnDialogResponse
case vehiclename:
		{
			if(!response) return 0;
			else
			{
			    new string[600];
                            format(string, sizeof(string), "%d blahbfbfbfbf\n", vehiclename, string);
			}
		}
I don't understand what u added

im trying to get the vehicle id so i can use it later to make a vehicle location
because my command is /locatev, it'll show u a dialog with ur vehicles and the vehicle u'll select will be located on the map with a mini-map
i've been struggling to get the id but couldnt
i tried ur code but didnt work
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)