Kill streak system
#5

pawn Код:
Streak[playerid] = 0;
    Streak[killerid]++;
    switch(Streak[playerid])
    {
        case 5: GameTextForPlayer(playerid,"~r~You are on a ~g~5~rKillstreak!",5000,5);
        case 10:
        {
            GameTextForPlayer(playerid,"~r~You are on a ~g~10~rKillstreak!",5000,5);
            SetPlayerHealth(killerid, 99999);
            SetTimerEx("stopinv",60000,0,"d",killerid);
        }
        GameTextForPlayer(playerid,"~g~You are on a 10 killstreak!",5000,5);
        case 15: GameTextForPlayer(playerid,"~r~You are on a ~g~15~rKillstreak!",5000,5);
        case 20: GameTextForPlayer(playerid,"~r~You are on a ~g~20~rKillstreak!",5000,5);
        case 25: GameTextForPlayer(playerid,"~r~You are on a ~g~25~rKillstreak!",5000,5);

    }
    return 1;
}
Im getting errors

pawn Код:
C:\Documents and Settings\Chris\Desktop\Desktop\Mastalol\Grand Theft Auto San Andreas Samp Server\pawno\include\dini.inc(239) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Chris\Desktop\Desktop\SAMP Server\gamemodes\WorldWar.pwn(432) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Chris\Desktop\Desktop\SAMP Server\gamemodes\WorldWar.pwn(455) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Chris\Desktop\Desktop\SAMP Server\gamemodes\WorldWar.pwn(560) : warning 217: loose indentation
C:\Documents and Settings\Chris\Desktop\Desktop\SAMP Server\gamemodes\WorldWar.pwn(570) : error 002: only a single statement (or expression) can follow each "case"
C:\Documents and Settings\Chris\Desktop\Desktop\SAMP Server\gamemodes\WorldWar.pwn(570) : warning 215: expression has no effect
C:\Documents and Settings\Chris\Desktop\Desktop\SAMP Server\gamemodes\WorldWar.pwn(571) : error 014: invalid statement; not in switch
C:\Documents and Settings\Chris\Desktop\Desktop\SAMP Server\gamemodes\WorldWar.pwn(571) : warning 215: expression has no effect
C:\Documents and Settings\Chris\Desktop\Desktop\SAMP Server\gamemodes\WorldWar.pwn(571) : error 001: expected token: ";", but found ":"
C:\Documents and Settings\Chris\Desktop\Desktop\SAMP Server\gamemodes\WorldWar.pwn(571) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Chris\Desktop\Desktop\SAMP Server\gamemodes\WorldWar.pwn(571) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.
Reply


Messages In This Thread
Kill streak system - by Shockey HD - 29.07.2011, 19:45
Re: Kill streak system - by Snipa - 29.07.2011, 19:52
Re: Kill streak system - by Shockey HD - 29.07.2011, 20:01
Re: Kill streak system - by Snipa - 29.07.2011, 20:04
Re: Kill streak system - by Shockey HD - 29.07.2011, 20:19
Re: Kill streak system - by Snipa - 29.07.2011, 20:22
Re: Kill streak system - by Shockey HD - 29.07.2011, 20:27
Re: Kill streak system - by MadeMan - 29.07.2011, 20:35
Re: Kill streak system - by Shockey HD - 29.07.2011, 20:45
Re: Kill streak system - by MadeMan - 29.07.2011, 20:52

Forum Jump:


Users browsing this thread: 1 Guest(s)