Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Not registering - Callback Parameter

$
0
0
I can't see the problem.

After you type a password in upon registration it logs you saying the account has registered successfully but the data dosen't save after checking the logs the callback parameter could not match.

Code:

[01:53:08] [DEBUG] mysql_format - connection: 1, len: 800, format: "INSERT INTO `players` (`name`,`Level`,`pass`,`kills`,`deaths`,`rounds`,`xp`,`cash`,`IP`) VALUES ('%e','0','%e', 0, 0, 0, 0, 0, '..."
[01:53:08] [DEBUG] mysql_tquery - connection: 1, query: "INSERT INTO `players` (`name`,`Level`,`pass`,`kills`,`deaths`,`r", callback: "OnAccountRegister", format: "d"
[01:53:08] [ERROR] mysql_tquery - callback parameter count does not match format specifier length

Code:

     
new query[800];
WP_Hash(PlayerInfo[playerid][Pass], 129, inputtext);
mysql_format(mysql, query, sizeof(query), "INSERT INTO `players` (`name`,`Level`,`pass`,`kills`,`deaths`,`rounds`,`xp`,`cash`,`IP`) VALUES ('%e','0','%e', 0, 0, 0, 0, 0, '%e')", GetName(playerid),PlayerInfo[playerid][Pass],GetIp(playerid));
mysql_tquery(mysql, query, "OnAccountRegister", "d");
PlayerInfo[playerid][Logged] = 1;
SendClientMessage(playerid, -1, "{FFFF00}[ACCOUNT]: {FFFFFF}Account succesfuly registered.");
PlayerPlaySound(playerid,1057,0.0,0.0,0.0);


Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>