I have never seen more errors than this. I get errors from includes when this code is in and I have NO clue as to why these are happening to me. I appear to be using these right so someone please enlighten me.
You should be able to see why I am using switches instead of a bunch of else ifs. When I was using else ifs It wasnt reliable and I was hoping this would be a better solution.
PHP Code:
if (GetPlayerCount() == 1)
{
switch (iAnnual)
{
case 1:
{
CPrintToChatAll("{DARKRED}[AG] {GREEN}Hunger Games {NORMAL}: \"{PINK}%N{NORMAL}\" is the victor of the {PINK}%dst {NORMAL}Annual Hunger Games!", client, iAnnual);
}
case 2:
{
CPrintToChatAll("{DARKRED}[AG] {GREEN}Hunger Games {NORMAL}: \"{PINK}%N{NORMAL}\" is the victor of the {PINK}%dnd {NORMAL}Annual Hunger Games!", client, iAnnual);
}
case 3:
{
CPrintToChatAll("{DARKRED}[AG] {GREEN}Hunger Games {NORMAL}: \"{PINK}%N{NORMAL}\" is the victor of the {PINK}%drd {NORMAL}Annual Hunger Games!", client, iAnnual);
}
case 4 .. 20:
{
CPrintToChatAll("{DARKRED}[AG] {GREEN}Hunger Games {NORMAL}: \"{PINK}%N{NORMAL}\" is the victor of the {PINK}%dth {NORMAL}Annual Hunger Games!", client, iAnnual);
}
default:
{
CPrintToChatAll("{DARKRED}[AG]{GREEN} Hunger Games{NORMAL}: The tribute \"%N\" has died. {PINK}%d {NORMAL} tributes remain.", victim, iRemaining);
}
}
}
Code:
C:\Users\Studio\Desktop\Scripting\include\menus.inc(372) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Studio\Desktop\Scripting\include\emitsoundany.inc(153) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Studio\Desktop\Scripting\include\csgocolors.inc(118) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Studio\Desktop\Scripting\include\csgocolors.inc(325) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Studio\Desktop\Scripting\include\csgocolors.inc(390) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Studio\Desktop\Scripting\include\csgocolors.inc(481) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Studio\Desktop\Scripting\awdawd.sp(106) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Studio\Desktop\Scripting\awdawd.sp(148) : error 001: expected token: ":", but found ".."
C:\Users\Studio\Desktop\Scripting\awdawd.sp(148) : warning 215: expression has no effect
C:\Users\Studio\Desktop\Scripting\awdawd.sp(148) : error 001: expected token: ";", but found ":"
C:\Users\Studio\Desktop\Scripting\awdawd.sp(152) : error 014: invalid statement; not in switch
C:\Users\Studio\Desktop\Scripting\awdawd.sp(152) : error 029: invalid expression, assumed zero
C:\Users\Studio\Desktop\Scripting\awdawd.sp(154) : error 017: undefined symbol "iRemaining"
C:\Users\Studio\Desktop\Scripting\awdawd.sp(160) : error 122: expected type expression
C:\Users\Studio\Desktop\Scripting\awdawd.sp(160) : error 021: symbol already defined: "EmitSoundToAllAny"
C:\Users\Studio\Desktop\Scripting\awdawd.sp(162) : error 010: invalid function or declaration
C:\Users\Studio\Desktop\Scripting\awdawd.sp(164) : error 010: invalid function or declaration
C:\Users\Studio\Desktop\Scripting\awdawd.sp(170) : error 122: expected type expression
C:\Users\Studio\Desktop\Scripting\awdawd.sp(170) : error 021: symbol already defined: "CPrintToChat"
C:\Users\Studio\Desktop\Scripting\awdawd.sp(171) : error 010: invalid function or declaration
C:\Users\Studio\Desktop\Scripting\awdawd.sp(173) : error 021: symbol already defined: "CPrintToChat"
C:\Users\Studio\Desktop\Scripting\awdawd.sp(174) : error 054: unmatched closing brace ("}")
C:\Users\Studio\Desktop\Scripting\awdawd.sp(166) : warning 203: symbol is never used: "__unknown__"
C:\Users\Studio\Desktop\Scripting\awdawd.sp(166) : warning 203: symbol is never used: "i"