Returning
#2

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/mycommand", cmdtext, true, 10) == 0)
    {
        // Do something here
        return 1;
    }
    else
    {
    new string[150];
    format(string, sizeof(string), "Error: The command %s is unknown", cmdtext);
    xPlayerPlaySound( playerid, 31202);
    return  SendClientMessage(playerid, -1, string);
    }
}
Reply


Messages In This Thread
Returning - by [SF]OutLawZ - 22.06.2012, 06:45
Re: Returning - by [MM]RoXoR[FS] - 22.06.2012, 06:56
Re: Returning - by [SF]OutLawZ - 22.06.2012, 07:02

Forum Jump:


Users browsing this thread: 1 Guest(s)