23.12.2011, 12:03
Alright, here's the enum:
Then the full sscanf code for login
Anything else you need to see, feel free to request.
pawn Код:
Username[24],
Password[64],
IP[16],
Float:pX,
Float:pY,
Float:pZ,
Interior,
VWorld,
Level,
Money,
Skin,
Gender,
Then the full sscanf code for login
pawn Код:
if(mysql_fetch_row(szQuery2)) { sscanf(str, "e<p<|>s[28]s[80]s[20]fffdddddd>", User[playerid]); }
format(szQuery2, sizeof(szQuery2), "UPDATE "SQL_ACCOUNT_TABLE" SET IP = '%s' WHERE Username = '%s'", pIP(playerid), pName(playerid));
mysql_query(szQuery2);