[DUV] Problems Menu - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [DUV] Problems Menu (
/showthread.php?tid=150820)
[DUV] Problems Menu -
ipsBruno - 28.05.2010
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!
Re: [DUV] Problems Menu -
(SF)Noobanatior - 28.05.2010
sorry what is it not doing? not displaying the menu? or not changing colors?
Re: [DUV] Problems Menu -
ipsBruno - 28.05.2010
yes, no change color!
Re: [DUV] Problems Menu - TheInnocentOne - 29.05.2010
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.
Re: [DUV] Problems Menu -
ipsBruno - 31.05.2010
is not working yet
Re: [DUV] Problems Menu -
Grim_ - 31.05.2010
Are you sure?
As 'TheInnocentOne' explained, it probably is you just don't recognize it.
Re: [DUV] Problems Menu -
ipsBruno - 01.06.2010
I am Brasilian,Not Speak English Correct xD =p