#Cantiliano achei o erro й aki olha, mas serб que vocк poderia ver para mim o que pode ser? eu nгo sei !
pawn Код:
public OnPlayerSelectedMenuRow(playerid, row)
{
new Menu:Menu;
new grana;
Menu = GetPlayerMenu(playerid);
grana = GetPlayerGrana(playerid);
if(Menu == Lista)
{
switch(row)
{
case 0:
{
TogglePlayerControllable(playerid, 0);
HideMenuForPlayer(Lista,playerid);
ShowMenuForPlayer(PistolasLista, playerid);
}
case 1:
{
TogglePlayerControllable(playerid, 0);
HideMenuForPlayer(Lista,playerid);
ShowMenuForPlayer(MicroLista, playerid);
}
case 2:
{
TogglePlayerControllable(playerid, 0);
HideMenuForPlayer(Lista,playerid);
ShowMenuForPlayer(EscopetaLista, playerid);
}
case 3:
{
TogglePlayerControllable(playerid, 0);
HideMenuForPlayer(Lista,playerid);
ShowMenuForPlayer(SMGLista, playerid);
}
case 4:
{
TogglePlayerControllable(playerid, 0);
HideMenuForPlayer(Lista,playerid);
ShowMenuForPlayer(RifleLista, playerid);
}
case 5:
{
TogglePlayerControllable(playerid, 0);
HideMenuForPlayer(Lista,playerid);
ShowMenuForPlayer(AssaltoLista, playerid);
}
}
}
if(Menu == PistolasLista)
{
switch(row)
{
case 0:
{
TogglePlayerControllable(playerid, 0);
HideMenuForPlayer(PistolasLista,playerid);
ShowMenuForPlayer(Pistola9mm, playerid);
}
case 1:
{
TogglePlayerControllable(playerid, 0);
HideMenuForPlayer(PistolasLista,playerid);
ShowMenuForPlayer(Pistola9mms, playerid);
}
case 2:
{
TogglePlayerControllable(playerid, 0);
HideMenuForPlayer(PistolasLista,playerid);
ShowMenuForPlayer(DesertEagle, playerid);
}
}
}
if(Menu == MicroLista)
{
switch(row)
{
case 0:
{
TogglePlayerControllable(playerid, 0);
HideMenuForPlayer(MicroLista,playerid);
ShowMenuForPlayer(Tec9, playerid);
}
case 1:
{
TogglePlayerControllable(playerid, 0);
HideMenuForPlayer(MicroLista,playerid);
ShowMenuForPlayer(MicroSMG, playerid);
}
}
}
if(Menu == EscopetaLista)
{
switch(row)
{
case 0:
{
TogglePlayerControllable(playerid, 0);
HideMenuForPlayer(EscopetaLista,playerid);
ShowMenuForPlayer(Escopeta, playerid);
}
case 1:
{
TogglePlayerControllable(playerid, 0);
HideMenuForPlayer(EscopetaLista,playerid);
ShowMenuForPlayer(EscopetaCS, playerid);
}
case 2:
{
TogglePlayerControllable(playerid, 0);
HideMenuForPlayer(EscopetaLista,playerid);
ShowMenuForPlayer(EscopetaC, playerid);
}
}
}
if(Menu == SMGLista)
{
switch(row)
{
case 0:
{
TogglePlayerControllable(playerid, 0);
HideMenuForPlayer(SMGLista,playerid);
ShowMenuForPlayer(SMG, playerid);
}
}
}
if(Menu == RifleLista)
{
switch(row)
{
case 0:
{
TogglePlayerControllable(playerid, 0);
HideMenuForPlayer(RifleLista,playerid);
ShowMenuForPlayer(Rifle, playerid);
}
case 1:
{
TogglePlayerControllable(playerid, 0);
HideMenuForPlayer(RifleLista,playerid);
ShowMenuForPlayer(RifleS, playerid);
}
}
}
if(Menu == AssaltoLista)
{
switch(row)
{
case 0:
{
TogglePlayerControllable(playerid, 0);
HideMenuForPlayer(AssaltoLista,playerid);
ShowMenuForPlayer(Ak47, playerid);
}
case 1:
{
TogglePlayerControllable(playerid, 0);
HideMenuForPlayer(AssaltoLista,playerid);
ShowMenuForPlayer(M4, playerid);
}
}
}
if(Menu == Pistola9mm)
{
switch(row)
{
case 0:
{
if(grana > 148)
{
GivePlayerGrana(playerid, -149);
GivePlayerWeapon(playerid, 22, 99999);
TogglePlayerControllable(playerid, 1);
}
else
{
SendClientMessage(playerid, Vermelho, "[ERRO] Vocк nгo tem dinheiro suficiente");
TogglePlayerControllable(playerid, 1);
}
}
}
}
if(Menu == Pistola9mms)
{
switch(row)
{
case 0:
{
if(grana > 168)
{
GivePlayerGrana(playerid, -169);
GivePlayerWeapon(playerid, 23, 99999);
TogglePlayerControllable(playerid, 1);
}
else
{
SendClientMessage(playerid, Vermelho, "[ERRO] Vocк nгo tem dinheiro suficiente");
TogglePlayerControllable(playerid, 1);
}
}
}
}
if(Menu == DesertEagle)
{
switch(row)
{
case 0:
{
if(grana > 348)
{
GivePlayerGrana(playerid, -349);
GivePlayerWeapon(playerid, 24, 99999);
TogglePlayerControllable(playerid, 1);
}
else
{
SendClientMessage(playerid, Vermelho, "[ERRO] Vocк nгo tem dinheiro suficiente");
TogglePlayerControllable(playerid, 1);
}
}
}
}
if(Menu == Tec9)
{
switch(row)
{
case 0:
{
if(grana > 448)
{
GivePlayerGrana(playerid, -449);
GivePlayerWeapon(playerid, 32, 99999);
TogglePlayerControllable(playerid, 1);
}
else
{
SendClientMessage(playerid, Vermelho, "[ERRO] Vocк nгo tem dinheiro suficiente");
TogglePlayerControllable(playerid, 1);
}
}
}
}
if(Menu == MicroSMG)
{
switch(row)
{
case 0:
{
if(grana > 398)
{
GivePlayerGrana(playerid, -399);
GivePlayerWeapon(playerid, 28, 99999);
TogglePlayerControllable(playerid, 1);
}
else
{
SendClientMessage(playerid, Vermelho, "[ERRO] Vocк nгo tem dinheiro suficiente");
TogglePlayerControllable(playerid, 1);
}
}
}
}
if(Menu == Escopeta)
{
switch(row)
{
case 0:
{
if(grana > 448)
{
GivePlayerGrana(playerid, -449);
GivePlayerWeapon(playerid, 25, 99999);
TogglePlayerControllable(playerid, 1);
}
else
{
SendClientMessage(playerid, Vermelho, "[ERRO] Vocк nгo tem dinheiro suficiente");
TogglePlayerControllable(playerid, 1);
}
}
}
}
if(Menu == EscopetaCS)
{
switch(row)
{
case 0:
{
if(grana > 548)
{
GivePlayerGrana(playerid, -549);
GivePlayerWeapon(playerid, 26, 99999);
TogglePlayerControllable(playerid, 1);
}
else
{
SendClientMessage(playerid, Vermelho, "[ERRO] Vocк nгo tem dinheiro suficiente");
TogglePlayerControllable(playerid, 1);
}
}
}
}
if(Menu == EscopetaC)
{
switch(row)
{
case 0:
{
if(grana > 398)
{
GivePlayerGrana(playerid, -399);
GivePlayerWeapon(playerid, 27, 99999);
TogglePlayerControllable(playerid, 1);
}
else
{
SendClientMessage(playerid, Vermelho, "[ERRO] Vocк nгo tem dinheiro suficiente");
TogglePlayerControllable(playerid, 1);
}
}
}
}
if(Menu == SMG)
{
switch(row)
{
case 0:
{
if(grana > 388)
{
GivePlayerGrana(playerid, -389);
GivePlayerWeapon(playerid, 29, 99999);
TogglePlayerControllable(playerid, 1);
}
else
{
SendClientMessage(playerid, Vermelho, "[ERRO] Vocк nгo tem dinheiro suficiente");
TogglePlayerControllable(playerid, 1);
}
}
}
}
if(Menu == Rifle)
{
switch(row)
{
case 0:
{
if(grana > 248)
{
GivePlayerGrana(playerid, -249);
GivePlayerWeapon(playerid, 33, 9999);
TogglePlayerControllable(playerid, 1);
}
else
{
SendClientMessage(playerid, Vermelho, "[ERRO] Vocк nгo tem dinheiro suficiente");
TogglePlayerControllable(playerid, 1);
}
}
}
}
if(Menu == RifleS)
{
switch(row)
{
case 0:
{
if(grana > 998)
{
GivePlayerGrana(playerid, -999);
GivePlayerWeapon(playerid, 34, 99999);
TogglePlayerControllable(playerid, 1);
}
else
{
SendClientMessage(playerid, Vermelho, "[ERRO] Vocк nгo tem dinheiro suficiente");
TogglePlayerControllable(playerid, 1);
}
}
}
}
if(Menu == Ak47)
{
switch(row)
{
case 0:
{
if(grana > 698)
{
GivePlayerGrana(playerid, -699);
GivePlayerWeapon(playerid, 30, 99999);
TogglePlayerControllable(playerid, 1);
}
else
{
SendClientMessage(playerid, Vermelho, "[ERRO] Vocк nгo tem dinheiro suficiente");
TogglePlayerControllable(playerid, 1);
}
}
}
}
if(Menu == M4)
{
switch(row)
{
case 0:
{
if(grana > 748)
{
GivePlayerGrana(playerid, -749);
GivePlayerWeapon(playerid, 31, 99999);
TogglePlayerControllable(playerid, 1);
}
else
{
SendClientMessage(playerid, Vermelho, "[ERRO] Vocк nгo tem dinheiro suficiente");
TogglePlayerControllable(playerid, 1);
}
}
}
}
return 1;
}