new Menu:bsn;
bsn = CreateMenu("bsn", 2, 375.9600, -68.2126, 1001.5151);
AddMenuItem(bsn, 0, "Happy Meal");
AddMenuItem(bsn, 1, "$50");
AddMenuItem(bsn, 0, "Mini Menu");
AddMenuItem(bsn, 1, "$100");
AddMenuItem(bsn, 0, "Maxi Menu");
AddMenuItem(bsn, 1, "$150");
public OnPlayerSelectedMenuRow(playerid, row)
{
new Float:PlayerHealth;
new Health = GetPlayerHealth(playerid, PlayerHealth);
if(CurrentMenu == bsn)
{
switch(row)
{
case 0: //Happy Meal
{
SetPlayerHealth(playerid, PlayerHealth+25);
GivePlayerMoney(playerid, -50);
}
case 1: //Mini Menu
{
SetPlayerHealth(playerid, PlayerHealth+50);
GivePlayerMoney(playerid, -100);
}
case 2: //Maxi Menu
{
SetPlayerHealth(playerid, PlayerHealth+75);
GivePlayerMoney(playerid, -150);
}
}
}
return 1;
}
[pwn]
er sagt bei dieser Line " symbol is assigned a value that is never used: "Health" "
[pwn]
new Health = GetPlayerHealth(playerid, PlayerHealth);
und bei dieser Line " tag mismatch "
ShowMenuForPlayer(bsnmenu, playerid);