A command says its unknown
#10

What is exactly ur problem? SERVER:UNKNOWN COMMAND, right?

Well, the mistake IS in the thread I posted, u didn't check out everything!

If u don't want to read, well...Try to make the commands extra! One command for /vlist, other one for etc...

EDIT: Try this, untested:


pawn Код:
if(strcmp(cmd, "/vList", true) == 6 || strcmp(cmd, "/carlist", true) == 8)
{
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;
}
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: 3 Guest(s)