AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Question About Compiling (https://forums.alliedmods.net/showthread.php?t=41085)

tsilenzio 07-08-2006 22:05

Question About Compiling
 
Everytime I go to compile my plugin i get like 70 warnings, and I think that, its not normal lol... What is a tag mismatch mean? I dont see any mistakes in the way i write some things.. Also what is loose indentation? How would you say to stop the compiler from getting these warnings?

commonbullet 07-08-2006 22:30

Re: Question About Compiling
 
Post the plugin.

Shurik3n 07-08-2006 23:19

Re: Question About Compiling
 
In my experiance a tag mismatch is when you use the wrong type for something else. An example would be using an integer for something that should be a float.

GHW_Chronic 07-09-2006 00:21

Re: Question About Compiling
 
Yes. Tag mismatches are when you attempt to mix variable types.

Code:
cs_set_user_team(id,3) //would give you an error because it should be cs_set_user_team(id,CS_TEAM_SPECTATOR) new Float:omfg = 10 //would give you an error because it should be new Float:omfg = 10.0

Rolnaaba 07-09-2006 01:00

Re: Question About Compiling
 
loose indentation could be something like:

Code:
public plugin_init() register_plugin(PLUGIN, VERSION, AUTHOR) } //should be public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) } //or this works too public plugin_init(){ register_plugin(PLUGIN, VERSION, AUTHOR) }

tsilenzio 07-09-2006 07:30

Re: Question About Compiling
 
Quote:

Originally Posted by commonbullet
Post the plugin.

I dont think you would want me to post the plugin lol... its like 550 line o.O

And thank you all very much! :)

Shurik3n 07-09-2006 07:33

Re: Question About Compiling
 
For the indenting warnings you can use AMXX Studio's indenting tool.


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

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