31.08.2009, 14:08
not working.. i already got this codes....
this is all my code for the menu
this is all my code for the menu
pawn Код:
new Menu:shop
shop = CreateMenu("Weapon Shop", 2, 50.0, 180.0, 200.0, 200.0);
AddMenuItem(Shop, 0, "AK-47");
AddMenuItem(Shop, 1, "2000$");
public OnPlayerSelectedMenuRow(playerid, row)
{
new Menu:current;
current = GetPlayerMenu(playerid);
if(current == Shop)
{
switch(row)
{
case 0:{
GivePlayerWeapon(playerid, 30, 1000);
}
}
}
return 1;
}

