como colocar 2 menus no mesmo sever -
noobzord - 01.03.2010
C:\Documents and Settings\Pedro Rocha\Desktop\Mateus\samp03asvr_R4_win32\gamemodes \lvdmBR.pwn(1513) : warning 219: local variable "current" shadows a variable at a preceding level
C:\Documents and Settings\Pedro Rocha\Desktop\Mateus\samp03asvr_R4_win32\gamemodes \lvdmBR.pwn(157
: error 055: start of function body without function header
C:\Documents and Settings\Pedro Rocha\Desktop\Mateus\samp03asvr_R4_win32\gamemodes \lvdmBR.pwn(1580) : error 010: invalid function or declaration
C:\Documents and Settings\Pedro Rocha\Desktop\Mateus\samp03asvr_R4_win32\gamemodes \lvdmBR.pwn(1581) : error 010: invalid function or declaration
C:\Documents and Settings\Pedro Rocha\Desktop\Mateus\samp03asvr_R4_win32\gamemodes \lvdmBR.pwn(1583) : error 010: invalid function or declaration
C:\Documents and Settings\Pedro Rocha\Desktop\Mateus\samp03asvr_R4_win32\gamemodes \lvdmBR.pwn(1585) : error 010: invalid function or declaration
C:\Documents and Settings\Pedro Rocha\Desktop\Mateus\samp03asvr_R4_win32\gamemodes \lvdmBR.pwn(1589) : error 010: invalid function or declaration
C:\Documents and Settings\Pedro Rocha\Desktop\Mateus\samp03asvr_R4_win32\gamemodes \lvdmBR.pwn(1592) : error 021: symbol already defined: "ShowMenuForPlayer"
C:\Documents and Settings\Pedro Rocha\Desktop\Mateus\samp03asvr_R4_win32\gamemodes \lvdmBR.pwn(1597) : error 010: invalid function or declaration
C:\Documents and Settings\Pedro Rocha\Desktop\Mateus\samp03asvr_R4_win32\gamemodes \lvdmBR.pwn(1602) : error 055: start of function body without function header
C:\Documents and Settings\Pedro Rocha\Desktop\Mateus\samp03asvr_R4_win32\gamemodes \lvdmBR.pwn(1603) : error 021: symbol already defined: "current"
C:\Documents and Settings\Pedro Rocha\Desktop\Mateus\samp03asvr_R4_win32\gamemodes \lvdmBR.pwn(1605) : error 010: invalid function or declaration
C:\Documents and Settings\Pedro Rocha\Desktop\Mateus\samp03asvr_R4_win32\gamemodes \lvdmBR.pwn(1607) : error 010: invalid function or declaration
C:\Documents and Settings\Pedro Rocha\Desktop\Mateus\samp03asvr_R4_win32\gamemodes \lvdmBR.pwn(1609) : error 010: invalid function or declaration
C:\Documents and Settings\Pedro Rocha\Desktop\Mateus\samp03asvr_R4_win32\gamemodes \lvdmBR.pwn(1616) : error 010: invalid function or declaration
C:\Documents and Settings\Pedro Rocha\Desktop\Mateus\samp03asvr_R4_win32\gamemodes \lvdmBR.pwn(1622) : error 010: invalid function or declaration
C:\Documents and Settings\Pedro Rocha\Desktop\Mateus\samp03asvr_R4_win32\gamemodes \lvdmBR.pwn(1630) : error 010: invalid function or declaration
C:\Documents and Settings\Pedro Rocha\Desktop\Mateus\samp03asvr_R4_win32\gamemodes \lvdmBR.pwn(1635) : error 021: symbol already defined: "OnPlayerSelectedMenuRow"
C:\Documents and Settings\Pedro Rocha\Desktop\Mateus\samp03asvr_R4_win32\gamemodes \lvdmBR.pwn(1636) : warning 219: local variable "current" shadows a variable at a preceding level
C:\Documents and Settings\Pedro Rocha\Desktop\Mateus\samp03asvr_R4_win32\gamemodes \lvdmBR.pwn(1644) : error 001: expected token: ";", but found "-identifier-"
C:\Documents and Settings\Pedro Rocha\Desktop\Mateus\samp03asvr_R4_win32\gamemodes \lvdmBR.pwn(1645) : error 001: expected token: ";", but found "-identifier-"
C:\Documents and Settings\Pedro Rocha\Desktop\Mateus\samp03asvr_R4_win32\gamemodes \lvdmBR.pwn(1646) : error 001: expected token: ";", but found "-identifier-"
C:\Documents and Settings\Pedro Rocha\Desktop\Mateus\samp03asvr_R4_win32\gamemodes \lvdmBR.pwn(164
: error 001: expected token: ";", but found "}"
C:\Documents and Settings\Pedro Rocha\Desktop\Mateus\samp03asvr_R4_win32\gamemodes \lvdmBR.pwn(1651) : error 001: expected token: ";", but found "-identifier-"
C:\Documents and Settings\Pedro Rocha\Desktop\Mateus\samp03asvr_R4_win32\gamemodes \lvdmBR.pwn(1652) : error 001: expected token: ";", but found "-identifier-"
C:\Documents and Settings\Pedro Rocha\Desktop\Mateus\samp03asvr_R4_win32\gamemodes \lvdmBR.pwn(1654) : error 001: expected token: ";", but found "}"
C:\Documents and Settings\Pedro Rocha\Desktop\Mateus\samp03asvr_R4_win32\gamemodes \lvdmBR.pwn(1657) : error 001: expected token: ";", but found "-identifier-"
C:\Documents and Settings\Pedro Rocha\Desktop\Mateus\samp03asvr_R4_win32\gamemodes \lvdmBR.pwn(165
: error 001: expected token: ";", but found "-identifier-"
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
26 Errors.
bom eu tentei colocar mas deu esses seguintes erros :/
obrigado!
Re: como colocar 2 menus no mesmo sever -
Joao Ziicka - 01.03.2010
manda as linhas do erro nй ? ;O
Re: como colocar 2 menus no mesmo sever -
Comando_DS - 02.03.2010
pawn Код:
if(CurrentMenu == menu1nome)
{
switch(row)
{
case 0:{
//as opsoes q vc quiser
}
case 1:{
//as opsoes q vc quiser
}
case 2:{
HideMenuForPlayer(menu1nome,playerid);
ShowMenuForPlayer(Stunt,playerid);
TogglePlayerControllable(playerid, 0);}
}
}
return 1;
}
pawn Код:
if(CurrentMenu == menu2nome)
{
switch(row)
{
case 0:{
//as opsoes q vc quiser
}
case 1:{
//as opsoes q vc quiser
}
case 2:{
HideMenuForPlayer(menu2nome,playerid);
TogglePlayerControllable(playerid, 0);}
}
}
return 1;
}
Nao se esqueca do comando pra abrir o menu e dos itens na lista do menu
pawn Код:
menu1nome = CreateMenu("Nome do Menu",2, 34.0, 170.0, 200.0);
if(IsValidMenu(menu1nome))
{
AddMenuItem(menu1nome,0,"Item 1");
AddMenuItem(menu1nome,0,"Item 2");
AddMenuItem(menu1nome,0,"Voltar");
}
Troque apenas o menu1nome pelo nome do menu q vc quer por.