Saving Pos problem
#1

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.
Reply
#2

Try adding Float: before pX, pY, and pZ in your pInfo enum.
Reply
#3

i already did but then i get 6 warnings of the same concept.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)