Raised This Month: $51 Target: $400
 12% 

Tag mismatch


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 03-03-2016 , 11:35   Tag mismatch
Reply With Quote #1

Getting tag mismatch on this line and i dont really know whats wrong?
Code:
formatex(szMenuItem, charsmax(szMenuItem), "\w%s%s", MENU_PISTOLS[i][NAME], playerUsingDeagle[id] == i ? " \y[Enabled]" : "")
Here some code that the menu is using.

Code:
new playerUsingDeagle[33]

enum _:ITEMS_DATAS {
	WEAPON[50],
	VMODEL[50],
	PMODEL[50],
	NAME[50]
}

new const MENU_PISTOLS[][ITEMS_DATAS] = 
{
	{"RESET", "RESET", "RESET", "RESET"},
	{CSW_DEAGLE, "models/deagleconspiracy/v_deagle_conspiracy.mdl", "models/deagleconspiracy/p_deagle_conspiracy.mdl", "Conspiracy Deagle"},
	{CSW_DEAGLE, "models/kingsdeagle/v_kingsdeagle.mdl", "models/kingsdeagle/p_kingsdeagle.mdl", "Kings Deagle"},
	{CSW_DEAGLE, "models/revolver/v_revolver.mdl", "models/revolver/p_revolver.mdl", "Revolver Deagle"},
	{CSW_DEAGLE, "models/flamesdeagle/v_flamesdeagle.mdl", "models/flamesdeagle/p_flamesdeagle.mdl", "Flames Deagle"}
}
Thanks in advance.
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.

Last edited by ironskillz1; 03-03-2016 at 11:35.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
xxxperts
Senior Member
Join Date: Oct 2013
Location: India
Old 03-03-2016 , 12:02   Re: Tag mismatch
Reply With Quote #2

Your given code is perfectly correct you must show more code.
__________________
All my work is here
xxxperts is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 03-03-2016 , 12:05   Re: Tag mismatch
Reply With Quote #3

Your formatex line looks ok from what I can see.

ITEM_DATAS is defined as being all strings.

In your first line you have 4 strings which is ok, then you have 4 lines starting with CSW_DEAGLE, which is an integer. It is expecting a string value. You can't just put data however you want, it has to comply with how your enum/array is defined. If WEAPON is supposed to be a weapon index, remove the [50]
__________________

Last edited by Bugsy; 03-03-2016 at 12:13.
Bugsy is online now
Kakarot47
Senior Member
Join Date: May 2015
Location: Pakistan
Old 03-03-2016 , 12:11   Re: Tag mismatch
Reply With Quote #4

You are genus Bugsy i proud on you
but my topic is not solving can you plz take a look at that situation
NPC Situation
__________________



AssasinSniperNightmare ModArmageddon ModApolacyps Mod
Kakarot47 is offline
Send a message via Skype™ to Kakarot47
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:20.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode