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=81197)
Tag mismatch -
Remi-X - 08.06.2009
pawn Код:
new Float:PlayerXPos[MAX_PLAYERS];
new Float:PlayerYPos[MAX_PLAYERS];
new Float:PlayerZPos[MAX_PLAYERS];
public OnPlayerDisconnect(playerid, reason)
{
if(PlayerLoggedIn[playerid] == true)
{
GetPlayerPos(playerid, PlayerXPos[playerid], PlayerYPos[playerid], PlayerZPos[playerid]);
dini_IntSet(file,"X Pos",PlayerXPos[playerid); //Here
dini_IntSet(file,"Y Pos",PlayerYPos[playerid]); //Here
dini_IntSet(file,"Z Pos",PlayerZPos[playerid]); //And here
}
PlayerXPos[playerid] = 0;
PlayerYPos[playerid] = 0;
PlayerZPos[playerid] = 0;
return 1;
}
It don't effect anything with the place of 'new Float:', it is the same problem with and without the [playerid] array.
I don't see the fault
Re: Tag mismatch -
Weirdosport - 08.06.2009
You're using Int set with floats.. You need floatset...
dini_FloatSet(filename[], key[], Float:value)
Re: Tag mismatch -
Remi-X - 08.06.2009
whoops xD