how to do this with sscanf: /cmd join. /cmd leave
#4

pawn Код:
CMD:gang(playerid, params[])
{
    new choice[32];
    if(sscanf(params,"s[32]",choice))
    {
        SendClientMessage(playerid, -1, "USAGE: /gang [choice]");
        SendClientMessage(playerid, -1, "Choices: join, leave");
        return 1;
    }
    if(strcmp(choice, "join", true) == 0)
    {
   
   
    }
    else if(strcmp(choice, "leave", true) == 0)
    {
   
   
    }
    else
    {
        SendClientMessage(playerid, -1, "invalid choice.");
    }
    return 1;
}
Any feedback would be appreciated!.
Reply


Messages In This Thread
how to do this with sscanf: /cmd join. /cmd leave - by [Cali]ChrOnic_T - 16.07.2014, 10:13
Re: how to do this with sscanf: /cmd join. /cmd leave - by Jack_Leslie - 16.07.2014, 10:25
Re: how to do this with sscanf: /cmd join. /cmd leave - by Naresh - 16.07.2014, 10:33
Re: how to do this with sscanf: /cmd join. /cmd leave - by Stanford - 16.07.2014, 10:52

Forum Jump:


Users browsing this thread: 4 Guest(s)