Nothing happends.. +1 -
Lynet - 19.11.2013
Код HTML:
if(strcmp(cmdx, "/bput", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(!IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid, COLOR_YELLOW, " You must be in the car!");
SendClientMessage(playerid, COLOR_GRAD, " Thoughts: Hmm .. to put a weapon to open the trunk, and the button opening located in the car.");
return 1;
}
if(model!=448 && model!=461 && model!=462 && model!=463 && model!=468 && model!=471 && model!=481 && model!=509 && model!=510 && model!=521 && model!=522 && model!=523 && model!=581 && model!=586 && model!=481 && model!=509 && model!=510)
{
ShowPlayerDialog(playerid,DIALOG_BPUT,DIALOG_STYLE_LIST," Trunk","Weapon(Slot:1)\nWeapon(Slot:2)\nWeapon(Slot:3)\nWeapon(Slot:4)\nWeapon(Slot:5)\nWeapon(Slot:6)", "Put", "Close");
}
else
{
SendClientMessage(playerid, COLOR_YELLOW, " This is vehicle not have trunk!");
}
}
return 1;
}
Ok this is my code for the putgun cmd for the trunk, but i'm facing a problem, no errors, no warnings, but nothing happends when i'm trying to place the gun into the trunk?
+REP for the one who helps me out!
AW: Nothing happends.. +1 -
Littl3j0hNy - 19.11.2013
hey forgot that model check?
pawn Код:
if(strcmp(cmdx, "/bput", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(!IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid, COLOR_YELLOW, " You must be in the car!");
SendClientMessage(playerid, COLOR_GRAD, " Thoughts: Hmm .. to put a weapon to open the trunk, and the button opening located in the car.");
return 1;
}
new model = GetVehicleModel(GetPlayerVehicleID(playerid)); // --- here
if(model!=448 && model!=461 && model!=462 && model!=463 && model!=468 && model!=471 && model!=481 && model!=509 && model!=510 && model!=521 && model!=522 && model!=523 && model!=581 && model!=586 && model!=481 && model!=509 && model!=510)
{
ShowPlayerDialog(playerid,DIALOG_BPUT,DIALOG_STYLE_LIST," Trunk","Weapon(Slot:1)\nWeapon(Slot:2)\nWeapon(Slot:3)\nWeapon(Slot:4)\nWeapon(Slot:5)\nWeapon(Slot:6)", "Put", "Close");
}
else
{
SendClientMessage(playerid, COLOR_YELLOW, " This is vehicle not have trunk!");
}
}
return 1;
}
Re: Nothing happends.. +1 -
Lynet - 25.11.2013
Still nothing happends, :/
Re: Nothing happends.. +1 -
Lynet - 25.11.2013
BUMP, someone?
Re: AW: Nothing happends.. +1 -
Spydah - 25.11.2013
Nothing will happen with the gun because there is nothing according to take the gun and save the gun in the trunk.
Show me the BPUT dialog, maybe it's there.
Re: Nothing happends.. +1 -
kbalor - 25.11.2013
can you please show the script for DIALOG_BPUT under ondialogresponse?
Re: Nothing happends.. +1 -
sanplayer - 25.11.2013
Show the code for
DIALOG_BPUT
which should be under the following script:
OnPlayerDialogResponse
EDIT: :O It's been changed to a higher limit