A command says its unknown
#1

pawn Код:
if(strcmp(cmd, "/vList", true) == 0 || strcmp(cmd, "/carlist", true) == 0) -- Does not work - "Unknown cmd"
{
new car[256], string[256];
format(string, 256, "Users/%s.txt", plname);
if(dini_Int(string, "CarsOwned") == 0) return SendClientMessage(playerid, -1, ""#COLOR_GREY"You do not own any car.");
if(dini_Int(string, "Car1") > 0)
{
format(car, 256, "Vehicles/Car%d.txt", dini_Int(string, "Car1"));
if(!dini_Exists(car)) return SendClientMessage(playerid, -1, ""#COLOR_GREY"Error occoured (error #04)");
new msg[256];
format(msg, 256, ""#COLOR_MAGENTA"[CARINFO]Model: "#COLOR_RED"%s(%d)||"#COLOR_MAGENTA"Spawned:%d||Anyone in: %d||Price: %d", GetVehicleNameFromID(dini_Int(car, "Model")), dini_Int(car, "Model"), dini_Int(car, "Spawned"), AnyOneIn[dini_Int(string, "Car1")], dini_Int(car, "Price"));
SendClientMessage(playerid, -1, msg);
}
if(dini_Int(string, "Car2") > 0)
{
format(car, 256, "Vehicles/Car%d.txt", dini_Int(string, "Car2"));
if(!dini_Exists(car)) return SendClientMessage(playerid, -1, ""#COLOR_GREY"Error occoured (error #04)");
new msg[256];
format(msg, 256, ""#COLOR_MAGENTA"[CARINFO]Model: "#COLOR_RED"%s(%d)||"#COLOR_MAGENTA"Spawned:%d||Anyone in: %d||Price: %d", GetVehicleNameFromID(dini_Int(car, "Model")), dini_Int(car, "Model"), dini_Int(car, "Spawned"), AnyOneIn[dini_Int(string, "Car2")], dini_Int(car, "Price"));
SendClientMessage(playerid, -1, msg);
}
if(dini_Int(string, "Car3") > 0)
{
format(car, 256, "Vehicles/Car%d.txt", dini_Int(string, "Car3"));
if(!dini_Exists(car)) return SendClientMessage(playerid, -1, ""#COLOR_GREY"Error occoured (error #04)");
new msg[256];
format(msg, 256, ""#COLOR_MAGENTA"[CARINFO]Model: "#COLOR_RED"%s(%d)||"#COLOR_MAGENTA"Spawned:%d||Anyone in: %d||Price: %d", GetVehicleNameFromID(dini_Int(car, "Model")), dini_Int(car, "Model"), dini_Int(car, "Spawned"), AnyOneIn[dini_Int(string, "Car3")], dini_Int(car, "Price"));
SendClientMessage(playerid, -1, msg);
}
SendClientMessage(playerid, -1, "(Spawned is set to 0?Veh is spawned/Anyone in is set to 1?Someone is in the car)");
return 1;
}
This command says Unknown command. Tell me if I need to bring the previous command on the gamemode.
Reply


Messages In This Thread
A command says its unknown - by KfirRP - 31.07.2011, 15:35
Re: A command says its unknown - by MadeMan - 31.07.2011, 15:40
Re: A command says its unknown - by KfirRP - 31.07.2011, 16:13
Re: A command says its unknown - by KfirRP - 31.07.2011, 18:42
AW: A command says its unknown - by samtey - 31.07.2011, 19:28
Re: A command says its unknown - by KfirRP - 31.07.2011, 19:38
AW: A command says its unknown - by samtey - 31.07.2011, 19:41
Re: A command says its unknown - by KfirRP - 01.08.2011, 09:24
Re: A command says its unknown - by KfirRP - 02.08.2011, 07:45
AW: A command says its unknown - by samtey - 02.08.2011, 07:56

Forum Jump:


Users browsing this thread: 2 Guest(s)