cant save PLAYER POS
#1

SOLVED DON'T WORRY
Reply
#2

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]);
Reply
#3

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

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

OK done it the problem was exactly what Cameltoe sad thanks
Reply
#6

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

};
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)