14.01.2017, 03:12
http://pastebin.com/raw/2bHhymXw
If someone tell me which line is wrong. Please provide a fix for it. thank you!
If someone tell me which line is wrong. Please provide a fix for it. thank you!
The connection of sql is successful, but the real problem is the data is not saved in sql
Here's the script. http://pastebin.com/raw/D64RnmAR And also I want to removed the Password Hash. |
Why wouldn't you want to hash your passwords? Post your MySQL logs so that we can know what's the cause or else it'll be a mess to look into your whole script.
|
mysql_format(mysql, query, sizeof(query),
"INSERT INTO `account_data` (`Name`, `Password`, `IP`) VALUES ('%e', '%e', '%e')", playername, Account[playerid][Password], playerip);
mysql_format(mysql, query2, sizeof(query2),
"INSERT INTO `character_data` (`Name`, `Admin_Level`, `VIP_Level`, `Character_Level`, `Money`, `Skin`, `Health`, `Armour`, `PosX`, `PosY`, `PosZ`, `PosA`) VALUES ('%e', 0, 0, %d, %d, %d, 100.00, 0.00, %f, %f, %f, %f)", playername, STARTING_LEVEL, STARTING_MONEY, STARTING_SKIN, STARTING_SPAWN_X, STARTING_SPAWN_Y, STARTING_SPAWN_Z, STARTING_SPAWN_A);
mysql_tquery(mysql, query, "OnAccountRegister", "i", playerid);
mysql_format(mysql, query, sizeof(query), "INSERT INTO `account_data` (`Name`, `Password`, `IP`) VALUES ('%e', '%e', '%e')", playername, Account[playerid][Password], playerip); mysql_format(mysql, query2, sizeof(query2), "INSERT INTO `character_data` (`Name`, `Admin_Level`, `VIP_Level`, `Character_Level`, `Money`, `Skin`, `Health`, `Armour`, `PosX`, `PosY`, `PosZ`, `PosA`) VALUES ('%e', 0, 0, %d, %d, %d, 100.00, 0.00, %f, %f, %f, %f)", playername, STARTING_LEVEL, STARTING_MONEY, STARTING_SKIN, STARTING_SPAWN_X, STARTING_SPAWN_Y, STARTING_SPAWN_Z, STARTING_SPAWN_A); mysql_tquery(mysql, query, "OnAccountRegister", "i", playerid); mysql_tquery(mysql, query2, "OnAccountRegister", "i", playerid);