Errors ! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Errors ! (
/showthread.php?tid=454538)
Errors ! -
DonBonanno - 29.07.2013
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 ; ?
Re: Errors ! -
DemCaribous - 29.07.2013
you are missing a closing bracket in case 1
Re: Errors ! -
Konstantinos - 29.07.2013
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]++;
}
Re: Errors ! -
DonBonanno - 29.07.2013
Thank you for help
+rep