Warning:213 tag mismatch?
#1

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]) {
Reply
#2

are x, y, z Floats?
Reply
#3

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;
}
Reply
#4

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.
Reply
#5

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]) {
?
Reply
#6

im sorry but i didn't understand. this is just a released FS. what should I do ?
Reply
#7

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?
Reply
#8

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
Reply
#9

I put it in pastebin just to be sure...

http://pastebin.com/mHdrWsgJ
Reply
#10

- Removed -
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)