[DUV] Problems Menu
#1

Oh My God Here My menu
select the menu option is not causing effect

Here Code of Menu:
pawn Код:
#include <a_samp>
#include <a_players>

new Menu:Cores;


public OnFilterScriptInit()
{
Cores = CreateMenu("Cores DKN", 1, 50.0, 180.0, 200.0, 200.0);
AddMenuItem(Cores, 0, "Vermelho");
AddMenuItem(Cores, 0, "Azul");
AddMenuItem(Cores, 0, "Rosa");
AddMenuItem(Cores, 0, "Verde");
AddMenuItem(Cores, 0, "Roxo");
AddMenuItem(Cores, 0, "Preto");
AddMenuItem(Cores, 0, "Branco");
AddMenuItem(Cores, 0, "Laranja");
AddMenuItem(Cores, 0, "Cinza");
AddMenuItem(Cores, 0, "Amarelo");
AddMenuItem(Cores, 0, "Bege");
AddMenuItem(Cores, 0, "Marrom");
return 1;
}

public OnPlayerCommandText(playerid,cmdtext[]) {
    if(strcmp(cmdtext, "/cores", true) == 0)
{
  ShowMenuForPlayer(Cores, playerid);
  return 1;
}
  return 0;
}
public OnPlayerSelectedMenuRow(playerid, row)
{
  new Menu:current;
  current = GetPlayerMenu(playerid);
  if(current == Cores)
  {
    switch(row)
    {
      case 0:{
        //Row 1 code
SetPlayerColor(playerid,0xFF3C00FF);
      }
      case 1:{
//Row 2 code
SetPlayerColor(playerid,0x000FFFFF);
      }
      case 2:{
//Row 3 code
SetPlayerColor(playerid,0xFF00E1FF);
      }
      case 3:{
//Row 4 code
SetPlayerColor(playerid,0x23FF00FF);
      }
      case 4:{
//Row 5 code
SetPlayerColor(playerid,0xA000FFFF);
      }
      case 5:{
//Row 6 code
SetPlayerColor(playerid,0x190000FF);
      }
      case 6:{
//Row 7 code
SetPlayerColor(playerid,0xFAFAFAFF);
      }
      case 7:{
//Row 8 code
SetPlayerColor(playerid,0xFFA000FF);
      }
      case 8:{
//Row 9 code
SetPlayerColor(playerid,0xA0A0A0FF);
      }
      case 9:{
//Row 10 code
SetPlayerColor(playerid,0xFFFF00FF);
      }
      case 10:{
//Row 11 code
SetPlayerColor(playerid,0xEBFF00FF);
      }
      case 11:{
//Row 12 code
SetPlayerColor(playerid,0x550000FF);
      }
    }
  }
  return 1;
}
Sorry my Bad English I Am brasilian!
Reply
#2

sorry what is it not doing? not displaying the menu? or not changing colors?
Reply
#3

yes, no change color!
Reply
#4

If you are setting your own color you won't see it when you press TAB to bring up the menu.

You will show as a different color to other players though.
Reply
#5

is not working yet
Reply
#6

Are you sure?

As 'TheInnocentOne' explained, it probably is you just don't recognize it.
Reply
#7

I am Brasilian,Not Speak English Correct xD =p
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)