Errors !
#1

I have some warnings in this :

Код:
			        case 0:
					{
					    QuizRight[playerid]++;
					    ShowPlayerDialog(playerid, 9002, DIALOG_STYLE_LIST, "Ce faci daca cineva foloseste hack-uri", "Stau de vorba cu el\n /report unui admin\nma duc si il omor", "OK", "");
					}
					case 1:
					{
					    ShowPlayerDialog(playerid, 9002, DIALOG_STYLE_LIST, "Ce faci daca cineva foloseste hack-uri", "Stau de vorba cu el\n /report unui admin\nma duc si il omor", "OK", "");
					case 2:
					{
						ShowPlayerDialog(playerid, 9002, DIALOG_STYLE_LIST, "Ce faci daca cineva foloseste hack-uri", "Stau de vorba cu el\n /report unui admin\nma duc si il omor", "OK", "");
					    QuizRight[playerid]++;
					}
				}
			}
		}
Warnings :

Код:
D:\Servere SAMP\Hard Life Roleplay\VCRP\gamemodes\subrp.pwn(9231) : warning 217: loose indentation
D:\Servere SAMP\Hard Life Roleplay\VCRP\gamemodes\subrp.pwn(9231) : error 014: invalid statement; not in switch
D:\Servere SAMP\Hard Life Roleplay\VCRP\gamemodes\subrp.pwn(9231) : warning 215: expression has no effect
D:\Servere SAMP\Hard Life Roleplay\VCRP\gamemodes\subrp.pwn(9231) : error 001: expected token: ";", but found ":"
D:\Servere SAMP\Hard Life Roleplay\VCRP\gamemodes\subrp.pwn(9231) : error 029: invalid expression, assumed zero
D:\Servere SAMP\Hard Life Roleplay\VCRP\gamemodes\subrp.pwn(9231) : fatal error 107: too many error messages on one line

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


4 Errors.
And the line 9231 is :

case 2:


Need to put ; ?
Reply
#2

you are missing a closing bracket in case 1
Reply
#3

pawn Код:
case 0:
{
    QuizRight[playerid]++;
    ShowPlayerDialog(playerid, 9002, DIALOG_STYLE_LIST, "Ce faci daca cineva foloseste hack-uri", "Stau de vorba cu el\n /report unui admin\nma duc si il omor", "OK", "");
}
case 1:
{
    ShowPlayerDialog(playerid, 9002, DIALOG_STYLE_LIST, "Ce faci daca cineva foloseste hack-uri", "Stau de vorba cu el\n /report unui admin\nma duc si il omor", "OK", "");
} // MISSING BRACKET
case 2:
{
    ShowPlayerDialog(playerid, 9002, DIALOG_STYLE_LIST, "Ce faci daca cineva foloseste hack-uri", "Stau de vorba cu el\n /report unui admin\nma duc si il omor", "OK", "");
    QuizRight[playerid]++;
}
Reply
#4

Thank you for help +rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)