SA-MP Forums Archive
Tag Mismatch. - 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: Tag Mismatch. (/showthread.php?tid=521498)



Tag Mismatch. - alanhutch - 23.06.2014

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.


Re: Tag Mismatch. - Konstantinos - 23.06.2014

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


Re: Tag Mismatch. - alanhutch - 23.06.2014

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



Re: Tag Mismatch. - Threshold - 23.06.2014

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.


Re: Tag Mismatch. - alanhutch - 23.06.2014

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



Re: Tag Mismatch. - alanhutch - 23.06.2014

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