SA-MP Forums Archive
4 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: 4 errors (/showthread.php?tid=487201)



4 errors - boomerboom - 12.01.2014

Код:
if(response)// They pressed the first button.
    {
    switch(dialogid)// If you only have one dialog, then this isn't required, but it's neater for when you implement more dialogs.
        {
		case 2:// Our dialog!
    	    {
This is the second dialog.




Код:
C:\Users\***\Desktop\SAMP\filterscripts\Untitled.pwn(89) : error 002: only a single statement (or expression) can follow each "case"
C:\Users\***\Desktop\SAMP\filterscripts\Untitled.pwn(89 -- 90) : error 028: invalid subscript (not an array or too many subscripts): "response"
C:\Users\***\Desktop\SAMP\filterscripts\Untitled.pwn(89 -- 91) : error 001: expected token: "}", but found "switch"
C:\Users\***\Desktop\SAMP\filterscripts\Untitled.pwn(89 -- 91) : fatal error 107: too many error messages on one line

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


4 Errors.



Re: 4 errors - boomerboom - 12.01.2014

Bump