Ayuda Error
#1

Me tira 10 errores AYUDA PORFFFFFFFFFFF

Код:
 new Reja;

CreateObject(980, 1534.777710, -1451.665527, 15.162197, 0.0000, 0.0000, 0.0000);

  public OnPlayerCommandText(playerid, cmdtext[])
{
  if (strcmp("/abrir", cmdtext, true) == 0) //para abrir la puerta
  {

    if(IsPlayerInRangeOfPoint(playerid, 15.0, 1534.777710, -1451.665527, 15.162197,)){  //si el jugador no esta en un radio de 15.0 a la puerta no lo dejara usar el comando. (Reemplazar las coordenadas por las coordenadas de nuestra puerta (CERRADA))
      MoveObject(Puerta, 1536.1117,-1451.5150,35.4865, 3.0);  //mueve nuestra puerta hasta las coordenadas de la puerta abierta. (Reemplazar las coordenadas por las coordenadas de nuestra puerta (ABIERTA))
      SendClientMessage(playerid, 0x28F943FF, "Server: Has abierto la puerta");
    }else return SendClientMessage(playerid, 0xFF0000FF, "ERROR: Debes estar cerca de la puerta para usar este comando");
  }

  if (strcmp("/cerrar", cmdtext, true) == 0) //cerrar
  {

    if(IsPlayerInRangeOfPoint(playerid, 1534.777710, -1451.665527, 15.162197)){  //si el jugador no esta en un radio de 15.0 a la puerta no lo dejara usar el comando. (Reemplazar las coordenadas por las coordenadas de nuestra puerta (CERRADA))
      MoveObject(980, 1534.777710, -1451.665527, 15.162197, 3.0);  //mueve nuestra puerta hasta las coordenadas de la puerta abierta. (Reemplazar las coordenadas por las coordenadas de nuestra puerta (CERRADA))
      SendClientMessage(playerid, 0x28F943FF, "Server: Has cerrado la puerta");
    }else return SendClientMessage(playerid, 0xFF0000FF, "ERROR: Debes estar cerca de la puerta para usar este comando");
  }
  return 0;
}
Код:
C:\Documents and Settings\Administrador\Escritorio\carpetas\Samp\gamemodes\Sv.pwn(30) : warning 217: loose indentation
C:\Documents and Settings\Administrador\Escritorio\carpetas\Samp\gamemodes\Sv.pwn(32) : warning 217: loose indentation
C:\Documents and Settings\Administrador\Escritorio\carpetas\Samp\gamemodes\Sv.pwn(34) : warning 217: loose indentation
C:\Documents and Settings\Administrador\Escritorio\carpetas\Samp\gamemodes\Sv.pwn(34) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrador\Escritorio\carpetas\Samp\gamemodes\Sv.pwn(34) : error 017: undefined symbol "playerid"
C:\Documents and Settings\Administrador\Escritorio\carpetas\Samp\gamemodes\Sv.pwn(35) : warning 217: loose indentation
C:\Documents and Settings\Administrador\Escritorio\carpetas\Samp\gamemodes\Sv.pwn(36) : error 017: undefined symbol "cmdtext"
C:\Documents and Settings\Administrador\Escritorio\carpetas\Samp\gamemodes\Sv.pwn(39) : error 017: undefined symbol "playerid"
C:\Documents and Settings\Administrador\Escritorio\carpetas\Samp\gamemodes\Sv.pwn(40) : error 017: undefined symbol "Puerta"
C:\Documents and Settings\Administrador\Escritorio\carpetas\Samp\gamemodes\Sv.pwn(41) : error 017: undefined symbol "playerid"
C:\Documents and Settings\Administrador\Escritorio\carpetas\Samp\gamemodes\Sv.pwn(42) : error 017: undefined symbol "playerid"
C:\Documents and Settings\Administrador\Escritorio\carpetas\Samp\gamemodes\Sv.pwn(45) : error 017: undefined symbol "cmdtext"
C:\Documents and Settings\Administrador\Escritorio\carpetas\Samp\gamemodes\Sv.pwn(48) : error 017: undefined symbol "playerid"
C:\Documents and Settings\Administrador\Escritorio\carpetas\Samp\gamemodes\Sv.pwn(50) : error 017: undefined symbol "playerid"
C:\Documents and Settings\Administrador\Escritorio\carpetas\Samp\gamemodes\Sv.pwn(51) : error 017: undefined symbol "playerid"
C:\Documents and Settings\Administrador\Escritorio\carpetas\Samp\gamemodes\Sv.pwn(56) : warning 225: unreachable code
C:\Documents and Settings\Administrador\Escritorio\carpetas\Samp\gamemodes\Sv.pwn(56) : warning 217: loose indentation
C:\Documents and Settings\Administrador\Escritorio\carpetas\Samp\gamemodes\Sv.pwn(30) : warning 203: symbol is never used: "Reja"
C:\Documents and Settings\Administrador\Escritorio\carpetas\Samp\gamemodes\Sv.pwn(137) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
C:\Documents and Settings\Administrador\Escritorio\carpetas\Samp\gamemodes\Sv.pwn(146) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Escritorio\carpetas\Samp\gamemodes\Sv.pwn(151) : warning 209: function "OnPlayerCommandText" should return a value
C:\Documents and Settings\Administrador\Escritorio\carpetas\Samp\gamemodes\Sv.pwn(151) : warning 235: public function lacks forward declaration (symbol "OnPlayerInfoChange")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


11 Errors.
Reply
#2

1є que ta todo mal alineado, x eso te aparecen varios "warning 217: loose indentation"
2є donde pusiste el new?
3є el createobject tiene que estar adentro de un callback, creo q en tu caso va en OnGameModeInit(), no puede ir colgado, no se si me explico

suerte
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)