15.04.2012, 12:25
(
Последний раз редактировалось DaRkM; 15.04.2012 в 14:04.
)
I'm new to sscanf, so I'm not sure what exactly is going on, but it looks like first string isn't stopping at the delimiter.
Everything after the first string is being skipped until the very end, which applies cUnused to cParkTicket.
Enum:
Any help is greatly appreciated.
EDIT: I know it's sscanf, as I have it print the row from the SQL query with print(row); and it's printing it correctly.
Everything after the first string is being skipped until the very end, which applies cUnused to cParkTicket.
pawn Код:
sscanf(row, "p<|>e<ddffffdds[64]ds[15]ddddddddddddddddddds[64]d>", CarInfo[carid]);
pawn Код:
enum cInfo
{
cID,
cModel,
Float:cLocationx,
Float:cLocationy,
Float:cLocationz,
Float:cAngle,
cColorOne,
cColorTwo,
cOwner[MAX_PLAYER_NAME],
cOwned,
cPlate[15],
cLock,
cPaintjob,
cVirWorld,
cUnused,
cComponent0,
cComponent1,
cComponent2,
cComponent3,
cComponent4,
cComponent5,
cComponent6,
cComponent7,
cComponent8,
cComponent9,
cComponent10,
cComponent11,
cComponent12,
cComponent13,
cCode,
cTicketer[MAX_PLAYER_NAME],
cParkTicket
};
new CarInfo[MAX_VEHICLES][cInfo];
EDIT: I know it's sscanf, as I have it print the row from the SQL query with print(row); and it's printing it correctly.