Saving Pos problem - 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)
+--- Thread: Saving Pos problem (
/showthread.php?tid=513703)
Saving Pos problem -
DarkLored - 17.05.2014
when i try to save the pos of a player when he disconnects then i compile it gives me a warning Tag Mismatch
here is my code
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
pInfo[playerid][pX] = x;
pInfo[playerid][pY] = y;
pInfo[playerid][pZ] = z;
SaveStats(playerid);
return 1;
}
Warnings
pawn Код:
C:\Users\dalila\Desktop\Samp Gamemodes\gamemodes\Roleplay.pwn(358) : warning 213: tag mismatch
C:\Users\dalila\Desktop\Samp Gamemodes\gamemodes\Roleplay.pwn(359) : warning 213: tag mismatch
C:\Users\dalila\Desktop\Samp Gamemodes\gamemodes\Roleplay.pwn(360) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Warnings.
Re: Saving Pos problem -
Stinged - 17.05.2014
Try adding Float: before pX, pY, and pZ in your pInfo enum.
Re: Saving Pos problem -
DarkLored - 17.05.2014
i already did but then i get 6 warnings of the same concept.