format() crashes my server
#1

Well, I used print() to debug my code and find the reason why my server is crashing, and it turns out that it gets stuck at the format line.

pawn Код:
format(string, sizeof(string), "[CHECKOUT:] You have purchased %s (%d) for $%d.", AttachmentObjects[listitem][attachname], AttachmentObjects[listitem][attachmodel], AttachmentObjects[listitem][attachprice]);
These are the enums associated with this line of code:

pawn Код:
enum AttachmentEnum
{
    attachmodel,
    attachname[24],
    attachprice
}

new AttachmentObjects[][AttachmentEnum] = {
{19006, "Glasses 1", 40},
{19007, "Glasses 2", 40},
{19008, "Glasses 3", 40},
{19009, "Glasses 4", 40},
{18891, "Bandana", 50},
{18911, "Mask", 70},
{18921, "Beret", 60},
{18926, "Hat", 40},
{18936, "Helmet", 80},
{18944, "Boater", 80},
{18962, "Boater", 80}
};
What am I doing wrong here?
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)