[HELP REQUEST] ShowPlayerDialog (list)
#9

Try this. Make sure you are using the file functions correctly and make sure you are formatting the string that stores the file directory.

pawn Код:
new items[250], key[8];
//Make sure you are formatting the "User" string before this
//-format(User, sizeof(User), USER_FILE, pName); //replace with ur file code..
for(new x=0; x<3; x++) //Starts with 0.  (Loop 0-2)
{
    format(key, sizeof(key), "item%d", x+1);
    format(items, sizeof(items), "%s%s\n", items, DOF2_GetString(User, key, "ITEMS")); //Continue formatting the string with the file value's until the loop ends
}
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_LIST, "List", items, "Go", "Cancel");
Reply


Messages In This Thread
[HELP REQUEST] ShowPlayerDialog (list) - by Micheal_ - 11.07.2011, 23:41
Re: [HELP REQUEST] ShowPlayerDialog (list) - by Rickye - 12.07.2011, 06:07
Re: [HELP REQUEST] ShowPlayerDialog (list) - by Micheal_ - 12.07.2011, 07:44
Re: [HELP REQUEST] ShowPlayerDialog (list) - by Toreno - 12.07.2011, 07:50
Re: [HELP REQUEST] ShowPlayerDialog (list) - by Micheal_ - 12.07.2011, 08:26
Re: [HELP REQUEST] ShowPlayerDialog (list) - by Toreno - 12.07.2011, 08:43
Re: [HELP REQUEST] ShowPlayerDialog (list) - by PotH3Ad - 12.07.2011, 09:03
Re: [HELP REQUEST] ShowPlayerDialog (list) - by Micheal_ - 12.07.2011, 09:43
Re: [HELP REQUEST] ShowPlayerDialog (list) - by PotH3Ad - 12.07.2011, 21:12

Forum Jump:


Users browsing this thread: 1 Guest(s)