SA-MP Forums Archive
weird eroor - 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: weird eroor (/showthread.php?tid=589249)



weird eroor - PeterNincompoop - 17.09.2015

i havent tried scripting in over two years so i figured id start from strach so i enter his
pawn Code:
#include <a_samp>

main()
[
    print("o") ;
    print("m") ;
    print("g") ;
]
and i get this
Code:
C:\Users\Acer\Desktop\Project\gamemodes\Nincompoop.pwn(4) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.



Re: weird eroor - Infinity - 17.09.2015

You're using the wrong brackets. For code blocks (such as contained in functions, loops, if-statements et cetera) you use {}.