14.03.2015, 13:36
hello , when i complile this i don't get any msg.. but when i run and type /w , it shows Unknown Command
My mistake is? I have used the Indenstation don't worry it's just not comming here..
Quote:
CMD:w(playerid,params[]) { ShowPlayerDialog(playerid, DIALOG_WEAPONS, DIALOG_STYLE_LIST, "Weapons", "Desert Eagle ", "Select", "Close"); return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == DIALOG_WEAPONS) { if(response) // If they clicked 'Select' or double-clicked a weapon { // Give them the weapon switch(listitem) { case 0: GivePlayerWeapon(playerid, WEAPON_DEAGLE, 14); // Give them a desert eagle GivePlayerMoney(playerid , -5); } } return 1; // We handled a dialog, so return 1. Just like OnPlayerCommandText. } return 0; // You MUST return 0 here! Just like OnPlayerCommandText. } |