/factions dialog
#1

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):
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/tbw0zp8pv/ the code from file
http://postimg.org/image/q3rjmnmg3/ how its now and how it should be.


Solved!
Reply


Messages In This Thread
/factions dialog - by crouch010 - 07.04.2014, 21:43
Re: /factions dialog - by Guest9328472398472 - 07.04.2014, 21:52
Re: /factions dialog - by crouch010 - 07.04.2014, 21:54
Re: /factions dialog - by crouch010 - 07.04.2014, 22:18
Re: /factions dialog - by Stevolas - 07.04.2014, 22:41
Re: /factions dialog - by crouch010 - 07.04.2014, 22:52

Forum Jump:


Users browsing this thread: 1 Guest(s)