[FilterScript] Job Information MessageBox
#4

Quote:
Originally Posted by Basicz
Посмотреть сообщение
You don't even need strtok for this script.
You don't even need DUDB for this script.
This is actually true, but you probably haven't seen the OnPlayerCommandText callback.
I use this methode for comparing strings, but users can modify it to ther own methode anyways.

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    new cmd[256], idx;
    cmd = strtok(cmdtext, idx);

    if(strcmp(cmd, "/jobinfo", true) == 0 || strcmp(cmd, "/jobinformation", true) == 0 || strcmp(cmd, "/jobhelp", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            DisplayDialogForPlayer(playerid, JOBINFO);
            return 1;
        }
    }
    return 1;
}
But still thank you for your feedback ^^.
Reply


Messages In This Thread
Job Information MessageBox - by Improvement™ - 16.08.2011, 13:29
Re: Job Information MessageBox - by Kaperstone - 16.08.2011, 13:36
Re: Job Information MessageBox - by Basicz - 16.08.2011, 13:45
Re: Job Information MessageBox - by Improvement™ - 16.08.2011, 14:04
Re : Job Information MessageBox - by Soumi - 16.08.2011, 14:15
Re: Job Information MessageBox - by Dystans - 16.08.2011, 14:26
Re: Job Information MessageBox - by Improvement™ - 16.08.2011, 14:31
Re: Job Information MessageBox - by [M.A]Angel[M.A] - 16.08.2011, 17:30
Re: Job Information MessageBox - by WoodPecker - 16.08.2011, 17:44
Re: Job Information MessageBox - by Improvement™ - 16.08.2011, 18:03

Forum Jump:


Users browsing this thread: 1 Guest(s)