/clan invite [id]
#5

I find this way easier:
PHP код:
CMD:clan(playeridparams[])
{
    new 
idcl_name[16]; // change "16" to the max size you have for clan's name
    
if (!sscanf(params"'create's[16]"cl_name))
    {
        
// command: "/clan create <clan name>"
    
}
    else if (!
sscanf(params"'invite'r"id))
    {
        
// command: "/clan invite <ID/Part Of Name>"
    
}
    else if (!
strcmp(params"leave"true))
    {
          
// command: "/clan leave"
    
}
    else if (!
strcmp(params"help"true))
    {
          
// command: "/clan help"
    
}
    else 
SendClientMessage(playerid, -1""COL_GRAY"USAGE: /clan [create/leave/help]"), SendClientMessage(playerid, -1""COL_GRAY"USAGE: /clan invite [id/part of name]");
    return 
1;

In case you do /clan create and a dialog or something appears to input, then change to strcmp instead of sscanf for that type.
Reply


Messages In This Thread
/clan invite [id] - by TheSimpleGuy - 20.05.2016, 07:10
Respuesta: /clan invite [id] - by Thewin - 20.05.2016, 07:22
Re: /clan invite [id] - by TheSimpleGuy - 20.05.2016, 07:27
Respuesta: /clan invite [id] - by Thewin - 20.05.2016, 07:28
Re: /clan invite [id] - by Konstantinos - 20.05.2016, 09:05
Re: /clan invite [id] - by TheSimpleGuy - 20.05.2016, 14:11
Re: /clan invite [id] - by TheSimpleGuy - 20.05.2016, 15:46
Re: /clan invite [id] - by TheSimpleGuy - 21.05.2016, 03:42
Re: /clan invite [id] - by Naresh - 21.05.2016, 04:07

Forum Jump:


Users browsing this thread: 2 Guest(s)