SA-MP Forums Archive
2 Command Readers - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: 2 Command Readers (/showthread.php?tid=555729)



2 Command Readers - Kudoz - 08.01.2015

Hey,

Is it somehow possible to use zcmd and strtok? Like..

this
pawn Код:
if(strcmp(cmdtext, "/white", true) == 0)
    {
        SetPlayerColor(playerid, COLOR_WHITE);
        return 1;
    }
under OnPlayerCommandText

and
pawn Код:
CMD:commands(playerid, params[])
{
    SendClientMessage(playerid, lightgreen, "----------------------------------");
    SendClientMessage(playerid, lightgreen, "* {B4B5B7}/admins /vips /report /stats /cmds /help");
    SendClientMessage(playerid, lightgreen, "----------------------------------");
    return 1;
}
under nothing? Cuz now all the strcmp commands doesn't work. It's all in one gamemode.


Re: 2 Command Readers - Rabea - 08.01.2015

No it won't work both together


Re: 2 Command Readers - Kudoz - 08.01.2015

Aw, alright. Thanks though