24.06.2012, 14:02
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.
These are the enums associated with this line of code:
What am I doing wrong here?
pawn Код:
format(string, sizeof(string), "[CHECKOUT:] You have purchased %s (%d) for $%d.", AttachmentObjects[listitem][attachname], AttachmentObjects[listitem][attachmodel], AttachmentObjects[listitem][attachprice]);
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}
};