Multiple usage
#3

PHP Code:
CMD:h(playeridparams[])
{
    new 
tmp[50]
     if(
sscanf(params"s[5]"tmp)) return SendClientMessage(playerid, -1"{0008F7}USAGE: {FFFFFF}/H [BUY/SELL]");
    if(
strcmp(tmp"BUY") && strcmp(tmp"SELL")) return SendClientMessage(playerid, -1"{0008F7}USAGE: {FFFFFF}/H [BUY/SELL]");
    if(!
strcmp(tmp"BUY"))
    {
        
//buy
    
}
    if(!
strcmp(tmp"SELL"))
    {
        
//sell
    
}
    return 
1;

Reply


Messages In This Thread
Multiple usage - by Ahmed21 - 06.08.2016, 19:20
Re: Multiple usage - by Konstantinos - 06.08.2016, 19:27
Re: Multiple usage - by Shinja - 06.08.2016, 19:29
Re: Multiple usage - by Ahmed21 - 06.08.2016, 20:00
Re: Multiple usage - by Ahmed21 - 06.08.2016, 20:03
Re: Multiple usage - by Konstantinos - 06.08.2016, 20:06

Forum Jump:


Users browsing this thread: 1 Guest(s)