02.04.2016, 18:08
This is your problem:
You're adding a row with data to two different tables (tables which have the same purpose?) and you call two different functions (which have the same purpose!) at the same time. Merge the queries and adjust your database accordingly.
PHP код:
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(query), "INSERT INTO `player_data` (`Name`, `Admin`, `VIP`, `Money`, `PosX`, `PosY`, `PosZ`, `PosA`) VALUES ('%e', 0, 0, 0, %f, %f, %f, %f)", playername, START_X, START_Y, START_Z, START_A);
mysql_tquery(mysql, query, "OnAccountRegister", "i", playerid);
mysql_tquery(mysql, query2, "OnPlayerRegister", "i", playerid);