SA-MP Forums Archive
[SOLVED] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [SOLVED] (/showthread.php?tid=464563)



[SOLVED] - Vexus - 17.09.2013

EDIT: Was a simple fix that I overlooked.


Re: [SOLVED] - Dragonsaurus - 17.09.2013

Make a greater newstring size.
pawn Код:
new string[64], newstring[512];
for(new i = 0; i != sizeof(HatObjects); ++i)
{
    format(string, sizeof(string),"%s\n", HatObjects[i]);
    strcat(newstring, string);
}
ShowPlayerDialog(playerid, OBJECT_HATS, DIALOG_STYLE_LIST, "{FFFFFF}Accessory System || {33CCFF}Hats", newstring, "Purchase", "Back");
Edit: Lol