07.04.2014, 21:43
(
Last edited by crouch010; 08/04/2014 at 09:20 PM.
)
Hy everyone, i`m sorry for my bed english.
Let s start with my problem. I want to do, lets say a faction sistem. I created a document to save the values.
When i type /factions i want to appear a dialog with factions and other detail listed below readed from that document. problem is that it shows me only the last row readed from the document tot the entire start from 0 to the end.(i have done the load and update "public") Maybe you understand more from pictures. Thanks
The command(ZCMD):
http://postimg.org/image/tbw0zp8pv/ the code from file
http://postimg.org/image/q3rjmnmg3/ how its now and how it should be.
Solved!
Let s start with my problem. I want to do, lets say a faction sistem. I created a document to save the values.
When i type /factions i want to appear a dialog with factions and other detail listed below readed from that document. problem is that it shows me only the last row readed from the document tot the entire start from 0 to the end.(i have done the load and update "public") Maybe you understand more from pictures. Thanks
The command(ZCMD):
Code:
CMD:test(playerid, params[]) { if(IsPlayerConnectedEx(playerid)) { new titles[40 * sizeof(FactionsInfo)]; for(new idx = fnumber; idx < sizeof(FactionsInfo); idx ++) { format(titles, sizeof(titles), "[%d/%d] %s\n", FactionsInfo[idx][fOnlineMembers], FactionsInfo[idx][fMembersmax], FactionsInfo[idx][fName]); } ShowPlayerDialog(playerid, factionsdialog, DIALOG_STYLE_LIST, "Factions", titles, "Select", "Close"); } return 1; }
http://postimg.org/image/q3rjmnmg3/ how its now and how it should be.
Solved!