Raised This Month: $ Target: $400
 0% 

Tag mismatch


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Zenith77
Veteran Member
Join Date: Aug 2005
Old 10-07-2006 , 13:19   Tag mismatch
Reply With Quote #1

I get a tag mismatch on this:

Code:
precache_model(gWeaponModel[i][j]);

And here is the variable:
Code:
new const gWeaponModel[MAX_WEAPONS][WeaponModel][] = {     {"models/v_newdeagle.mdl",  "models/p_newdeagle.mdl",   "models/w_newdeagle.mdl",   "models/w_deagle.mdl"},     {"models/v_newscout.mdl",   "models/p_newscout.mdl",    "models/w_newscout.mdl",    "models/w_scout.mdl"} };

I can use it just fine everywhere else, just not on precache_model(). The problem is right probably right in my face but I can't seem to find it :/.

Thanks,
Zenith
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 10-07-2006 , 13:21   Re: Tag mismatch
Reply With Quote #2

God nm, two seconds after posting this I releasized what my error was and fixed it.
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
MaximusBrood
Veteran Member
Join Date: Sep 2005
Location: The Netherlands
Old 10-07-2006 , 13:53   Re: Tag mismatch
Reply With Quote #3

Quote:
Originally Posted by Zenith77 View Post
God nm, two seconds after posting this I releasized what my error was and fixed it.
What was it?
__________________
Released six formerly private plugins. Not active here since ages.
MaximusBrood is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 10-07-2006 , 14:10   Re: Tag mismatch
Reply With Quote #4

Code:
precache_model(gWeaponModel[i][j]);
->

Code:
precache_model(gWeaponModel[i][WeaponModel:j]);
or

Code:
precache_model(gWeaponModel[i][_:j]);
One of those should make it work fine for sure, I'm just not sure which. Probably the second.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Zenith77
Veteran Member
Join Date: Aug 2005
Old 10-07-2006 , 15:14   Re: Tag mismatch
Reply With Quote #5

Bingo (2nd).
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
MaximusBrood
Veteran Member
Join Date: Sep 2005
Location: The Netherlands
Old 10-07-2006 , 16:05   Re: Tag mismatch
Reply With Quote #6

That's a nasty one to catch indeed.
__________________
Released six formerly private plugins. Not active here since ages.
MaximusBrood is offline
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 04:47.


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