07.11.2015, 18:55
Hi guys,
my problem is that i want to use a function that checks if there's a number inside a string
and i want that number to be stored in a variable so i can use it later but i couldn't do that
here's my code
then, in OnDialogResponse, i want to get that integer "ID: %d" but how?
I need help
thanks in advance !
my problem is that i want to use a function that checks if there's a number inside a string
and i want that number to be stored in a variable so i can use it later but i couldn't do that
here's my code
pawn Код:
format(string, sizeof(string), "%s - ID: %d\n", VehicleName[vModel - 400], v);
ShowPlayerDialog(playerid, vehiclename, DIALOG_STYLE_LIST, "my vehicles", string, "Select", "");
pawn Код:
//OnDialogResponse
case vehiclename:
{
if(!response) return 0;
else
{
//i wanna get the integer "ID: %d" here from listitem or something
}
}
thanks in advance !