Warning:213 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: Warning:213 tag mismatch? (
/showthread.php?tid=429953)
Warning:213 tag mismatch? -
adios1 - 11.04.2013
hey guys im having this warning.. and i dont know why? :O
Код:
bombs.pwn(388) : warning 213: tag mismatch
pawn Код:
if(GetPlayerDistanceToPoint(i , x, y, z) < 2 * gBombTypes[btype[playerid][num]][2]) {
Re: Warning:213 tag mismatch? -
CoaPsyFactor - 11.04.2013
are x, y, z Floats?
Re: Warning:213 tag mismatch? -
adios1 - 11.04.2013
I think yes.
pawn Код:
public OnBombExplode(playerid, num, Float:x, Float:y, Float:z)
{
//is called everytime a bomb explodes
for(new i = 0; i < MAX_PLAYERS; i ++){
if(GetPlayerDistanceToPoint(i, x, y, z) < 2 * gBombTypes[btype[playerid][num]][2]) {
SetPVarInt(i, "nearExp", playerid);
SetTimerEx("ResetNearExp", 15000, 0, "i", i);
}
}
return 1;
}
Re: Warning:213 tag mismatch? -
Ash. - 11.04.2013
I'm assuming 'GetPlayerDistanceToPoint' returns a float value? If this is the case, depending on what 'gBombTypes[][2]' is, (2 * gBombTypes[][2]) should also be a float for comparison.
Re: Warning:213 tag mismatch? -
[ABK]Antonio - 11.04.2013
Not sure what you're even trying to do =/ Are you trying to do
pawn Код:
if(GetPlayerDistanceToPoint(i , x, y, z) < 2 && gBombTypes[btype[playerid][num]][2]) {
?
Re: Warning:213 tag mismatch? -
adios1 - 11.04.2013
im sorry but i didn't understand. this is just a released FS. what should I do ?
Re: Warning:213 tag mismatch? -
Ash. - 11.04.2013
Quote:
Originally Posted by adios1
im sorry but i didn't understand. this is just a released FS. what should I do ?
|
Could you please paste the 'gBombTypes' array (and an example assignment) here please?
Re: Warning:213 tag mismatch? -
adios1 - 11.04.2013
Quote:
Originally Posted by [ABK]Antonio
Not sure what you're even trying to do =/ Are you trying to do
pawn Код:
if(GetPlayerDistanceToPoint(i , x, y, z) < 2 && gBombTypes[btype[playerid][num]][2]) {
?
|
still have warning
Re: Warning:213 tag mismatch? -
adios1 - 12.04.2013
I put it in pastebin just to be sure...
http://pastebin.com/mHdrWsgJ
Re: Warning:213 tag mismatch? -
zDivine - 12.04.2013
- Removed -