SA-MP Forums Archive
Error 030 - I need help! - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Error 030 - I need help! (/showthread.php?tid=82277)



Error 030 - I need help! - Klutty - 17.06.2009

http://klutty.pastebin.com/m13e3d0

That is what I got, and I get one error.

Quote:
Originally Posted by Pawn Compiler
C:\Program\SAMP Server\filterscripts\ultimate.pwn(479) : error 030: compound statement not closed at the end of file (started at line 8
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.
And here's what I read in the pawn-lang.pdf

Quote:
Originally Posted by pawn-lang.pdf
030 compound statement not closed at the end of file
An unexpected end of file occurred. One or more compound
statements are still unfinished (i.e. the closing brace “}” has not
been found).
But I can't get it to work! Help me please!


Re: Error 030 - I need help! - CracK - 17.06.2009

Put one more } under return 0; at the end of your code


Re: Error 030 - I need help! - Klutty - 17.06.2009

Ah thanks heaps!

But now I get, a warning..

Quote:
Originally Posted by Pawno CC
C:\Program\SAMP Server\filterscripts\ultimate.pwn(454) : warning 209: function "OnPlayerCommandText" should return a value
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.
I guess I can just ignore, But isnt it better not to?


Re: Error 030 - I need help! - [nl]daplayer - 17.06.2009

Quote:
Originally Posted by Klutty
Ah thanks heaps!

But now I get, a warning..

Quote:
Originally Posted by Pawno CC
C:\Program\SAMP Server\filterscripts\ultimate.pwn(454) : warning 209: function "OnPlayerCommandText" should return a value
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.
I guess I can just ignore, But isnt it better not to?
you forgot to use
pawn Код:
return 0;
or
pawn Код:
return 1;
at the end of OnPlayerCommandText


Re: Error 030 - I need help! - Klutty - 17.06.2009

Quote:
Originally Posted by .:NoZer0:.
Quote:
Originally Posted by Klutty
Ah thanks heaps!

But now I get, a warning..

Quote:
Originally Posted by Pawno CC
C:\Program\SAMP Server\filterscripts\ultimate.pwn(454) : warning 209: function "OnPlayerCommandText" should return a value
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.
..

I guess I can just ignore, But isnt it better not to?
you forgot to use
pawn Код:
return 0;
or
pawn Код:
return 1;
at the end of OnPlayerCommandText
I have return 0; at the end of it if you look at my pastebin post.


Re: Error 030 - I need help! - CracK - 17.06.2009

Move your return 0; a } lower. I hope you understand...


Re: Error 030 - I need help! - Klutty - 17.06.2009

It works! THANKS SO MUCH CracK!