SA-MP Forums Archive
Capture Zones Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Capture Zones Help (/showthread.php?tid=500443)



Capture Zones Help - ChandraLouis - 13.03.2014

The Code from Stock
pawn Код:
stock LeavingGHOSTTOWN(playerid)
{
    Captured[playerid][GHOSTTOWN] = 0;
    UnderAttack[GHOSTTOWN] = 0;
    KillTimer(timer[playerid][GHOSTTOWN]);
    CountVar[playerid][GHOSTTOWN] = 25;
    GangZoneStopFlashForAll(Zone[GHOSTTOWN]);
    TextDrawHideForPlayer(playerid, CountText[playerid]);
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
       IsPlayerCapturing[i][GHOSTTOWN] = 0;
    }
    SendClientMessage(playerid, COLOR_RED,"{FF0000}[Ghost-Town]: {FFFFFF}You have failed to capture the Ghost Town!");
    return 1;
}
The code from LeavingGHOSTTOWN
pawn Код:
LeavingGHOSTTOWN(playerid);
    }
    if(Captured[playerid][DAM] == 0 && IsPlayerCapturing[playerid][DAM] == 1)
    {
Error
Код:
error 017: undefined symbol "LeavingGHOSTTOWN"