Код:
/*public UpdatePlayerPosition(playerid)
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid])
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid,x,y,z);
PlayerInfo[playerid][pPos_x] = x;
PlayerInfo[playerid][pPos_y] = y;
PlayerInfo[playerid][pPos_z] = z;
MySQLCheckConnection();
new query[MAX_STRING];
format(query, MAX_STRING, "UPDATE players SET ");
MySQLUpdatePlayerFlo(query, PlayerInfo[playerid][pSQLID], "Pos_x", PlayerInfo[playerid][pPos_x]);
MySQLUpdatePlayerFlo(query, PlayerInfo[playerid][pSQLID], "Pos_y", PlayerInfo[playerid][pPos_y]);
MySQLUpdatePlayerFlo(query, PlayerInfo[playerid][pSQLID], "Pos_z", PlayerInfo[playerid][pPos_z]);
MySQLUpdatePlayerInt(query, PlayerInfo[playerid][pSQLID], "Inte", PlayerInfo[playerid][pInt]);
MySQLUpdatePlayerInt(query, PlayerInfo[playerid][pSQLID], "VirWorld", PlayerInfo[playerid][pVirWorld]);
MySQLUpdatePlayerInt(query, PlayerInfo[playerid][pSQLID], "Crashed", PlayerInfo[playerid][pCrashed]);
MySQLUpdateFinish(query, PlayerInfo[playerid][pSQLID]);
}
}
return 1;
}*/
thats is the original code as you can see its coded out hint the /* */
when i add the code in i get these errors
Код:
C:\Users\Jacob\Desktop\GTARP\gamemodes\gtarp.pwn(43890) : error 004: function "MySQLCheckConnection" is not implemented
C:\Users\Jacob\Desktop\GTARP\gamemodes\gtarp.pwn(43893) : error 004: function "MySQLUpdatePlayerFlo" is not implemented
C:\Users\Jacob\Desktop\GTARP\gamemodes\gtarp.pwn(43894) : error 004: function "MySQLUpdatePlayerFlo" is not implemented
C:\Users\Jacob\Desktop\GTARP\gamemodes\gtarp.pwn(43895) : error 004: function "MySQLUpdatePlayerFlo" is not implemented
C:\Users\Jacob\Desktop\GTARP\gamemodes\gtarp.pwn(43896) : error 004: function "MySQLUpdatePlayerInt" is not implemented
C:\Users\Jacob\Desktop\GTARP\gamemodes\gtarp.pwn(43897) : error 004: function "MySQLUpdatePlayerInt" is not implemented
C:\Users\Jacob\Desktop\GTARP\gamemodes\gtarp.pwn(43898) : error 004: function "MySQLUpdatePlayerInt" is not implemented
C:\Users\Jacob\Desktop\GTARP\gamemodes\gtarp.pwn(43899) : error 004: function "MySQLUpdateFinish" is not implemented
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
8 Errors.
then i try and add the mySWL stuff in and i get even more errors..is that enough information or do you ned more?