Nubbish Coding Question
#9

For more commands:

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/mycommand", cmdtext, true, 10) == 0)
    {
        // Do something here
        return 1;
    }
    if (strcmp("/mycommand", cmdtext, true, 10) == 0)
    {
        // Do another thing here
        return 1;
    }
    return 0;
}
Reply


Messages In This Thread
Nubbish Coding Question - by xSiiLenTx - 16.08.2012, 07:08
Re: Nubbish Coding Question - by doreto - 16.08.2012, 07:10
Re: Nubbish Coding Question - by xSiiLenTx - 16.08.2012, 07:10
Re: Nubbish Coding Question - by Cjgogo - 16.08.2012, 07:16
Re: Nubbish Coding Question - by _Vortex - 16.08.2012, 07:18
Re: Nubbish Coding Question - by Sniper Kitty - 16.08.2012, 07:21
Re: Nubbish Coding Question - by Cjgogo - 16.08.2012, 07:33
Re: Nubbish Coding Question - by xSiiLenTx - 16.08.2012, 07:59
Re: Nubbish Coding Question - by Weaselpwns - 16.08.2012, 08:38

Forum Jump:


Users browsing this thread: 1 Guest(s)