[ Help ] Spaces in Commands
#5

Quote:
Originally Posted by kirollos
Посмотреть сообщение
pawn Код:
CMD:starttest(playerid, params[])
{
    if(isnull(params))
    {
                return SendClientMessage(playerid, -1, "USAGE: /starttest [standard/trucker]");
    }
    if(!strcmp(params, "standard", true))
    {
        SendClientMessage(playerid, COLOR_WHITE, "Yes, standard works.");
                return 1;
    }
    if(!strcmp(params, "trucker", true))
    {
        SendClientMessage(playerid, COLOR_WHITE, "Yes, trucker works.");
                return 1;
    }
    return 1;
}
It worked! Thank you!
Reply


Messages In This Thread
[ Help ] Spaces in Commands - by xXRealLegitXx - 04.06.2013, 03:14
Re: [ Help ] Spaces in Commands - by Kirollos - 04.06.2013, 03:28
Re: [ Help ] Spaces in Commands - by xXRealLegitXx - 04.06.2013, 03:59
Re: [ Help ] Spaces in Commands - by Kirollos - 04.06.2013, 04:07
Re: [ Help ] Spaces in Commands - by xXRealLegitXx - 04.06.2013, 04:19

Forum Jump:


Users browsing this thread: 1 Guest(s)