04.01.2017, 07:27
Hi, so I was trying to figured out how to spawn the specific vehicle id that the player owns from thiis dialog:
From there it's all good, showing all my 3 vehicles that I own on the list then I got confused how to spawn them in the next dialog:
I tried everything for an hour and couldn't figure it out the reason why I'm here , any ideas ?
Код HTML:
CMD:spawncar(playerid, params[]) { new string[128], count; foreach(new i : Vehicles) { if(PlayerInfo[playerid][pID] == VehicleInfo[i][vOwnerID]) { format(string, sizeof(string), "%sOwner: %s ID: %d\n", string, VehicleInfo[i][vOwner], i); count++; } } if(count) { Dialog_Show(playerid, SpawnCar, DIALOG_STYLE_LIST, "My Cars", string, "Close", ""); } else return SendErrorMessage(playerid, "You don't own any vehicle."); return 1; }
Код HTML:
Dialog:SpawnCar(playerid, response, listitem, inputtext[]) { if(response) { switch(listitem) { case 0: { } case 1: { } } } return 1; }