Making a command with 3 parameters
#9

Quote:
Originally Posted by Yaa
Посмотреть сообщение
PHP код:
CMD:tempban(playeridparams[]) 

     new 
bannedidreason[25], hours
     if(
sscanf(params"uis[25]"bannedidhoursreason)) return SendClientMessage(playeridRED"/tempban [player] [time] [reason]"); 
     return 
1

reason it's last params

@Sunehildeep didn't notice it :P also it's "usi[25]"
It still doesnt work. When I type for example /tempban name 4 cheating i still get /tempban [player] [time] [reason] message
Reply


Messages In This Thread
Making a command with 3 parameters - by ax1 - 04.01.2017, 11:51
Re: Making a command with 3 parameters - by Konstantinos - 04.01.2017, 11:53
Re: Making a command with 3 parameters - by ax1 - 04.01.2017, 12:11
Re: Making a command with 3 parameters - by BiosMarcel - 04.01.2017, 12:13
Re: Making a command with 3 parameters - by Yaa - 04.01.2017, 12:15
Re: Making a command with 3 parameters - by StrikerZ - 04.01.2017, 12:41
Re: Making a command with 3 parameters - by ax1 - 04.01.2017, 12:46
Re: Making a command with 3 parameters - by Yaa - 04.01.2017, 13:03
Re: Making a command with 3 parameters - by ax1 - 04.01.2017, 13:48
Re: Making a command with 3 parameters - by Yaa - 04.01.2017, 14:05

Forum Jump:


Users browsing this thread: 1 Guest(s)