16.12.2016, 17:23
Hi, why isn't that query below working?
I don't see anything wrong in the code, but it doesn't create a row and it creates a huge log: http://pastebin.com/MyL6GgRu (that's some messy stuff and I can't even find anything about the insert query there)
Код:
new query[300]; mysql_format(g_MySQL, query, sizeof(query), "INSERT INTO `accounts` (`Name`, `Password`, `Salt`, `Email`, `IP`, `LastLogin`) VALUES ('%s', '%s', '%s', '%s', '%s', '%s')", GetName(playerid), PlayerInfo[playerid][pPassword], PlayerInfo[playerid][pSalt], PlayerInfo[playerid][pEmail], PlayerInfo[playerid][pIP], PlayerInfo[playerid][pLastLogin]); mysql_tquery(g_MySQL, query, "OnQueryFinished", "dd", playerid, QUERY_CREATE_ACCOUNT);