Raised This Month: $ Target: $400
 0% 

Question About Compiling


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
tsilenzio
Junior Member
Join Date: Jul 2005
Old 07-08-2006 , 22:05   Question About Compiling
Reply With Quote #1

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?
tsilenzio is offline
commonbullet
Veteran Member
Join Date: Oct 2005
Old 07-08-2006 , 22:30   Re: Question About Compiling
Reply With Quote #2

Post the plugin.
commonbullet is offline
Send a message via ICQ to commonbullet Send a message via MSN to commonbullet
tsilenzio
Junior Member
Join Date: Jul 2005
Old 07-09-2006 , 07:30   Re: Question About Compiling
Reply With Quote #3

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!
tsilenzio is offline
Shurik3n
Member
Join Date: Feb 2006
Old 07-08-2006 , 23:19   Re: Question About Compiling
Reply With Quote #4

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.
Shurik3n is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 07-09-2006 , 00:21   Re: Question About Compiling
Reply With Quote #5

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
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
Rolnaaba
Veteran Member
Join Date: May 2006
Old 07-09-2006 , 01:00   Re: Question About Compiling
Reply With Quote #6

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) }
__________________
DO NOT PM me about avp mod.

Last edited by Rolnaaba; 07-09-2006 at 01:02.
Rolnaaba is offline
Shurik3n
Member
Join Date: Feb 2006
Old 07-09-2006 , 07:33   Re: Question About Compiling
Reply With Quote #7

For the indenting warnings you can use AMXX Studio's indenting tool.
Shurik3n 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 08:06.


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