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

Solved error with compiling script, please help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Arithmetic
Junior Member
Join Date: Feb 2017
Old 01-11-2018 , 22:28   error with compiling script, please help
Reply With Quote #1

A while ago i edited this script for csgo that adds OWNER, ADMIN and VIP tags in the scoreboard. I changed the script and added more ranks and changed the tags themselves and i ended up compiling thus having a lot of errors in the actual script, not errors from me but if you just try to compile the stock script it wont work but back then it worked.

I cannot remember how i did it, i used spcomp im pretty sure but now when i use it, it really doesnt work due to the errors. Im pretty sure if i remove the errors in the script it wont even work. How am I supposed to compile this to smx?

this is the script


AdminTag_v2_English.sp

Last edited by Arithmetic; 01-13-2018 at 04:51.
Arithmetic is offline
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 01-11-2018 , 22:52   Re: error with compiling script, please help
Reply With Quote #2

PHP Code:
                                else                                
                                    if (
GetUserFlagBits(client) & ADMFLAG_CUSTOM4)
                                    { 
                                        
CS_SetClientClanTag(client"[MEMBER]"); 
                                    }
                                    else                                
}                                        if (
GetUserFlagBits(client) & ADMFLAG_CUSTOM1)
                                        { 
                                            
CS_SetClientClanTag(client"[DJ]"); 
                                        }
                                        else 
TO:

PHP Code:
                                else                                
                                    if (
GetUserFlagBits(client) & ADMFLAG_CUSTOM4)
                                    { 
                                        
CS_SetClientClanTag(client"[MEMBER]"); 
                                    }
                                    else                                
                                        if (
GetUserFlagBits(client) & ADMFLAG_CUSTOM1)
                                        { 
                                            
CS_SetClientClanTag(client"[DJ]"); 
                                        }

I could find plenty of wrong stuff with this script, but don't care enough to bother with all that.
__________________
Spirit_12 is offline
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 01-11-2018 , 22:56   Re: error with compiling script, please help
Reply With Quote #3

The code of the attached file ends
Code:
										{ 
											CS_SetClientClanTag(client, "[DJ]"); 
										}
										else
This means that the code is not complete, and the HandleTag(client) function does not "end" properly. As such, you cannot compile it without the last fragments.

For the compiling, you can either follow the guide on the SourceMod wiki: Compiling SourceMod Plugins.

An alternative is to use this web based compiler: Spider.
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL is offline
Reply


Thread Tools
Display Modes

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 10:46.


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