03.06.2013, 07:31
Hi dudes, i'm still learning script, but i can't get this to work
Nor did Wiki help me with it, i have to set up turf things for my RP server.
Error:
The script:
Hope you guys can fix this, and teach me how to.
Note: This isn't the whole script, this is only the part of the script the error occurs..
Nor did Wiki help me with it, i have to set up turf things for my RP server.
Error:
Code:
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.
Code:
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) {
Note: This isn't the whole script, this is only the part of the script the error occurs..