/dvcreate help PLZ! -
AwaisMalik - 22.07.2015
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
Re: /dvcreate help PLZ! -
xVIP3Rx - 22.07.2015
This section's for asking for help with
your code, post your dvcreate command..
Re: /dvcreate help PLZ! -
AwaisMalik - 22.07.2015
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;
}
Re: /dvcreate help PLZ! -
xVIP3Rx - 22.07.2015
This doesn't actually create the vehicle, it loads the data then call the command that (I guess) creates the vehicle, post "DynVeh_CreateDVQuery"
Re: /dvcreate help PLZ! -
AwaisMalik - 22.07.2015
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
Re: /dvcreate help PLZ! -
xVIP3Rx - 22.07.2015
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.
Re: /dvcreate help PLZ! -
AwaisMalik - 22.07.2015
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
Re: /dvcreate help PLZ! -
Stanford - 22.07.2015
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.
Re: /dvcreate help PLZ! -
AwaisMalik - 22.07.2015
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