2 Problem(player Position and death location) - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: 2 Problem(player Position and death location) (
/showthread.php?tid=127597)
2 Problem(player Position and death location) -
owner jacob - 14.02.2010
in my user files its saves your position but when u login in it doesnt load your postion....i dont use a /login command i use the box thing lol plz help
and one more thing when u die u go back to the place where your start when u log in...i put a setplayerpostion(blah,blah,blah,blah) it goes there first for like a second and then goes to the starting place help
Re: 2 Problem(player Position and death location) -
ahbir - 14.02.2010
this can problem gm or filescript u need to cheack correct gm or filescript.
Re: 2 Problem(player Position and death location) -
owner jacob - 14.02.2010
i know that lol but i try to to fix my update player location code and i get a bunch of errors..
Re: 2 Problem(player Position and death location) -
ahbir - 14.02.2010
exctly where u get u error canu please tell me explain
Re: 2 Problem(player Position and death location) -
owner jacob - 14.02.2010
Код:
/*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?
Re: 2 Problem(player Position and death location) -
ahbir - 14.02.2010
i don't understand u give all correct but it also saying error u need to cheack something it mean why it saying error.
Re: 2 Problem(player Position and death location) -
owner jacob - 14.02.2010
kk ill just play around with it and see if i can get it working