[Help] Subcommands
#1

When i type /buyvehicle it shows ok but when i try to type /buyvehicle bmx or /buyvehicle buffalo it won't work , can some one help me please
Quote:

if(!strcmp(cmdtext, "/buyvehicle", true)) // By Ellis
{
new x_nr[64];
x_nr = strtok(cmdtext, idx);
if(!strlen(x_nr))
{
SendClientMessage(playerid, COLOR_WHITE, "HINT: /buyvehicle [name]");
SendClientMessage(playerid, COLOR_WHITE, "Available vehicles: bmx (20000$), buffalo (500000$)");
return 1;
}
if(strcmp(x_nr,"bmx",true) == 0)
{
SendClientMessage(playerid, COLOR_WHITE, "BMX");
}
else if(strcmp(x_nr,"buffalo",true) == 0)
{
SendClientMessage(playerid, COLOR_WHITE, "buffalo");
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "HINT: /buyvehicle [name]");
SendClientMessage(playerid, COLOR_WHITE, "Available vehicles: bmx (20000$), buffalo (500000$)");
}
return 1;
}

Reply


Messages In This Thread
[Help] Subcommands - by Ivan_Pantovic - 25.04.2010, 21:07
Re: [Help] Subcommands - by aircombat - 25.04.2010, 21:34
Re: [Help] Subcommands - by Ivan_Pantovic - 25.04.2010, 22:05
Re: [Help] Subcommands - by CAR - 26.04.2010, 07:04
Re: [Help] Subcommands - by Ivan_Pantovic - 26.04.2010, 07:39

Forum Jump:


Users browsing this thread: 1 Guest(s)