31.08.2015, 17:53
Well, that is pretty easy. You just have to create a multi dimensional array storing the vehicle ID for each listitem.
Some theory code here:
Some theory code here:
Код:
new DialogInfo[MAX_PLAYERS][100]; new count; for( new i; I!=MAX_VEHICLES;i++) { //check if is owned by the player DialogInfo[playerid][count] = i; count++; } //on dialog response new vehicleid = DialogInfo[playerid][listitem];