Joke command
#9

Quote:
Originally Posted by geerdinho8
Посмотреть сообщение
bottom of your script:
pawn Код:
#define COLOR_BLUE 0xFF0000AA

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/tellmeajoke", cmdtext, true, 10) == 0)
    {
    SendClientMessage(playerid, COLOR_BLUE, "Here the joke");
        return 1;
    }
    return 0;
}
wtf is this guy asked for random joke, and wtf is with strcmp("/tellmeajoke", cmdtext, true, 10), you can do

cmd = strtok(cmdtext, idx); and then strcmp(cmd, "/telljoke", true)
Reply


Messages In This Thread
Joke command - by ColdIce - 05.06.2011, 16:18
Re: Joke command - by geerdinho8 - 05.06.2011, 16:22
Re: Joke command - by ColdIce - 05.06.2011, 16:24
Re: Joke command - by ColdIce - 05.06.2011, 16:29
Re: Joke command - by sleepysnowflake - 05.06.2011, 16:32
Re: Joke command - by geerdinho8 - 05.06.2011, 16:32
Re: Joke command - by ColdIce - 05.06.2011, 16:32
Re: Joke command - by Mean - 05.06.2011, 16:33
Re: Joke command - by CoaPsyFactor - 05.06.2011, 17:06
Re: Joke command - by Mean - 05.06.2011, 17:18

Forum Jump:


Users browsing this thread: 1 Guest(s)