C:\Users\Narwhals\Desktop\Server\sup.pwn(96436) : warning 235: public function lacks forward declaration (symbol "TurfTimer") C:\Users\Narwhals\Desktop\Server\sup.pwn(96438) : error 017: undefined symbol "TurfAttacker" C:\Users\Narwhals\Desktop\Server\sup.pwn(96438) : warning 215: expression has no effect C:\Users\Narwhals\Desktop\Server\sup.pwn(96438) : error 001: expected token: ";", but found "]" C:\Users\Narwhals\Desktop\Server\sup.pwn(96438) : error 029: invalid expression, assumed zero C:\Users\Narwhals\Desktop\Server\sup.pwn(96438) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
public TurfTimer(turfid) { if(TurfAttacker[turfid] != -1) { if( GetPlayersInTurf(turfid, TurfAttacker[turfid]) >= 1 ) { TurfAttackTime[turfid]++; if(TurfAttackTime[turfid] == TW_WAITDELAY) { GangZoneStopFlashForAll(Turfs[turfid]); TurfInfo[turfid][tOwner] = TurfAttacker[turfid]+1; GangZoneShowForAll(Turfs[turfid], GetFamilyColor(TurfAttacker[turfid]+1) ); KillTimer(TurfTime[turfid]); SaveTurfs(); new shit[256]; format(shit,sizeof(shit)," %s has successfully captured turf %s.", FamilyInfo[TurfAttacker[turfid]][FamilyName], TurfInfo[turfid][tName]); SendClientMessageToAll(COLOR_YELLOW,shit); TurfAttacker[turfid] = -1; new texttd[256]; format(texttd,255, "~r~%s's ~w~territory", FamilyInfo[TurfInfo[turfid][tOwner]-1][FamilyName]); switch (turfid) {
forward TurfTimer();
new TurfAttacker[MAX_PLAYERS];
you need to place a forward for it, so do :
(you can just place the forward just right above the public) pawn Code:
pawn Code:
|