08.10.2016, 13:36
Hello!
I'm trying to make a loop using my MySQL data. I have 5 columns, called A1, A2, A3, A4 and A5.
I don't know how I can do, for example (the code is my idea, don't work):
Obviously, Vehicle[id]["A"+i] should't work. Anyone know how I can make it? Thanks!
I'm trying to make a loop using my MySQL data. I have 5 columns, called A1, A2, A3, A4 and A5.
I don't know how I can do, for example (the code is my idea, don't work):
Код:
new id = GetPlayerVehicleID(playerid); new string[240]; for (new i = 1; i < 6; i++) { format(string, sizeof(string), "%sItem ID Stored on DB: %d", string, Vehicle[id]["A"+1]; } ShowPlayerDialog(playerid, DIALOG_TRUNK, DIALOG_STYLE_LIST, "Trunk", string, "Change", "Exit");