02.02.2013, 20:49
expected token: "-string end-", but found "-identifier-"
invalid function or declaration
I get the first error for the first 2 cases, then the second error for every case after that.
Every case within this switch is the same, just a different division string, and different rank strings. Nothing else is changed...
pawn Код:
case 2: division = "B" { // Central
pawn Код:
case 3: division = "C" { // Eastern
Every case within this switch is the same, just a different division string, and different rank strings. Nothing else is changed...
pawn Код:
case 1: division = "A" { // Western
switch(PlayerInfo[targetid][pRank])
{
case 1: rank = "Prob. Officer";
case 2: rank = "Snr. Officer";
case 3: rank = "Sergeant";
case 4: rank = "Inspector";
case 5: rank = "Chief Inspector";
case 6: rank = "Superintendent";
case 7: rank = "Chief Superintendent";
default: rank = "OIT";
}
}