[HELP]MySQL Version R41-2 Problem database Save
#1

I need Help!!!
I usually use INI file And now want to change the file storage to MySQL
i have a problem
File Storage in mysql 0 all When the player is disconnected Except password and hash (salt)

Код:
UpdateDataPlayer(playerid, reason)
{
	if (PlayerInfo[playerid][IsLoggedIn] == false) return 0;
	new playerip[16];

	if (reason == 1)
	{
		GetPlayerPos(playerid, PlayerInfo[playerid][X_Pos], PlayerInfo[playerid][Y_Pos], PlayerInfo[playerid][Z_Pos]);
		GetPlayerFacingAngle(playerid, PlayerInfo[playerid][A_Pos]);
		GetPlayerIp(playerid, playerip, sizeof(playerip));
	}

	new query[250];
	mysql_format(g_SQL, query, sizeof query, "UPDATE `accounts` SET `x` = %f, `y` = %f, `z` = %f, `angle` = %f, `interior` = %d, `IP` = %s WHERE `id` = %d LIMIT 1", PlayerInfo[playerid][X_Pos], PlayerInfo[playerid][Y_Pos], PlayerInfo[playerid][Z_Pos], PlayerInfo[playerid][A_Pos], GetPlayerInterior(playerid), playerip, PlayerInfo[playerid][ID]);
	mysql_tquery(g_SQL, query);
	return 1;
}
PHP код:
[09:36:10] [ERROR]  (E:\Pawno\New Project\gamemodes\gamemode.pwn:384)
[
09:36:41] [ERROR] `Zi (E:\Pawno\New Project\gamemodes\gamemode.pwn:384) 


Thank you
Reply
#2

Please help
Reply
#3

use Crashdetect plugins and show more errors!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)