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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Tag Mismatch (/showthread.php?tid=204971)



Tag Mismatch - admantis - 30.12.2010

Hello, I have tag mismatch in these lines.
pawn Код:
DeathPosX[playerid] = X;
    DeathPosY[playerid] = Y;
    DeathPosZ[playerid] = Z;
No errors, only warnings, and everything is defined. Any help ?


Re: Tag Mismatch - Hal - 30.12.2010

wanna show a bit more? like the getplayerpos, and the floats


Re: Tag Mismatch - admantis - 30.12.2010

Quote:
Originally Posted by Hal
Посмотреть сообщение
wanna show a bit more? like the getplayerpos, and the floats
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    new Float:X, Float:Y, Float:Z;
    GetPlayerPos(playerid, X, Y, Z);
    DeathPosX[playerid] = X;
    DeathPosY[playerid] = Y;
    DeathPosZ[playerid] = Z;
    IsDead[playerid] = 1;
    return 1;
}



Re: Tag Mismatch - _rAped - 30.12.2010

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    new Float:pX, Float:pY, Float:pZ;
    GetPlayerPos(playerid, pX, pY, pZ);
    DeathPosX[playerid] = pX;
    DeathPosY[playerid] = pY;
    DeathPosZ[playerid] = pZ;
    IsDead[playerid] = 1;
    return 1;
}
I've had similar problems when using XYZ


Re: Tag Mismatch - admantis - 30.12.2010

Quote:
Originally Posted by _rAped
Посмотреть сообщение
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    new Float:pX, Float:pY, Float:pZ;
    GetPlayerPos(playerid, pX, pY, pZ);
    DeathPosX[playerid] = pX;
    DeathPosY[playerid] = pY;
    DeathPosZ[playerid] = pZ;
    IsDead[playerid] = 1;
    return 1;
}
I've had similar problems when using XYZ
Their still there, tag missmatch.


Re: Tag Mismatch - [L3th4l] - 30.12.2010

pawn Код:
Float:DeathPosX[MAX_PLAYERS]
..

Probly forgot that.


Re: Tag Mismatch - admantis - 30.12.2010

Quote:
Originally Posted by [L3th4l]
Посмотреть сообщение
pawn Код:
Float:DeathPosX[MAX_PLAYERS]
..

Probly forgot that.
Amazing :O Your a genious why the fuck I didn't think of that Thank you , solved.


Re: Tag Mismatch - _rAped - 30.12.2010

Quote:
Originally Posted by admantis
Посмотреть сообщение
Amazing :O Your a genious why the fuck I didn't think of that Thank you , solved.
Oh lols.