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

[HELP]This Plugin Is Not Compiling


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
soumyadip77
Senior Member
Join Date: Jul 2017
Location: INDIA,KOLKATA
Old 10-19-2017 , 23:20   [HELP]This Plugin Is Not Compiling
Reply With Quote #1

This .sma File Not Compiling For Some Wrong Script Please Check And Tell Me How To Fix It...
Attached Files
File Type: sma Get Plugin or Get Source (welcome_version7.0.sma - 78 views - 5.4 KB)
soumyadip77 is offline
Send a message via Skype™ to soumyadip77
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 10-20-2017 , 08:38   Re: [HELP]This Plugin Is Not Compiling
Reply With Quote #2

It's missing an "if" after the "else" on line 88. Then you'll get 1000 more errors because of missing brackets all over the place. Even if you compile it by using the fixed code down below, you will see that the guy who made this plugin had no idea what he is doing, and he has been struggling to make it work all the way up to version 7.0, at which he failed miserably.

PHP Code:
/* Sublime AMXX Editor v2.2 */

#include <amxmodx>
#include <amxmisc>
#include <csx>
#include <geoip>

#define PLUGIN  "Welcome Plugin Ver. 7.0"
#define VERSION "7.0"
#define AUTHOR  "Author"

new g_svname[] = "`3nf"
new hostname[] = "`3nf Pub Server"
new szFull[] = "FULL"
new szNormal[] = "NORMAL"
new szImn[] = "Immunity"
new szOwner[] = "OWNER"
new szCore[] = "CORE"


new szName[32]
new 
ip[16]
new 
szCountry[46], szCity[21]
new 
AuthId[65]


public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
}

public 
client_putinserver(id)
{
    
set_task(6.0"welcome")
}

public 
welcome(id)
{
    if (!
is_user_admin(id))
    {
        if (
access(idADMIN_BAN))
        {
            
get_user_ip(idipcharsmax(ip)); 
            
get_user_name(idszNamecharsmax(szName));
            
get_user_authid(idAuthIdcharsmax(AuthId))
            
geoip_country_ex(ipszCountrycharsmax(szCountry)) 
            
geoip_city(ipszCitycharsmax(szCity))

            
set_hudmessage(0422550.030.1516.012.0)
            
show_hudmessage(0"=-{***%s ADMIN***}-=^n-------------------------------------- ^nName: %s ^nSteam ID: %s ^nIP: %s ^nADMIN LEVEL: %s ^n Location: %s, %s ^n-------------------------------------- ",g_svnameszNameAuthIdipszFullszCityszCountry)
            
chatcolor(id"!tWELCOME !yTO !g%s"hostname)
        }
        else if (
access(idADMIN_LEVEL_A))
        {
            
get_user_ip(idipcharsmax(ip)); 
            
get_user_name(idszNamecharsmax(szName));
            
get_user_authid(idAuthIdcharsmax(AuthId))
            
geoip_country_ex(ipszCountrycharsmax(szCountry)) 
            
geoip_city(ipszCitycharsmax(szCity))

            
set_hudmessage(0422550.030.1516.012.0)
            
show_hudmessage(0"=-{***%s ADMIN***}-=^n-------------------------------------- ^nName: %s ^nSteam ID: %s ^nIP: %s ^nADMIN LEVEL: %s ^n Location: %s, %s ^n-------------------------------------- ",g_svnameszNameAuthIdipszNormalszCityszCountry)
            
chatcolor(id"!tWELCOME !yTO !g%s"hostname)
        }
        else if (
access(idADMIN_IMMUNITY))
        {
            
get_user_ip(idipcharsmax(ip)); 
            
get_user_name(idszNamecharsmax(szName));
            
get_user_authid(idAuthIdcharsmax(AuthId))
            
geoip_country_ex(ipszCountrycharsmax(szCountry)) 
            
geoip_city(ipszCitycharsmax(szCity))

            
set_hudmessage(0422550.030.1516.012.0)
            
show_hudmessage(0"=-{***%s ADMIN***}-=^n-------------------------------------- ^nName: %s ^nSteam ID: %s ^nIP: %s ^nADMIN LEVEL: %s ^n Location: %s, %s ^n-------------------------------------- ",g_svnameszNameAuthIdipszImnszCityszCountry)
            
chatcolor(id"!tWELCOME !yTO !g%s"hostname)
        }
        else if (
access(idADMIN_RCON))
        {
            
get_user_ip(idipcharsmax(ip)); 
            
get_user_name(idszNamecharsmax(szName));
            
get_user_authid(idAuthIdcharsmax(AuthId))
            
geoip_country_ex(ipszCountrycharsmax(szCountry)) 
            
geoip_city(ipszCitycharsmax(szCity))

            
set_hudmessage(0422550.030.1516.012.0)
            
show_hudmessage(0"=-{***%s ADMIN***}-=^n-------------------------------------- ^nName: %s ^nSteam ID: %s ^nIP: %s ^nADMIN LEVEL: %s ^n Location: %s, %s ^n-------------------------------------- ",g_svnameszNameAuthIdipszOwnerszCityszCountry)
            
chatcolor(id"!tWELCOME !yTO !g%s"hostname)
        }
        else if (
access(idADMIN_LEVEL_B))
        {
            
get_user_ip(idipcharsmax(ip)); 
            
get_user_name(idszNamecharsmax(szName));
            
get_user_authid(idAuthIdcharsmax(AuthId))
            
geoip_country_ex(ipszCountrycharsmax(szCountry)) 
            
geoip_city(ipszCitycharsmax(szCity))

            
set_hudmessage(0422550.030.1516.012.0)
            
show_hudmessage(0"=-{***%s ADMIN***}-=^n-------------------------------------- ^nName: %s ^nSteam ID: %s ^nIP: %s ^nADMIN LEVEL: %s ^n Location: %s, %s ^n-------------------------------------- ",g_svnameszNameAuthIdipszCoreszCityszCountry)
            
chatcolor(id"!tWELCOME !yTO !g%s"hostname)
        }
    }
    else
    {
        
get_user_ip(idipcharsmax(ip)); 
        
get_user_name(idszNamecharsmax(szName));
        
get_user_authid(idAuthIdcharsmax(AuthId))
        
geoip_country_ex(ipszCountrycharsmax(szCountry)) 
        
geoip_city(ipszCitycharsmax(szCity))

        
set_hudmessage(0422550.030.1516.012.0)
        
show_hudmessage(0"=-{WELCOME TO %s PUB SERVER}-=^n-------------------------------------- ^nName: %s ^nSteam ID: %s ^nIP: %s ^n Location: %s, %s ^n-------------------------------------- ",g_svnameszNameAuthIdipszCityszCountry)
        
chatcolor(id"!tWELCOME !yTO !g%s"hostname)
    }
}

