Error in simple pawn code!? i dont understand
#1

CODE:

main()
(
return MyFunction("What");
)

MyFunction(string[])
(
print(string);
return 1;
)

ERROR:

C:\Documents and Settings\Jordi\Escritorio\Untitled.pwn(13 -- 14) : fatal error 103: insufficient memory

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


1 Error.

im trying to learn pawn, from samp wiki, when i copy the code y didnt get any error but when i write the code manually i got error :S
Reply
#2

Don't return in main().
Reply
#3

Thanks, dont laugh at me, i do know, its a stupid question.
Reply
#4

Quote:
Originally Posted by universe
Посмотреть сообщение
Thanks, dont laugh at me, i do know, its a stupid question.
It's not stupid, you are learning, we all learned.
I bet no one will be laughing at you, because atleast you are trying to learn.
Keep trying and I hope you become a nice scripter.

Matthew "6d" Larrabure
Reply
#5

Quote:
Originally Posted by universe
Посмотреть сообщение
Thanks, dont laugh at me, i do know, its a stupid question.
It's not, I'm not newbie using PAWN, but I didn't know about you can't return in main() !
Reply
#6

Thanks, nice comments.! i love you guys.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)