06.01.2014, 15:19
Quote:
|
As donhu said, your string size might be wrong. Try making it higher. Or, you did reach the text limit, although I doubt that, however it might be possible.
The limit is 2048. Show us the rest of the code. |
pawn Код:
if(!strcmp(cmdtext, "/toys", true))
{
for(new x;x<MAX_PLAYER_ATTACHED_OBJECTS;x++)
{
if(IsPlayerAttachedObjectSlotUsed(playerid, x)) format(string1, sizeof(string1), "%s%d (Used)\n", string1, x);
else format(string1, sizeof(string1), "Item 1\nItem 2\nItem 3\nItem 4\nItem 5\nItem 6\nItem 7\nItem 8\nItem 9\nItem 10", string1, x);
}
ShowPlayerDialog(playerid, DIALOG_ATTACH_INDEX_SELECTION, DIALOG_STYLE_LIST, \
"{FF0000}Items Modification - Index Selection", string1, "Select", "Cancel");
return 1;
}


