Tag Mismatch? - 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: Tag Mismatch? (
/showthread.php?tid=275298)
Tag Mismatch? -
HydraX - 09.08.2011
pawn Код:
enum pInfo
{
Float:pPos_x,
Float:pPos_y,
Float:pPos_z,
Float:pPos_A
}
pawn Код:
INI_Int("PositionX",PlayerInfo[playerid][pPos_x]); //here
INI_Int("PositionY",PlayerInfo[playerid][pPos_y]); //here
INI_Int("PositionZ",PlayerInfo[playerid][pPos_z]); //here
INI_Int("Facing Angle",PlayerInfo[playerid][pPos_A]); //here
pawn Код:
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;
//Stuff goes here//
INI_WriteInt(File,"PositionX",X); //here
INI_WriteInt(File,"PositionY",Y); //here
INI_WriteInt(File,"PositionZ",Z); //here
INI_WriteInt(File,"Facing Angle",GetPlayerFacingAngle(playerid, PlayerInfo[playerid][pPos_A]));
But I get tag mismatch. Why?
Re: Tag Mismatch? - [L3th4l] - 09.08.2011
Use : INI_Float and INI_WriteFloat
Re: Tag Mismatch? -
HydraX - 09.08.2011
k thx.