format() crashes my server
#3

Hmm, well it shouldn't be. I'm using a loop to form a dialog string.

pawn Код:
new string2[4000+1];
        for(new x;x<sizeof(AttachmentObjects);x++)
        {
            format(string2, sizeof(string2), "%s%s - $%d\n", string2, AttachmentObjects[x][attachname], AttachmentObjects[x][attachprice]);
        }
        ShowPlayerDialog(playerid,71, DIALOG_STYLE_LIST, \
        "{FF0000}Select an item to purchase.", string2, "Buy", "Cancel");
Reply


Messages In This Thread
format() crashes my server - by Makaveli93 - 24.06.2012, 14:02
Re: format() crashes my server - by HuSs3n - 24.06.2012, 14:06
Re: format() crashes my server - by Makaveli93 - 24.06.2012, 14:10
Re: format() crashes my server - by Finn - 24.06.2012, 15:40

Forum Jump:


Users browsing this thread: 1 Guest(s)