02.06.2012, 16:13
Log do Erro:
Vбriavel (Eu coloquei)
No OnGameModeInit
Tambйm no OnPlayerSelectedMenuRow
Agora eu queria saber por que estб dando esse erro?
Ajuda ai plz. *-*
pawn Код:
C:\Users\user\Documents\Tiago\Game Modes\--- Codando GM ---\gamemodes\Codando.pwn(57) : error 017: undefined symbol "MedicoMenu"
C:\Users\user\Documents\Tiago\Game Modes\--- Codando GM ---\gamemodes\Codando.pwn(59) : error 017: undefined symbol "MedicoMenu"
C:\Users\user\Documents\Tiago\Game Modes\--- Codando GM ---\gamemodes\Codando.pwn(60) : error 017: undefined symbol "MedicoMenu"
C:\Users\user\Documents\Tiago\Game Modes\--- Codando GM ---\gamemodes\Codando.pwn(211) : error 017: undefined symbol "MedicoMenu"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
pawn Код:
new Menu:MedicoMenu;
pawn Код:
MedicoMenu = CreateMenu("Deseja se Tornar um Mйdico?", 1, 50.0, 180.0, 200.0, 200.0);
AddMenuItem(MedicoMenu, 0, "Sim");
AddMenuItem(MedicoMenu, 0, "Nгo");
pawn Код:
public OnPlayerSelectedMenuRow(playerid, row)
{
new Menu:current;
current = GetPlayerMenu(playerid);
if(current == MedicoMenu)
{
switch(row)
{
case 0:{
//Row 1 code
}
case 1:{
//Row 2 code
}
}
}
return 1;
}
//You will have to sort the indentation out yourself
Ajuda ai plz. *-*