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
}
__________________