Command help..
#1

How can I go about making a command like:

/Enable Something 1, you can either enter 1 or 0 and it sets the value for "Something"

Something like:

pawn Код:
CMD:test(playerid, params[])
{
    if(isnull(params)) return 0;

    if(strcmp.. "something"..
    {
        if(isnull(what_here?)) return "Usage: /Test Something <0or1>"
        something = 1; or something = 0;
    }
}
Reply


Messages In This Thread
Command help.. - by [L3th4l] - 07.07.2011, 05:25
Re: Command help.. - by Donya - 07.07.2011, 05:28
Re: Command help.. - by Kyosaur - 07.07.2011, 08:12

Forum Jump:


Users browsing this thread: 1 Guest(s)