[Help] Tag Mismatch error.
#1

I get the following error on the lines marked:

Код:
warning 213: tag mismatch
pawn Код:
public UpdatePlayerPos(playerid)
{
    new PInterior;
    PInterior = GetPlayerInterior(playerid);
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid,x,y,z);
    PlayerShit[playerid][PLAYER_INT] = PInterior;
    PlayerShit[playerid][PLAYER_MYX] = x; //here
    PlayerShit[playerid][PLAYER_MYY] = y; //here
    PlayerShit[playerid][PLAYER_MYZ] = z; //and here
    return 1;
}
Reply
#2

pawn Код:
enum pInfo
{
    Float:PLAYER_MYZ,
    Float:PLAYER_MYZ,
    Float:PLAYER_MYZ
}
new PlayerShit[MAX_PLAYERS][pInfo];
Reply
#3

Be more clear give us the line no the 5 lines or atleast give us the warrning line and things.
Reply
#4

pawn Код:
PlayerShit[playerid][PLAYER_MYX]
It looks like that is an int and your trying to save a float value to it. Same with the others.

Edit: missed second post.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)