12.08.2017, 03:11
(
Последний раз редактировалось faizal16; 12.08.2017 в 03:20.
Причина: additional
)
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)
Thank you
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