AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Problem Whit amxbans reason (amx_banshot) (https://forums.alliedmods.net/showthread.php?t=60505)

hcxx 09-05-2007 10:59

Problem Whit amxbans reason (amx_banshot)
 
1 Attachment(s)
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 :oops:

hcxx 09-08-2007 08:33

Re: Problem Whit amxbans reason (amx_banshot)
 
some1?:|

Tobiski 09-10-2007 03:03

Re: Problem Whit amxbans reason (amx_banshot)
 
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
        }


hcxx 09-10-2007 11:56

Re: Problem Whit amxbans reason (amx_banshot)
 
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 09-15-2007 14:25

Re: Problem Whit amxbans reason (amx_banshot)
 
some1?


All times are GMT -4. The time now is 16:16.

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