Raised This Month: $ Target: $400
 0% 

Problem Whit amxbans reason (amx_banshot)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hcxx
Senior Member
Join Date: Jan 2007
Location: 127.0.0.1
Old 09-05-2007 , 10:59   Problem Whit amxbans reason (amx_banshot)
Reply With Quote #1

Hello, I have problem whit one plugin what says that this should work whit amxbans actualy it work but always is the same reason īNo Reason Specifiedī even if I write some reason it still buts that īNo Reason Specifiedī can some1 help me to fix this, I dont want to get that reason I wanna get my own writed reason... I have tryed changing the code but i cant get it working . Maybe some1 can help me.

sry for my bad english
Attached Files
File Type: sma Get Plugin or Get Source (amx_banshot(2).sma - 829 views - 3.1 KB)
hcxx is offline
hcxx
Senior Member
Join Date: Jan 2007
Location: 127.0.0.1
Old 09-08-2007 , 08:33   Re: Problem Whit amxbans reason (amx_banshot)
Reply With Quote #2

some1?
hcxx is offline
Tobiski
New Member
Join Date: Sep 2007
Location: Kalajoki, Finland
Old 09-10-2007 , 03:03   Re: Problem Whit amxbans reason (amx_banshot)
Reply With Quote #3

I'm new to scripting, but i'm just checking...
Doesn't !reason mean "If there's no reason, then do the first thing, else (if there is a reason) write No Reason Specified?

should this:

Code:
case 3:{
      if (!reason)
          server_cmd("amx_ban %d %s %s",bantime,name2,reason) //updated to work with AMXBANS v5 -slmclarengt
      else
          server_cmd("amx_ban %d %s 'No Reason Specified'",bantime,name2) //updated to work with AMXBANS v5 -slmclarengt
        }
Be like this:

Code:
case 3:{
      if (!reason)
          server_cmd("amx_ban %d %s 'No Reason Specified'",bantime,name2) //updated to work with AMXBANS v5 -slmclarengt
      else
          server_cmd("amx_ban %d %s %s",bantime,name2,reason) //updated to work with AMXBANS v5 -slmclarengt
        }
__________________
Tobiski is offline
hcxx
Senior Member
Join Date: Jan 2007
Location: 127.0.0.1
Old 09-10-2007 , 11:56   Re: Problem Whit amxbans reason (amx_banshot)
Reply With Quote #4

seems to work, but there is some other bug when I tested it first when I wantetd to ban player "can9" then it was baning player java14 :/. I wrote "amx_banshot 1 #2710 test test" ( "java14" ID: 2710 "can9" ID: 2729 ). and then the player java14 got banned, and the secound bug was in my amxbans banlist was the reason only first letter, T.
Player
Admin Reason
java14 me t



...

can some1 help me to fix it plz
hcxx is offline
hcxx
Senior Member
Join Date: Jan 2007
Location: 127.0.0.1
Old 09-15-2007 , 14:25   Re: Problem Whit amxbans reason (amx_banshot)
Reply With Quote #5

some1?
hcxx 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 16:16.


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