Tag missmatch?
#1

Hello everyone,
How could i fix these warnings?

Quote:

C:\Users\Raul\Downloads\My PROJECT\samp03csvr_RC2_win32\gamemodes\SAPL.pwn(13 6) : warning 213: tag mismatch
C:\Users\Raul\Downloads\My PROJECT\samp03csvr_RC2_win32\gamemodes\SAPL.pwn(13 7) : warning 213: tag mismatch
C:\Users\Raul\Downloads\My PROJECT\samp03csvr_RC2_win32\gamemodes\SAPL.pwn(13 : warning 213: tag mismatch
C:\Users\Raul\Downloads\My PROJECT\samp03csvr_RC2_win32\gamemodes\SAPL.pwn(36 9) : warning 213: tag mismatch
C:\Users\Raul\Downloads\My PROJECT\samp03csvr_RC2_win32\gamemodes\SAPL.pwn(37 0) : warning 213: tag mismatch
C:\Users\Raul\Downloads\My PROJECT\samp03csvr_RC2_win32\gamemodes\SAPL.pwn(37 1) : warning 213: tag mismatch

pawn Код:
forward UpdatePlayerPosition(playerid);
public UpdatePlayerPosition(playerid)
{
        if(gPlayerLogged[playerid])
        {
            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;
        }
        return 1;
}
Reply
#2

pawn Код:
if(gPlayerLogged[playerid] == true)
Replace that, I don't see whats wrong with it...
Reply
#3

Still not working,sorry for my last EDIT
Reply
#4

I suspect that these are not defined as floats:

PlayerInfo[playerid][pPos_x]
PlayerInfo[playerid][pPos_y]
PlayerInfo[playerid][pPos_z]
Reply
#5

Inside your enum for pPos_x... Put them like this:

pawn Код:
Float:pPos_x,
Float:pPos_y,
Float:pPos_z,
Reply
#6

Quote:
Originally Posted by willsuckformoney
Посмотреть сообщение
Inside your enum for pPos_x... Put them like this:

pawn Код:
Float:pPos_x,
Float:pPos_y,
Float:pPos_z,
Thank you so much,i forgot to define them as floats
THanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)