29.05.2013, 21:24
First of all, I suggest you to switch over threaded callbacks and cached functions provided by BlueG MySQL plugin. The way you're making the script extremely inefficient.
Anyway, you're not loading the data at all.
You are only loading the first "d" (integer) value in DL_Data[LableID] - also not properly.
The four remaining values are parsed properly but they are not loaded in each variable.
This way should make it work:
Also, you've chosen to parse the string with an array of 300 instead of 500, as you defined in your enum. That doesn't make any sense. It's just better if you change both arrays to 128 which is the maximum length of a string.
Anyway, you're not loading the data at all.
pawn Код:
sscanf(FetchRow, "p<|>dfffs[300]>", DL_Data[LableID]);
The four remaining values are parsed properly but they are not loaded in each variable.
This way should make it work:
pawn Код:
sscanf(FetchRow, "p<|>dfffs[300]>", DL_Data[LableID][DynamicLableID], DL_Data[LableID][DL_X], DL_Data[LableID][DL_Y], DL_Data[LableID][DL_String]);