Problem with OnPlayerCommandText
#8

pawn Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/test", cmdtext, true, 5) == 0) // string value for /test command will be 5 rather than 10
    {
        SendClientMessage(playerid, COLOR_WHITE, "Test");
        return 1;
    }
    return 0;
}
Reply


Messages In This Thread
Problem with OnPlayerCommandText - by falcko - 25.04.2012, 11:11
Re: Problem with OnPlayerCommandText - by ikbenremco - 25.04.2012, 11:26
Re : Problem with OnPlayerCommandText - by falcko - 25.04.2012, 11:37
Re: Problem with OnPlayerCommandText - by Aira - 25.04.2012, 11:56
Re : Problem with OnPlayerCommandText - by falcko - 25.04.2012, 12:02
Re: Problem with OnPlayerCommandText - by Aira - 25.04.2012, 12:05
Re : Problem with OnPlayerCommandText - by falcko - 25.04.2012, 12:14
Re: Problem with OnPlayerCommandText - by Mark™ - 25.04.2012, 13:23

Forum Jump:


Users browsing this thread: 1 Guest(s)