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=632278)



Tag mismatch - Immortal99 - 11.04.2017

I'm getting this error:
PHP код:
(57393) : warning 213tag mismatch 
Here is line 57393:
PHP код:
if(objectInfo[v][oModel] != && objectInfo[v][oPosX] != 0.0 && objectInfo[v][oPosY] != 0.0 && objectInfo[v][oPosZ] != 0.0
Thanks


Re: Tag mismatch - DarkSkull - 11.04.2017

Can you show the Enum??


Re: Tag mismatch - Immortal99 - 11.04.2017

Here:

PHP код:
enum objectInfoenum
{
    
oDoor,
    
oDoorOpen,
    
objectModel,
    
FloatoPosX,
    
FloatoPosY,
    
FloatoPosZ,
    
FloatoRotX,
    
FloatoRotY,
    
FloatoRotZ,
}
new 
objectInfo[251][objectInfoenum]; 



Re: Tag mismatch - DarkSkull - 11.04.2017

Shouldn't it be

PHP код:
objectInfo[v][objectModel] != 
instead of:

PHP код:
objectInfo[v][oModel] != 



Re: Tag mismatch - Immortal99 - 11.04.2017

Thanks, it worked, repped u


Re: Tag mismatch - Immortal99 - 11.04.2017

Another line error im getting:
PHP код:
(69317) : warning 202number of arguments does not match definition 
Link 69317:
PHP код:
if(IsPlayerInGangZone(LandInfo[i][landZone])) 
That Enum:
PHP код:
enum landInfoenum
{
    
landOwnerMAX_PLAYER_NAME ],
    
landOwned,
    
landSell,
    
landType,
    
landTotalObjects,
    
landObjects[251],
    
landCreated,
    
landZone,
    
Text3DlandText,
    
FloatlandMinX,
    
FloatlandMinY,
    
FloatlandMaxX,
    
FloatlandMaxY,
    
FloatlandTextX,
    
FloatlandTextY,
    
FloatlandTextZ,
}
new 
LandInfo[MAX_LANDS][landInfoenum]; 



Re: Tag mismatch - raydx - 11.04.2017

It's custom function, but im 100% sure there should be playerid argument.

Код:
if(IsPlayerInGangZone(playerid, LandInfo[i][landZone]))



Re: Tag mismatch - DarkSkull - 11.04.2017

Can you show the code before line 69317? Like the for loop and where it is used, I think you are missing an argument there. I think it is playerid. Not sure. If you could post the code before that, I might be able to help.


Re: Tag mismatch - DarkSkull - 11.04.2017

Quote:
Originally Posted by raydx
Посмотреть сообщение
It's custom function, but im 100% sure there should be playerid argument.

Код:
if(IsPlayerInGangZone(playerid, LandInfo[i][landZone]))
Yes, It is a custom function. But if he is using it in a loop, it won't be player id. So we'll need to see what the loop is. But It's most probably the playerid


Re: Tag mismatch - Immortal99 - 11.04.2017

Thanks @raydx that fixed it. And @DarkSkull heres the line before:

PHP код:
            new playername[MAX_PLAYER_NAME];
            
GetPlayerName(playeridplayernamesizeof(playername)); 
but its fixed, now I got more warnings