2 Problem(player Position and death location)
#1

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
Reply
#2

this can problem gm or filescript u need to cheack correct gm or filescript.
Reply
#3

i know that lol but i try to to fix my update player location code and i get a bunch of errors..
Reply
#4

exctly where u get u error canu please tell me explain
Reply
#5

Код:
/*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?
Reply
#6

i don't understand u give all correct but it also saying error u need to cheack something it mean why it saying error.
Reply
#7

kk ill just play around with it and see if i can get it working
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)