[Help] Whats is wrong with the code please?
#1

Ok so trying to make a gate and i swear I've done everything right ? but clearly not?

These are on top of script
pawn Код:
new PDGate;

forward PDGateClose();
This is on "public OnGameModeInit()"
pawn Код:
PDGate = CreateObject(969,629.40325928,-583.38275146,15.62240791,0.00000000,0.00000000,270.00000000);
This is on Commands Obviously
pawn Код:
if (strcmp(cmdtext, "/PDGate", true)==0)
      {
      MoveObject(PDGate,629.40234375, -583.3818359375, 15.622407913208, 3.5);
      SetTimer("PDGateClose", 5000, 0);
      SendClientMessage(playerid, 0xFFFF00AA, "The Policegate Will Shut In 5 Seconds");
      return 1;
      }



    return 0;
}
This is at the bottom of script
pawn Код:
public PDGateClose()
{
      MoveObject (PDGate,629.40325927734, -583.38275146484, 15.622407913208, 2.5);
     
      return 1;
}

These Are the error's

pawn Код:
C:\Users\Tyler Burgess\Documents\SA Servers\Own coded\gamemodes\PoleRlay.pwn(85) : error 017: undefined symbol "PDGate"
C:\Users\Tyler Burgess\Documents\SA Servers\Own coded\gamemodes\PoleRlay.pwn(178) : error 017: undefined symbol "PDGate"
C:\Users\Tyler Burgess\Documents\SA Servers\Own coded\gamemodes\PoleRlay.pwn(324) : warning 235: public function lacks forward declaration (symbol "PDGateClose")
C:\Users\Tyler Burgess\Documents\SA Servers\Own coded\gamemodes\PoleRlay.pwn(326) : error 017: undefined symbol "PDGate"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.
Help would be much respected !!!







.
Reply


Messages In This Thread
[Help] Whats is wrong with the code please? - by BurgessGaming - 13.03.2011, 15:55
Re: [Help] Whats is wrong with the code please? - by blackwave - 13.03.2011, 15:59
Re: [Help] Whats is wrong with the code please? - by BurgessGaming - 13.03.2011, 16:04
Re: [Help] Whats is wrong with the code please? - by BurgessGaming - 13.03.2011, 16:06

Forum Jump:


Users browsing this thread: 1 Guest(s)