SA-MP Forums Archive
Pawno ERROR - 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: Pawno ERROR (/showthread.php?tid=468804)



Pawno ERROR - Gold_Master - 10.10.2013

(80) : warning 203: symbol is never used: "createcomp"
(80) : error 013: no entry point (no public functions)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

Line http://prntscr.com/1weujg
no 80 line


Re: Pawno ERROR - Konstantinos - 10.10.2013

Don't worry about the warning, you declare createcomp but you never use it somewhere. Use it or remove it.

About the other, I'm not sure, I think entry point is the main() {}


Re: Pawno ERROR - xVIP3Rx - 10.10.2013

Add this to the script
pawn Код:
main() {}
If didn't work then add the (OnGameModeInit, OnGameModeExit, OnPlayerConnect, .. and other SA:MP public callbacks).


Re: Pawno ERROR - Gold_Master - 10.10.2013

i dont understand what should i do now??


Re: Pawno ERROR - xVIP3Rx - 10.10.2013

On the top of the script, If it's a gamemode, Put
pawn Код:
main() {}
under the includes and the defines..


Re: Pawno ERROR - Konstantinos - 10.10.2013

Quote:
Originally Posted by xVIP3Rx
Посмотреть сообщение
On the top of the script, If it's a gamemode, Put
pawn Код:
main() {}
under the includes and the defines..
The compile cannot know if a user has used main into his mode or not. If the main is missing when you run the gamemode, it won't run it and it will give the error in the console/server log instead.

It's better to show us the whole code of what you're trying to do because with the line 80 which doesn't exist.. I've got really no idea.


Re: Pawno ERROR - Gold_Master - 10.10.2013

http://pastebin.com/QAhSaQHk

here is the script


Re: Pawno ERROR - Konstantinos - 10.10.2013

Quote:
Originally Posted by Gold_Master
Посмотреть сообщение
http://pastebin.com/QAhSaQHk

here is the script
You forgot the includes.

pawn Код:
// AT THE TOP
#include <a_samp>
#include <ocmd>

// rest