MySQL Query
#1

Hi, why isn't that query below working?
Код:
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);
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)
Reply


Messages In This Thread
MySQL Query - by GoldenLion - 16.12.2016, 17:23
Re: MySQL Query - by Runn3R - 16.12.2016, 18:11
Re: MySQL Query - by GoldenLion - 16.12.2016, 18:18
Re: MySQL Query - by Runn3R - 16.12.2016, 18:31
Re: MySQL Query - by GoldenLion - 16.12.2016, 18:58

Forum Jump:


Users browsing this thread: 1 Guest(s)