Problem with command
#1

pawn Код:
if(strcmp(cmd,"/Carhelp",true)==0)
    {
    tmp=strtok(cmdtext,idx);
    if(!strlen(tmp))  return SendClientMessage(playerid,0xFFFFFFFF,"Usage : /Carhelp [1-3]");
    if(strcmp(tmp,"1",true))
    {
        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] --------");
    }
    return 1;
}
    return 0;
}
When a player typing /Carhelp it's saying that line again and again '"Usage /Carhelp [1-3]".
How can i fix that? I tried everything..
Reply


Messages In This Thread
Problem with command - by Firo - 22.05.2012, 05:21
Re: Problem with command - by HDFord - 22.05.2012, 06:05
Re: Problem with command - by Firo - 22.05.2012, 06:09
Re: Problem with command - by Gangs_Rocks - 22.05.2012, 06:42
Re: Problem with command - by Firo - 22.05.2012, 06:46
Re: Problem with command - by HDFord - 22.05.2012, 07:46
Re: Problem with command - by MP2 - 22.05.2012, 07:57
Re: Problem with command - by Neil. - 22.05.2012, 08:42
Re: Problem with command - by Firo - 22.05.2012, 08:44
Re: Problem with command - by Neil. - 22.05.2012, 08:50

Forum Jump:


Users browsing this thread: 4 Guest(s)