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)