15.10.2009, 21:40
Hi, I have a problem. Namely:
I made myself:
new s[2048];
format(s, sizeof(s), "%s [UID:%d] (%s:%s) (%d:%d)\n", s, ID,ItemS[ModelID][Name], aweapons, Ilosc, Sp);
ShowPlayerDialog (playerid, 2202, DIALOG_STYLE_LIST, "UID Name and Special Shares" s, "Select", "Close");
Variable: are responsible for displaying the relevant parts in the "Menu". (format). Depending on if I have the database objects - shows me the list. eg I have 2 weapons, 2 weapons show me, I have 3 weapons shows me 3 weapons. Each item has its own unique number. And now I want to do, so that when I click on the option to select the function, intercepted a unique number and ModelID this item in the menu .. And now, if the item modelid example is 2 then something dzieje.np. if (example2 == modelid) (/ / some code here return 1
I made myself:
new s[2048];
format(s, sizeof(s), "%s [UID:%d] (%s:%s) (%d:%d)\n", s, ID,ItemS[ModelID][Name], aweapons, Ilosc, Sp);
ShowPlayerDialog (playerid, 2202, DIALOG_STYLE_LIST, "UID Name and Special Shares" s, "Select", "Close");
Variable: are responsible for displaying the relevant parts in the "Menu". (format). Depending on if I have the database objects - shows me the list. eg I have 2 weapons, 2 weapons show me, I have 3 weapons shows me 3 weapons. Each item has its own unique number. And now I want to do, so that when I click on the option to select the function, intercepted a unique number and ModelID this item in the menu .. And now, if the item modelid example is 2 then something dzieje.np. if (example2 == modelid) (/ / some code here return 1