SA-MP Forums Archive
Return 1; Invalid. - 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: Return 1; Invalid. (/showthread.php?tid=662794)



Return 1; Invalid. - faff - 11.01.2019

Yesterday I thought I had a missing bracket because compiler show'd me 26 useless errors.

After looking for 6+ hours in a 30k+ gamemode, I commented the full OnDialogResponse.
It was solved.

So then I put one more Return 1; at the end of ondialogresponse.
Now I get these errors:

Код:
C:\Users\fabio\Desktop\Tropical Island Roleplay\gamemodes\T-RP.pwn(8496) : error 002: only a single statement (or expression) can follow each "case"
C:\Users\fabio\Desktop\Tropical Island Roleplay\gamemodes\T-RP.pwn(8496) : warning 215: expression has no effect
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
If I remove that return at line 8496.. I again get 26 errors.


Re: Return 1; Invalid. - faff - 11.01.2019

Solved.