Tag Mismatch.
#1

Hi.
I get Tag Mismatch warnigns... How i can resolve it?

pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
new Float: UltimaX, Float: UltimaY, Float: UltimaZ;
GetPlayerPos(playerid, UltimaX, UltimaY, UltimaZ);
    new disconnectstr[128];
    new string[128];
    new sendername[MAX_PLAYER_NAME];
    new caller = Mobile[playerid];
    gActivePlayers[playerid]--;
    numplayers--;
    KillTimer(RelogTimer[playerid]);
    TextDrawHideForPlayer(playerid, Website);
    TextDrawHideForPlayer(playerid, Time);
    TextDrawHideForPlayer(playerid, Date);
    if(reason == 0)
    {
    format(string, sizeof(string), "* %s ha lasciato la cittа! [Crash]", RPN(playerid));
    ProxDetector(50.0, playerid, string, COLOR_GREEN,COLOR_GREEN,COLOR_GREEN,COLOR_GREEN,COLOR_GREEN);
    PlayerInfo[playerid][pCrashato] = 1;
    PlayerInfo[playerid][pUltimaX] = Float: UltimaX;
    PlayerInfo[playerid][pUltimaY] = Float: UltimaY;
    PlayerInfo[playerid][pUltimaZ] = Float: UltimaZ;
The warnings are at
pawn Код:
PlayerInfo[playerid][pUltimaX] = Float: UltimaX;
PlayerInfo[playerid][pUltimaY] = Float: UltimaY;
PlayerInfo[playerid][pUltimaZ] = Float: UltimaZ;
I have tried this too:
pawn Код:
PlayerInfo[playerid][pUltimaX] = UltimaX;
PlayerInfo[playerid][pUltimaY] = UltimaY;
PlayerInfo[playerid][pUltimaZ] = UltimaZ;
Same warnings... How I can resolve this? Thanks.
Reply
#2

pUltimaX, pUltimaY and pUltimaZ in the enum should be with Float: tag.
Reply
#3

Like this?
pawn Код:
pFloat:UltimaX,
    pFloat:UltimaY,
    pFloat:UltimaZ,
Reply
#4

I'm going to take advantage of the fact that Konstantinos just replied in another thread and say "No, remove the 'p' from 'pFloat' to give you 'Float'. >:]

Gg sir.
Reply
#5

Aaah! So it's
pawn Код:
Float: pUltimaX,
Float: pUltimaY,
Float: pUltimaZ,
Reply
#6

THANKS IT WORKED! I can't give you REP+ because I have gived you one time already
Reply


Forum Jump:


Users browsing this thread: