/dvcreate help PLZ!
#1

Whenever i make a vehicle from /dvcreate it spawns and continuely getting blow up like please help me gimme the script codes to fix it and tell me where to place it, if any one can help i can REP+ him and make him admin in my server too.
skype : awais.malik1212
Reply
#2

This section's for asking for help with your code, post your dvcreate command..
Reply
#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
#4

This doesn't actually create the vehicle, it loads the data then call the command that (I guess) creates the vehicle, post "DynVeh_CreateDVQuery"
Reply
#5

Quote:
Originally Posted by xVIP3Rx
Посмотреть сообщение
This doesn't actually create the vehicle, it loads the data then call the command that (I guess) creates the vehicle, post "DynVeh_CreateDVQuery"
didn't get your point i have opened the pawno and then should i go to mysql.pwn or command.pwn or where? help me so i can post the codes
Addition :
"DynVeh_CreateDVQuery" is in the command.pwn and it is also in the codes which is last posted by me on my reply
Reply
#6

pawn Код:
mysql_function_query(MainPipeline, "SELECT id from `groupvehs` WHERE vModel = 0 LIMIT 1;", true, "DynVeh_CreateDVQuery", "iiii", playerid, iVehicle, iColors[0], iColors[1]);
this line loads "id" from "groupvehs" and calls "DynVeh_CreateDVQuery" which should be a public function, I'm trying to check if your loading the health or not cause maybe there's an issue loading the health and it's returning 0.
Reply
#7

Quote:
Originally Posted by xVIP3Rx
Посмотреть сообщение
pawn Код:
mysql_function_query(MainPipeline, "SELECT id from `groupvehs` WHERE vModel = 0 LIMIT 1;", true, "DynVeh_CreateDVQuery", "iiii", playerid, iVehicle, iColors[0], iColors[1]);
this line loads "id" from "groupvehs" and calls "DynVeh_CreateDVQuery" which should be a public function, I'm trying to check if your loading the health or not cause maybe there's an issue loading the health and it's returning 0.
Yea whenever i create a department's vehicle using /dvcreate its always getting totalled = blast everytime, please check it and LOVE YOU FOR HELPING ME
Reply
#8

Sorry, but I think that you are not allowed to use leaked gamemodes, isn't this a version of NGG edit?

the point is start creating your own gamemodes people and learn!

regarding your problem: do you have some totaled feature for cars? please provide part of its code maybe this will help us to know the problem however, try using
pawn Код:
RepairVehicle(vehicleid);
function when you create that vehicle.
Reply
#9

Quote:
Originally Posted by Stanford
Посмотреть сообщение
Sorry, but I think that you are not allowed to use leaked gamemodes, isn't this a version of NGG edit?

the point is start creating your own gamemodes people and learn!

regarding your problem: do you have some totaled feature for cars? please provide part of its code maybe this will help us to know the problem however, try using
pawn Код:
RepairVehicle(vehicleid);
function when you create that vehicle.
It doesnt help
waiting fo' more help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)