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

AMX SSBan v2.6 [UPDATE: 10.Jul.2010]


Post New Thread Reply   
 
Thread Tools Display Modes
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-06-2022 , 04:03   Re: AMX SSBan v2.6 [UPDATE: 10.Jul.2010]
Reply With Quote #611

Quote:
Originally Posted by HowToRuski View Post
Doesn't work on AMXX 1.9, script has two or multiple errors when compiling
It compiles successfully without any errors. There are, however, a couple warnings but they can be ignored and shouldn't affect the plugin's functionality.
__________________
fysiks is offline
HowToRuski
Senior Member
Join Date: Feb 2019
Location: Hungary
Old 08-06-2022 , 07:20   Re: AMX SSBan v2.6 [UPDATE: 10.Jul.2010]
Reply With Quote #612

Quote:
Originally Posted by fysiks View Post
It compiles successfully without any errors. There are, however, a couple warnings but they can be ignored and shouldn't affect the plugin's functionality.
Yes it does with warnings, but whenever i write amxx plugins it shows as unknown, even if its in plugins folder and inside plugins.ini
And console shows this error - Load fails: Plugin uses an unknown function (name "geoip_country")
but geoip module is enabled

Last edited by HowToRuski; 08-06-2022 at 07:23.
HowToRuski is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-07-2022 , 04:05   Re: AMX SSBan v2.6 [UPDATE: 10.Jul.2010]
Reply With Quote #613

Quote:
Originally Posted by HowToRuski View Post
And console shows this error - Load fails: Plugin uses an unknown function (name "geoip_country")
but geoip module is enabled
Well, that is interesting. The function is still in the source code for the GeoIP module so not sure why it's not in the binary. This must be a bug in AMX Mod X (regarding backwards compatibility).

You can try changing "geoip_country" to "geoip_country_ex" and recompiling.
__________________
fysiks is offline
HowToRuski
Senior Member
Join Date: Feb 2019
Location: Hungary
Old 08-07-2022 , 07:52   Re: AMX SSBan v2.6 [UPDATE: 10.Jul.2010]
Reply With Quote #614

Quote:
Originally Posted by fysiks View Post
Well, that is interesting. The function is still in the source code for the GeoIP module so not sure why it's not in the binary. This must be a bug in AMX Mod X (regarding backwards compatibility).

You can try changing "geoip_country" to "geoip_country_ex" and recompiling.
Then a new error comes up
Error: Number of arguments does not match definition on line 265

line 265:

geoip_country_ex(ip, country)
HowToRuski is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-07-2022 , 16:38   Re: AMX SSBan v2.6 [UPDATE: 10.Jul.2010]
Reply With Quote #615

Quote:
Originally Posted by HowToRuski View Post
Then a new error comes up
Error: Number of arguments does not match definition on line 265

line 265:

geoip_country_ex(ip, country)
Do this:

Code:
geoip_country_ex(ip, country, charsmax(country))
this will compile.
__________________
fysiks is offline
HowToRuski
Senior Member
Join Date: Feb 2019
Location: Hungary
Old 08-08-2022 , 15:26   Re: AMX SSBan v2.6 [UPDATE: 10.Jul.2010]
Reply With Quote #616

Quote:
Originally Posted by fysiks View Post
Do this:

Code:
geoip_country_ex(ip, country, charsmax(country))
this will compile.
it still shows as unknown in amxx plugins console
HowToRuski is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-08-2022 , 23:15   Re: AMX SSBan v2.6 [UPDATE: 10.Jul.2010]
Reply With Quote #617

Quote:
Originally Posted by HowToRuski View Post
it still shows as unknown in amxx plugins console
When posting things like this, you should also post the error that is shown at the bottom of the "amxx list" output.

Code:
Load fails: Plugin uses an unknown function (name "geoip_country_ex")
Regardless, I just tested it on my server and I get the same thing. I found a post about having the same issue here. However, the version of my GeoIP module is the same as all the other modules so I'm not sure what's going on.
__________________

Last edited by fysiks; 08-08-2022 at 23:20.
fysiks is offline
youngmulti
Junior Member
Join Date: Mar 2018
Old 12-27-2022 , 14:48   Re: AMX SSBan v2.6 [UPDATE: 10.Jul.2010]
Reply With Quote #618

Sooo the plugin works, it bans but i banned myself just to test it and i cannot find the screenshots. As an admin im immune to ss?
youngmulti is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-27-2022 , 18:10   Re: AMX SSBan v2.6 [UPDATE: 10.Jul.2010]
Reply With Quote #619

Quote:
Originally Posted by youngmulti View Post
Sooo the plugin works, it bans but i banned myself just to test it and i cannot find the screenshots. As an admin im immune to ss?
It obeys immunity (admin flag "a") and will not allow you to use it on yourself. So, if a player has immunity or you use it on yourself, it shouldn't work at all. You should get a message in console explaining why it can't be used.

Are you sure you're using the correct command? The command for just taking screenshots is amx_ss and the command for banning is amx_ssban.
__________________
fysiks 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 04:05.


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