Raised This Month: $ Target: $400
 0% 

Problem Whit amxbans reason (amx_banshot)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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