/Carhelp [1-3]
#1

Hey there, i've just read a guide how to create a command like /Carhelp 1 , and no /Carhelp1

The code:
pawn Код:
if(!strcmp(cmd, "/Carhelp", true))
    {
        tmp = strtok(cmdtext,idx);
        if(!strlen(tmp)) return SendClientMessage(playerid,0xff0000ff,"/Carhelp [1-3]");
        if(!strcmp(tmp,"1",true))
        {
/*          new tmp1[256],tmp2[256];
            tmp1 = strtok(cmdtext,idx);
            tmp2 = strtok(cmdtext,idx); */

            SendClientMessage(playerid,0x0099FFFF,"-------- [Vehicle/Car System!] --------");
            SendClientMessage(playerid,0x00FF00FF,"/Car - Information about a vehicle.");
            SendClientMessage(playerid,0x00FF00FF,"/Cars - Information with Statistics about the server vehicles.");
            SendClientMessage(playerid,0x00FF00FF,"/Buycar - To buy a vehicle.");
            SendClientMessage(playerid,0x00FF00FF,"/Sellcar - To sell your own vehicle.");
            SendClientMessage(playerid,0x00FF00FF,"/Callcar - To call your vehicle to your currect position.");
            SendClientMessage(playerid,0x0099FFFF,"-------- [Carhelp Page 1] --------");
        }
        if(!strcmp(tmp,"2",true))
        {
            SendClientMessage(playerid,0x0099FFFF,"-------- [Vehicle/Car System!] --------");
            SendClientMessage(playerid,0x00FF00FF,"/Watch[Car/off] - To spectate your vehicle.");
            SendClientMessage(playerid,0x00FF00FF,"/[Un]lock - To lock/unlock your vehicle.");
            SendClientMessage(playerid,0x00FF00FF,"/Resetcar - To reset your vehicle to his parking lot.");
            SendClientMessage(playerid,0x00FF00FF,"/Eject[All] - To eject a player from your vehicle.");
            SendClientMessage(playerid,0x0099FFFF,"-------- [Carhelp Page 2] --------");
        }
        if(!strcmp(tmp,"Deny",true))
        {

            SendClientMessage(playerid,0xff6600ff,"BLANK");
            return true;
        }
    }
The problem is the /Carhelp not working, and it's always saying '/Carhelp [1-3]' again and again.

Thanks for helpers!

*The deny it's just a temp till i'm done with the Page 2.
Reply


Messages In This Thread
/Carhelp [1-3] - by Firo - 01.06.2012, 12:35
Re: /Carhelp [1-3] - by MadeMan - 01.06.2012, 12:41
Re: /Carhelp [1-3] - by Firo - 01.06.2012, 12:49
Re: /Carhelp [1-3] - by Firo - 01.06.2012, 14:16
Re: /Carhelp [1-3] - by MadeMan - 01.06.2012, 14:30
Re: /Carhelp [1-3] - by Firo - 01.06.2012, 14:31
Re: /Carhelp [1-3] - by MadeMan - 01.06.2012, 14:33
Re: /Carhelp [1-3] - by Firo - 01.06.2012, 14:35
Re: /Carhelp [1-3] - by MadeMan - 01.06.2012, 14:36
Re: /Carhelp [1-3] - by Firo - 01.06.2012, 14:40

Forum Jump:


Users browsing this thread: 4 Guest(s)