AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Tag mismatch (https://forums.alliedmods.net/showthread.php?t=45620)

Zenith77 10-07-2006 13:19

Tag mismatch
 
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

Zenith77 10-07-2006 13:21

Re: Tag mismatch
 
God nm, two seconds after posting this I releasized what my error was and fixed it.

MaximusBrood 10-07-2006 13:53

Re: Tag mismatch
 
Quote:

Originally Posted by Zenith77 (Post 388537)
God nm, two seconds after posting this I releasized what my error was and fixed it.

What was it?

Hawk552 10-07-2006 14:10

Re: Tag mismatch
 
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.

Zenith77 10-07-2006 15:14

Re: Tag mismatch
 
Bingo (2nd).

MaximusBrood 10-07-2006 16:05

Re: Tag mismatch
 
That's a nasty one to catch indeed.


All times are GMT -4. The time now is 04:47.

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