HELP ERRORS +REP
#1

Код:
stock LeavingSNAKE(playerid)
{
    Captured[playerid][SNAKE] = 0;
    UnderAttack[SNAKE] = 0;
    KillTimer(timer[playerid][SNAKE]);
    CountVar[playerid][SNAKE] = 25;
    GangZoneStopFlashForAll(Zone[SNAKE]);
    TextDrawHideForPlayer(playerid, CountText[playerid]);
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
       IsPlayerCapturing[i][SNAKE] = 0;
    }
    SendClientMessage(playerid, COLOR_RED,"*You have failed to capture the Desert Airport!");
    return 1;
}
stock LeavingWF(playerid)
{
    Captured[playerid][WF] = 0;
    UnderAttack[WF] = 0;
    KillTimer(timer[playerid][WF]);
    CountVar[playerid][WF] = 25;
    GangZoneStopFlashForAll(Zone[WF]);
    TextDrawHideForPlayer(playerid, CountText[playerid]);
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
       IsPlayerCapturing[i][WF] = 0;
    }
    SendClientMessage(playerid, COLOR_RED,"*You have failed to capture the Desert Airport!");
    return 1;
}
Quote:

pawno\include\YSI\y_hooks/impl.inc(2336) : error 025: function heading differs from prototype
pawno\include\YSI\y_hooks/impl.inc(2383) : error 025: function heading differs from prototype
pwn(10704) : warning 209: function "cmd_dskin" should return a value
pwn(12474) : warning 217: loose indentation
pwn(12486) : error 017: undefined symbol "LeavingSNAKE"
pwn(12490) : error 017: undefined symbol "LeavingWF"
pwn(12507) : warning 217: loose indentation
pwn(12507) : error 014: invalid statement; not in switch
pwn(12507) : warning 215: expression has no effect
pwn(12507) : error 001: expected token: ";", but found ":"
pwn(12507) : error 029: invalid expression, assumed zero
pwn(12507) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


8 Errors.

Код:
stock CaptureZoneMessage(playerid, messageid)
{
    switch(messageid)
    {
       case 1:
       {
           SendClientMessage(playerid, COLOR_RED,"You cannot capture while in a vehicle!");
       }
       case 2:
       {
           SendClientMessage(playerid, COLOR_RED,"This zone is already being taken over!");
       }
       }
 --------------------->12507      case 3:
       {
           SendClientMessage(playerid, COLOR_RED,"This zone is already being taken over!");
       }
    }
    return 1;
}
Reply


Messages In This Thread
HELP ERRORS +REP - by Mijata - 27.01.2015, 14:37
Re: HELP ERRORS +REP - by Knappen - 27.01.2015, 16:20
Re: HELP ERRORS +REP - by Mijata - 27.01.2015, 17:25
Re: HELP ERRORS +REP - by Mijata - 27.01.2015, 18:02
Re: HELP ERRORS +REP - by View - 27.01.2015, 18:09
Re: HELP ERRORS +REP - by Mijata - 27.01.2015, 18:12
Re: HELP ERRORS +REP - by View - 27.01.2015, 18:16
Re: HELP ERRORS +REP - by CalvinC - 27.01.2015, 18:16
Re: HELP ERRORS +REP - by Mijata - 27.01.2015, 18:18
Re: HELP ERRORS +REP - by CalvinC - 27.01.2015, 18:18

Forum Jump:


Users browsing this thread: 1 Guest(s)