SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 11/01/2019, 08:48 PM   #1
faff
Gangsta
 
Join Date: Mar 2012
Location: Belgium
Posts: 752
Reputation: 16
Default Return 1; Invalid.

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:

Code:
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 (c) 1997-2006, ITB CompuPhase


1 Error.
If I remove that return at line 8496.. I again get 26 errors.
__________________
Code:
faff is offline   Reply With Quote
Old 11/01/2019, 08:51 PM   #2
faff
Gangsta
 
Join Date: Mar 2012
Location: Belgium
Posts: 752
Reputation: 16
Default Re: Return 1; Invalid.

Solved.
__________________
Code:
faff is offline   Reply With Quote
Old 11/01/2019, 10:47 PM   #3
Y_Less
Beta Tester
 
Y_Less's Avatar
 
Join Date: Jun 2008
Location: 629 - git.io/Y
Posts: 15,518
Reputation: 3207
Default Re: Return 1; Invalid.

You already made a topic for this issue, please stick to the same one for the same issue in future.
Y_Less is online now   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Invalid function or declaration in a return. ByMatt20030 Scripting Help 2 24/08/2017 09:26 PM
#emit & return - Invalid memory access Su37Erich Scripting Help 4 09/08/2016 12:20 PM
Invalid Command Return Thresholdold Scripting Help 5 24/11/2011 01:56 PM
return as invalid command Unknown123 Help Archive 15 01/08/2011 12:01 AM
FS Cmds return server invalid [UG]Scripter Help Archive 3 14/09/2010 03:40 AM


All times are GMT. The time now is 08:33 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.