Posts: 701
Threads: 91
Joined: Mar 2012
Quote:
Originally Posted by VincentDunn
You were missing the second button parameter, and you omitted a bracket.
pawn Код:
if(dialogid == Commanddialog) { if(response) // If they clicked 'Select' or double-clicked a weapon { // Give them the weapon if(listitem == 0) // They selected the first item - Desert Eagle { GivePlayerWeapon(playerid, WEAPON_DEAGLE, 14); // Give them a desert eagle } if(listitem == 1) // They selected the second item - AK-47 { ShowPlayerDialog(playerid, 6, DIALOG_STYLE_MSGBOX, "Vip Commands", "/vheal - To Heal Yourself\n/vcar - To Spawn a VIP Car\n/vplane - To Spawn a VIP Plane\n/vcolor - To get VIP Color in Map ( Green )\n! - To Vip Chat", "Ok", "Cancel"); } if(listitem == 2) // They selected the third item - Desert Eagle { GivePlayerWeapon(playerid, WEAPON_SHOTGSPA, 28); // Give them a Combat Shotgun } return 1; } }
|
Still Errors !