Making a command seperate
#4

Quote:
Originally Posted by Immortal99
Посмотреть сообщение
You wrong!

I am asking how do i make a command like

CMD:command 1(playerid, params[])
{
SendClientMessage(playerid, COLOR_WHITE, "Server Commands");
return 1;
}

When i do compile it i get errors cause i cant make CMD:command 1 Seperate the 1 so it should be CMD:command1
You wrong...

PHP код:
CMD:command(playeridparams[])
{
        new 
idx;
    if(
sscanf(params"i"idx)) return SendClientMessage(playeridCOLOR_WHITE"USAGE: /comand number");
        switch(
idx)
        {
             case 
1:
             {
                 
//Have wrote /command 1
             
}
             
//ect....
        
}
    return 
1;

Reply


Messages In This Thread
Making a command seperate - by Immortal99 - 15.08.2016, 18:12
Re: Making a command seperate - by burhanjaved - 15.08.2016, 19:29
Re: Making a command seperate - by Immortal99 - 15.08.2016, 20:16
Re: Making a command seperate - by Shinja - 15.08.2016, 20:48
Re: Making a command seperate - by SickAttack - 15.08.2016, 20:53

Forum Jump:


Users browsing this thread: 1 Guest(s)