[Ajuda] Por que diabos 13 erros ? :D
#1

Galera, eu baixei um gm, e apуs certas ediзхes para testes de languages q tava la e talz blablabla... aн depois fui compila-lo deu tal erros.. sу q eu sу modifiquei nomes, palavras o.O TEMЗO

pawn Код:
C:\downloads\WFM1\gamemodes\WorldsGM_v2.0.pwn(776) : error 017: undefined symbol "ShowWorldsMenu"
C:\downloads\WFM1\gamemodes\WorldsGM_v2.0.pwn(873) : error 017: undefined symbol "ShowWorldsMenu"
C:\downloads\WFM1\gamemodes\WorldsGM_v2.0.pwn(941) : error 002: only a single statement (or expression) can follow each "case"
C:\downloads\WFM1\gamemodes\WorldsGM_v2.0.pwn(941) : warning 215: expression has no effect
C:\downloads\WFM1\gamemodes\WorldsGM_v2.0.pwn(1006) : error 004: function "TempBlockPlayer" is not implemented
C:\downloads\WFM1\gamemodes\WorldsGM_v2.0.pwn(1007) : warning 219: local variable "rand" shadows a variable at a preceding level
C:\downloads\WFM1\gamemodes\WorldsGM_v2.0.pwn(1034) : warning 219: local variable "rand" shadows a variable at a preceding level
C:\downloads\WFM1\gamemodes\WorldsGM_v2.0.pwn(1041) : warning 217: loose indentation
C:\downloads\WFM1\gamemodes\WorldsGM_v2.0.pwn(1047) : warning 217: loose indentation
C:\downloads\WFM1\gamemodes\WorldsGM_v2.0.pwn(1047) : error 029: invalid expression, assumed zero
C:\downloads\WFM1\gamemodes\WorldsGM_v2.0.pwn(1047) : error 004: function "OnPlayerDeath" is not implemented
C:\downloads\WFM1\gamemodes\WorldsGM_v2.0.pwn(1048) : error 017: undefined symbol "killerid"
C:\downloads\WFM1\gamemodes\WorldsGM_v2.0.pwn(1049) : error 017: undefined symbol "killerid"
C:\downloads\WFM1\gamemodes\WorldsGM_v2.0.pwn(1051) : error 017: undefined symbol "killerid"
C:\downloads\WFM1\gamemodes\WorldsGM_v2.0.pwn(1052) : error 017: undefined symbol "killerid"
C:\downloads\WFM1\gamemodes\WorldsGM_v2.0.pwn(1052) : error 017: undefined symbol "killerid"
C:\downloads\WFM1\gamemodes\WorldsGM_v2.0.pwn(1052) : error 017: undefined symbol "killerid"
C:\downloads\WFM1\gamemodes\WorldsGM_v2.0.pwn(1052) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


13 Errors.
TEMЗO '-' HELP!!!
Reply
#2

Poste as linhas.
Reply
#3

Код:
undefined symbol "ShowWorldsMenu"
Simbolo Undefinido..tente adicionar
pawn Код:
new ShowWorldsMenu;
Код:
undefined symbol "killerid"
Quase certeza que voce esta querendo usar Killerid em uma calback que nao tem esse parametro...
Reply
#4

Quote:
Originally Posted by Transferencia
Посмотреть сообщение
undefined symbol "ShowWorldsMenu" = Simbolo Undefinido..tente adicionar [pawn]new ShowWorldsMenu;
undefined symbol "killerid" = quase certeza que voce esta querendo usar Killerid em uma calback que nao tem esse parametro...
Errado... Pode ser vбrias maneiras:
pawn Код:
new ShowWorldsMenu;
new ShowWorldsMenu[MAX_PLAYERS];
static ShowWorldsMenu[MAX_PLAYERS];
new bool:ShowWorldsMenu[MAX_PLAYERS];
Sу quando postar as linhas й possнvel responder.
Reply
#5

Eu sei disso cara,apenas dei uma ideia do que pode ser..
Reply
#6

huum vo postar tal linhas

pawn Код:
Linha 776:
public OnPlayerRequestClass(playerid, classid){
  if(SceltaMondiFatta[playerid]==0) ShowWorldsMenu(playerid);else
  if(SceltaMondiFatta[playerid]==1){
  if(GetPlayerVirtualWorld(playerid)==0){
    SetPlayerFacingAngle(playerid,0);
    SetPlayerPos(playerid, 846.9625,-1817.1378,32.1953);
    SetPlayerCameraPos(playerid, 849.1249,-1813.5853,34.2561);
    SetPlayerCameraLookAt(playerid, 846.9625,-1817.1378,32.1953);}
   
  if(GetPlayerVirtualWorld(playerid)==1){
    new skin;
    skin = GetPlayerSkin(playerid);
    if(skin==105 || skin==106 || skin==107 || skin==0){ // grove1
      SetPlayerColor(playerid,COLOR_VERDE);
      SetPlayerPos(playerid,2495.2842,-1674.0824,13.3359);
      SetPlayerFacingAngle(playerid, 0.0);
      SetPlayerCameraPos(playerid,2495.1775,-1669.7306,13.3359);
      SetPlayerCameraLookAt(playerid,2495.2842,-1674.0824,13.3359);}
(TODO O CODIGO)

Linha 873:
    ShowWorldsMenu(playerid);
Linha 941:
    SendClientMessageToAll(COLOR_GIALLO, string);print(string);
LINHA 1006 e 1007:
    TempBlockPlayer(playerid);
    new rand = random(sizeof(StuntSpawns));
LINHA 1034:
    new rand = random(sizeof(PlayerSpawns));
LINHA 1041 ate 1052:
  return 1;}
 
/*******************************************************************************
*                              <=[OnPlayerDeath]=>                             *
*******************************************************************************/


public OnPlayerDeath(playerid, killerid, reason){
  SendDeathMessage(killerid, playerid, reason);
  if(GetPlayerVirtualWorld(killerid)==0){
    InfoGiocatore[playerid][Morti]++;
    GetPlayerName(killerid,NomeGiocatore1,sizeof(NomeGiocatore1));
    SetPlayerScore(killerid,GetPlayerScore(killerid)+1); InfoGiocatore[killerid][BuoneUccisioni]++;GivePlayerMoney(killerid,500);
sou novo entao deve ser isso o pedido de voces

e.. transferencia, se der me passe seu msn! estarei grato de adiciona-lo
Reply
#7

1 - As linhas 1041 atй 1052 й sу o "return 1;}" ?

2 - Nгo mande somente fragmentos das linhas de comandos que apresentam erro. Ex: Mande todo o "OnPlayerRequestClass", pois assim podemos analisar por completo para ver se hб algum erro.
Reply
#8

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
   SendDeathMessage(killerid, playerid, reason);
   if(GetPlayerVirtualWorld(killerid)==0)
   {
        InfoGiocatore[playerid][Morti]++;
        GetPlayerName(killerid,NomeGiocatore1,sizeof(NomeGiocatore1));
        SetPlayerScore(killerid,GetPlayerScore(killerid)+1); 
        InfoGiocatore[killerid][BuoneUccisioni]++;
        GivePlayerMoney(killerid,500);
   }
   return 1;
}
Reply
#9

Jonathan_Feitosa, o que vocк quis mostrar ?
Reply
#10

Ele quiz mostrar que o codigo do carinha la ta meio Identado,mais meio errado,se nao tiver o return 1; para fechar a calback e obvio que dara erros...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)