Erro AJuda aqui
#1

C:\Documents and Settings\Carlos\Desktop\gmserver\netadopt1.pwn(634 ) : warning 225: unreachable code
C:\Documents and Settings\Carlos\Desktop\gmserver\netadopt1.pwn(639 ) : error 030: compound statement not closed at the end of file (started at line 631)OBS: NA LINHA 639 NAO TEM NADA, PELO Q VI FALA Q EU NAO FECHEI MAS O FINAL TA DE ACORDO AI EM BAIXO;
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.


if(strcmp(cmdtext, "/abrir1",true) ==0)
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, VerdeClaro, "Vocк nгo й administrador maluco,Se Liga!!!");
MoveObject(portao, -1971.912,287.579,34.138, 2.0);
return 1;
}

if(strcmp(cmdtext, "/fechar2",true) ==0)
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, VerdeClaro, "Vocк nгo й administrador maluco,Se Liga!!!");
MoveObject(portao, -1971.865,287.326,47.668, 2.0);
return 1;
{
return 0;
}

Public OngameModInit...

portao2 = CreateObject(971,-1971.912,287.579,34.138,-90.241,0.0,0.0);

no topo:...

new portao 2;

Oque tem de errado?
Obrigado
Reply
#2

Quote:
Originally Posted by netado
C:\Documents and Settings\Carlos\Desktop\gmserver\netadopt1.pwn(634 ) : warning 225: unreachable code
C:\Documents and Settings\Carlos\Desktop\gmserver\netadopt1.pwn(639 ) : error 030: compound statement not closed at the end of file (started at line 631)OBS: NA LINHA 639 NAO TEM NADA, PELO Q VI FALA Q EU NAO FECHEI MAS O FINAL TA DE ACORDO AI EM BAIXO;
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

Code:
	if(strcmp(cmdtext, "/abrir1",true) ==0)
	{
 		if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, VerdeClaro, "Vocк nгo й administrador maluco,Se Liga!!!");
 		MoveObject(portao, -1971.912,287.579,34.138, 2.0);
	  return 1;
}

  if(strcmp(cmdtext, "/fechar2",true) ==0)
  {
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, VerdeClaro, "Vocк nгo й administrador maluco,Se Liga!!!");
    MoveObject(portao, -1971.865,287.326,47.668, 2.0);
    return 1;
  {
  return 0;
}
}

Public OngameModInit...

  portao2 = CreateObject(971,-1971.912,287.579,34.138,-90.241,0.0,0.0);

no topo:...

new portao2;
Oque tem de errado?
Obrigado
Pelo que eu vi, erro no fechamento da chave e no uso da array "new portao 2" o certo й new portao2;
Reply
#3

eu arrumei e da este warning

C:\Documents and Settings\Carlos\Desktop\gmserver\netadopt1.pwn(74) : warning 204: symbol is assigned a value that is never used: "escada"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.


fala q a ESCADA nunca foi usada,pq?
Reply
#4

Quote:
Originally Posted by netado
eu arrumei e da este warning

C:\Documents and Settings\Carlos\Desktop\gmserver\netadopt1.pwn(74) : warning 204: symbol is assigned a value that is never used: "escada"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.


fala q a ESCADA nunca foi usada,pq?
Porque nunca foi usada, simples. No new da escada coloca um stock.
Ex.: new stock escada;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)