/dvcreate help PLZ!
#3

Quote:
Originally Posted by xVIP3Rx
Посмотреть сообщение
This section's for asking for help with your code, post your dvcreate command..
Код:
CMD:dvcreate(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] >= 4)
	{
		new
				iVehicle,
				iColors[2],
				string[128];

		if(sscanf(params, "iii", iVehicle, iColors[0], iColors[1])) {
			return SendClientMessageEx(playerid, COLOR_GREY, "USAGE: /dvcreate [model ID] [color 1] [color 2]");
		}
		if(!(400 < iVehicle < 612)) return SendClientMessage(playerid, COLOR_GRAD2, "Invalid Model ID");
		else if(IsATrain(iVehicle)) {
				SendClientMessageEx(playerid, COLOR_GREY, "Trains cannot be spawned during runtime.");
			}
		else if(!(0 <= iColors[0] <= 255 && 0 <= iColors[1] <= 255)) {
			SendClientMessageEx(playerid, COLOR_GRAD2, "Invalid color specified (IDs start at 0, and end at 255).");
		}
		mysql_function_query(MainPipeline, "SELECT id from `groupvehs` WHERE vModel = 0 LIMIT 1;", true, "DynVeh_CreateDVQuery", "iiii", playerid, iVehicle, iColors[0], iColors[1]);
		format(string, sizeof(string), "%s has created a dynamic vehicle.", GetPlayerNameEx(playerid));
		Log("logs/dv.log", string);
	}
	else return SendClientMessage(playerid, COLOR_GRAD2, "You're not authorized to use this command.");
	return 1;
}
Reply


Messages In This Thread
/dvcreate help PLZ! - by AwaisMalik - 22.07.2015, 18:45
Re: /dvcreate help PLZ! - by xVIP3Rx - 22.07.2015, 18:53
Re: /dvcreate help PLZ! - by AwaisMalik - 22.07.2015, 19:23
Re: /dvcreate help PLZ! - by xVIP3Rx - 22.07.2015, 20:24
Re: /dvcreate help PLZ! - by AwaisMalik - 22.07.2015, 21:14
Re: /dvcreate help PLZ! - by xVIP3Rx - 22.07.2015, 21:25
Re: /dvcreate help PLZ! - by AwaisMalik - 22.07.2015, 21:39
Re: /dvcreate help PLZ! - by Stanford - 22.07.2015, 21:58
Re: /dvcreate help PLZ! - by AwaisMalik - 22.07.2015, 22:34

Forum Jump:


Users browsing this thread: 1 Guest(s)