SA-MP Forums Archive
Why it's giving me "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: Why it's giving me "tag mismatch"? (/showthread.php?tid=658479)



Why it's giving me "tag mismatch"? - akib - 05.09.2018

Hello, I don't why it giving me tag mismatch warning, code is below

PHP код:
MatsFact[idx][m_vw] = GetPlayerVirtualWorld(playerid); 
Enum data:
PHP код:
enum mpfenum
    
mf_id
    
Float:mf_x
    
Float:mf_y
    
Float:mf_z
    
mf_vw
    
Text3D:mf_text
    
mf_pickup
    
mf_pickupS
    
mf_textS
    
mf_fExist 
};  
new 
MatsPickup[MAX_MPICKUP][mpenum]; 



Re: Why it's giving me "tag mismatch"? - ISmokezU - 05.09.2018

PHP код:
MatsPickup[idx][m_vw] = GetPlayerVirtualWorld(playerid); 



Re: Why it's giving me "tag mismatch"? - akib - 05.09.2018

Quote:
Originally Posted by ISmokezU
Посмотреть сообщение
PHP код:
MatsPickup[idx][m_vw] = GetPlayerVirtualWorld(playerid); 
Was posted wrong enum code :P

Correction :
PHP код:
enum mpfenum{
    
mf_id,
    
Float:mf_x,
    
Float:mf_y,
    
Float:mf_z,
    
mf_vw,
    
Text3D:mf_text,
    
mf_pickup,
    
mf_pickupS,
    
mf_textS,
    
mf_fExist
}; 
Anyways. problem fixed