stock chatcolor(const id, const input[], any:...)
{
        new 
count 1players[32]
        static 
msg[191]
        
vformat(msg190input3)
       
        
replace_all(msg190"!g""^4"// Green Color
        
replace_all(msg190"!y""^1"// Default Color
        
replace_all(msg190"!t""^3"// Team Color
        
replace_all(msg190"!m""^0"// Team2 Color   

        
if (idplayers[0] = id; else get_players(playerscount"ch")
        {
                for (new 
0counti++)
                {
                        if (
is_user_connected(players[i]))
                        
                        {
                                
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("SayText"), _players[i])
                                
write_byte(players[i]);
                                
write_string(msg);
                                
message_end();
                        }
                }
        }
}
// JO AUTHOR CHANGE KI GAND MARA UNGA
//MADAR CHODE SHIT CODE 
__________________

Last edited by OciXCrom; 10-20-2017 at 08:47.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
soumyadip77
Senior Member
Join Date: Jul 2017
Location: INDIA,KOLKATA
Old 10-20-2017 , 22:45   Re: [HELP]This Plugin Is Not Compiling
Reply With Quote #3

Not Working which i want
soumyadip77 is offline
Send a message via Skype™ to soumyadip77
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 10-21-2017 , 09:50   Re: [HELP]This Plugin Is Not Compiling
Reply With Quote #4

Didn't you read what I said? Simply don't use it. It's garbage.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
soumyadip77
Senior Member
Join Date: Jul 2017
Location: INDIA,KOLKATA
Old 10-22-2017 , 00:34   Re: [HELP]This Plugin Is Not Compiling
Reply With Quote #5

oh k any other way to make this type of plugin
soumyadip77 is offline
Send a message via Skype™ to soumyadip77
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 10-22-2017 , 02:39   Re: [HELP]This Plugin Is Not Compiling
Reply With Quote #6

Quote:
Originally Posted by soumyadip77 View Post
oh k any other way to make this type of plugin
do it yourself, or $$$
__________________
retired chump
DjSoftero is offline
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 10-22-2017 , 10:24   Re: [HELP]This Plugin Is Not Compiling
Reply With Quote #7

Quote:
Originally Posted by OciXCrom View Post
You will see that the guy who made this plugin had no idea what he is doing, and he has been struggling to make it work all the way up to version 7.0, at which he failed miserably.
Haha LOL, that '!' @ is_user_admin(), crushed someone's dreams.
__________________
Relaxing 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 10:06.


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