Tag mismatch
#1

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

Can you show the Enum??
Reply
#3

Here:

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

Shouldn't it be

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

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

Thanks, it worked, repped u
Reply
#6

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]; 
Reply
#7

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

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

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

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)