SA-MP Forums Archive
cant save PLAYER POS - 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: cant save PLAYER POS (/showthread.php?tid=217730)



cant save PLAYER POS - park4bmx - 28.01.2011

SOLVED DON'T WORRY


Re: cant save PLAYER POS - Kaylux - 28.01.2011

This will work:

pawn Код:
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z);
PlayerInfo[playerid][posx] = X;
PlayerInfo[playerid][posy] = Y;
PlayerInfo[playerid][posz] = Z;
dini_FloatSet(file,"posx", PlayerInfo[playerid][posx]);
dini_FloatSet(file,"posy", PlayerInfo[playerid][posy]);
dini_FloatSet(file,"posz", PlayerInfo[playerid][posz]);



Re: cant save PLAYER POS - park4bmx - 29.01.2011

becouse its a Float it comes up with
pawn Код:
warning 213: tag mismatch
warning 213: tag mismatch
warning 213: tag mismatch



Re: cant save PLAYER POS - Cameltoe - 29.01.2011

Did you make sure in the PlayerInfo enum, that PlayerInfo[playerid][pos * ] is an float?


Re: cant save PLAYER POS - park4bmx - 29.01.2011

OK done it the problem was exactly what Cameltoe sad thanks


Re: cant save PLAYER POS - Mike Garber - 29.01.2011

pawn Код:
enum PlayerInfo
{
   Float:posx,
   Float:posy,
   Float:posz,

};