SA-MP Forums Archive
їCуmo puedo solucionar estos errores? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: їCуmo puedo solucionar estos errores? (/showthread.php?tid=244540)



їCуmo puedo solucionar estos errores? - AustinT - 27.03.2011

Hola, buenas tardes.

Estoy iniciбndome en esto del Pawno y para practicar estoy creando un Deathmatch desde 0 que imita un Call of Duty. El caso es que de repente voy a compilar y me da 26 errores. He preguntado y me han dicho que falta o sobra un }/{, pero la verdad es que no soy capaz de colocarlo para que funcione.

Errores:

Код:
C:\Documents and Settings\Usuario\Escritorio\Carpeta\SAMP-Server 0.3c\gamemodes\launch.pwn(153) : error 010: invalid function or declaration
C:\Documents and Settings\Usuario\Escritorio\Carpeta\SAMP-Server 0.3c\gamemodes\launch.pwn(190) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Usuario\Escritorio\Carpeta\SAMP-Server 0.3c\gamemodes\launch.pwn(190) : error 004: function "OnVehicleSpawn" is not implemented
C:\Documents and Settings\Usuario\Escritorio\Carpeta\SAMP-Server 0.3c\gamemodes\launch.pwn(195) : warning 225: unreachable code
C:\Documents and Settings\Usuario\Escritorio\Carpeta\SAMP-Server 0.3c\gamemodes\launch.pwn(195) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Usuario\Escritorio\Carpeta\SAMP-Server 0.3c\gamemodes\launch.pwn(195) : error 004: function "OnVehicleDeath" is not implemented
C:\Documents and Settings\Usuario\Escritorio\Carpeta\SAMP-Server 0.3c\gamemodes\launch.pwn(200) : warning 225: unreachable code
C:\Documents and Settings\Usuario\Escritorio\Carpeta\SAMP-Server 0.3c\gamemodes\launch.pwn(200) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Usuario\Escritorio\Carpeta\SAMP-Server 0.3c\gamemodes\launch.pwn(200) : error 004: function "OnPlayerText" is not implemented
C:\Documents and Settings\Usuario\Escritorio\Carpeta\SAMP-Server 0.3c\gamemodes\launch.pwn(205) : warning 225: unreachable code
C:\Documents and Settings\Usuario\Escritorio\Carpeta\SAMP-Server 0.3c\gamemodes\launch.pwn(205) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Usuario\Escritorio\Carpeta\SAMP-Server 0.3c\gamemodes\launch.pwn(205) : error 004: function "OnPlayerCommandText" is not implemented
C:\Documents and Settings\Usuario\Escritorio\Carpeta\SAMP-Server 0.3c\gamemodes\launch.pwn(207) : error 017: undefined symbol "cmdtext"
C:\Documents and Settings\Usuario\Escritorio\Carpeta\SAMP-Server 0.3c\gamemodes\launch.pwn(222) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Usuario\Escritorio\Carpeta\SAMP-Server 0.3c\gamemodes\launch.pwn(222) : error 004: function "OnPlayerEnterVehicle" is not implemented
C:\Documents and Settings\Usuario\Escritorio\Carpeta\SAMP-Server 0.3c\gamemodes\launch.pwn(227) : warning 225: unreachable code
C:\Documents and Settings\Usuario\Escritorio\Carpeta\SAMP-Server 0.3c\gamemodes\launch.pwn(227) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Usuario\Escritorio\Carpeta\SAMP-Server 0.3c\gamemodes\launch.pwn(227) : error 004: function "OnPlayerExitVehicle" is not implemented
C:\Documents and Settings\Usuario\Escritorio\Carpeta\SAMP-Server 0.3c\gamemodes\launch.pwn(232) : warning 225: unreachable code
C:\Documents and Settings\Usuario\Escritorio\Carpeta\SAMP-Server 0.3c\gamemodes\launch.pwn(232) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Usuario\Escritorio\Carpeta\SAMP-Server 0.3c\gamemodes\launch.pwn(232) : error 004: function "OnPlayerStateChange" is not implemented
C:\Documents and Settings\Usuario\Escritorio\Carpeta\SAMP-Server 0.3c\gamemodes\launch.pwn(237) : warning 225: unreachable code
C:\Documents and Settings\Usuario\Escritorio\Carpeta\SAMP-Server 0.3c\gamemodes\launch.pwn(237) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Usuario\Escritorio\Carpeta\SAMP-Server 0.3c\gamemodes\launch.pwn(237) : error 004: function "OnPlayerEnterCheckpoint" is not implemented
C:\Documents and Settings\Usuario\Escritorio\Carpeta\SAMP-Server 0.3c\gamemodes\launch.pwn(242) : warning 225: unreachable code
C:\Documents and Settings\Usuario\Escritorio\Carpeta\SAMP-Server 0.3c\gamemodes\launch.pwn(242) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Usuario\Escritorio\Carpeta\SAMP-Server 0.3c\gamemodes\launch.pwn(242) : error 004: function "OnPlayerLeaveCheckpoint" is not implemented
C:\Documents and Settings\Usuario\Escritorio\Carpeta\SAMP-Server 0.3c\gamemodes\launch.pwn(247) : warning 225: unreachable code
C:\Documents and Settings\Usuario\Escritorio\Carpeta\SAMP-Server 0.3c\gamemodes\launch.pwn(247) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Usuario\Escritorio\Carpeta\SAMP-Server 0.3c\gamemodes\launch.pwn(247) : error 004: function "OnPlayerEnterRaceCheckpoint" is not implemented
C:\Documents and Settings\Usuario\Escritorio\Carpeta\SAMP-Server 0.3c\gamemodes\launch.pwn(252) : warning 225: unreachable code
C:\Documents and Settings\Usuario\Escritorio\Carpeta\SAMP-Server 0.3c\gamemodes\launch.pwn(252) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Usuario\Escritorio\Carpeta\SAMP-Server 0.3c\gamemodes\launch.pwn(252) : error 004: function "OnPlayerLeaveRaceCheckpoint" is not implemented
C:\Documents and Settings\Usuario\Escritorio\Carpeta\SAMP-Server 0.3c\gamemodes\launch.pwn(257) : warning 225: unreachable code
C:\Documents and Settings\Usuario\Escritorio\Carpeta\SAMP-Server 0.3c\gamemodes\launch.pwn(257) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Usuario\Escritorio\Carpeta\SAMP-Server 0.3c\gamemodes\launch.pwn(257) : error 004: function "OnRconCommand" is not implemented

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
Gamemode: http://pastebin.com/8MZ7J4kf

Se lo agradezco eternamente a aquel que pudiese ayudarme. Un saludo.


Respuesta: їCуmo puedo solucionar estos errores? - Lunnatiicz - 27.03.2011

Sуlo son 300 lineas y no ando de ganas para subir a pastebin, acб te lo dejo ya solucionado.

EDIT: Ya que

http://pastebin.com/1ASmm0c1

Edit Again: xd los errores eran por falta de "{}"

Toma en cuenta que si empiezas con 2, 3 llaves, ej.

pawn Код:
public OnPlayerSpawn()
{//1
 if(Sistemadeejemplo = ejemplo);
 {//2
  Funciуndeejemplo(playerid, x, y ,z);
  if(funciуndentrodeunafunciуn);
  { //3
   Funciуnacolocar(parбmetros);
   }//1
  }//2
 }//3
return 1;
}//cierra debajo del return
Siempre cierras con la misma cantida que empezaste


Re: їCуmo puedo solucionar estos errores? - murdoxix - 27.03.2011

Fijate que hay varios "public's" que no tienen nada, prueba borrandolos (capaz saque algunos errores )


Respuesta: Re: їCуmo puedo solucionar estos errores? - Lunnatiicz - 27.03.2011

Quote:
Originally Posted by murdoxix
Посмотреть сообщение
Fijate que hay varios "public's" que no tienen nada, prueba borrandolos (capaz saque algunos errores )
En definitiva, no tiene mucho que ver.