SA-MP Forums Archive
MAP PWN file cant Compile? - 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: MAP PWN file cant Compile? (/showthread.php?tid=633540)



MAP PWN file cant Compile? - RoX123 - 03.05.2017

Hi guys, again me.
As you know i started learning scripting and mapping, now i get new problem.
My PWN For maps cant compile to AMX
In warning says that "tmpobjid" never used, but preaty all building are marked as "tmpobjid

This is warning what my compiler send to me
warning 204: symbol is assigned a value that is never used: "tmpobjid"
error 013: no entry point (no public functions)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

How i can fix this, thanks in advance


Re: MAP PWN file cant Compile? - Fairuz - 03.05.2017

Can you show us the code?are you sure that it contains OnFilterScriptInit,.etc?


Re: MAP PWN file cant Compile? - RoX123 - 03.05.2017

Quote:
Originally Posted by Dice_
Посмотреть сообщение
Can you show us the code?are you sure that it contains OnFilterScriptInit,.etc?
OnFilterScriptInt didnt defined in my MAP PWN Code


Re: MAP PWN file cant Compile? - Toroi - 03.05.2017

Can you show us what is your code like? It seems you are trying to compile a file with only the respective function to create objects and nothing else on it, am I wrong?


Re: MAP PWN file cant Compile? - RoX123 - 03.05.2017

What ever i do, file cant compile, if i dont remove or add anyithing same eror, i want remove one object from my PWN for map, and eror show again,
This is link of map file what i trying edit, if you have time dowload it and try to see, thanks in advance guys
https://www.mediafire.com/?i45k8ud88c83328


Re: MAP PWN file cant Compile? - OneDay - 03.05.2017

I can send you, but is to big for pastebin.com


Re: MAP PWN file cant Compile? - RoX123 - 03.05.2017

Edit her and post it on mediafire, if not hard, if is i will try find something, thanks in advance


Re: MAP PWN file cant Compile? - RoX123 - 05.05.2017

Someone know edit her for me, or explain what is problem thanks in advance


Re: MAP PWN file cant Compile? - Wolfe - 05.05.2017

put this anywhere in your code (make sure its not in any other brackets/functions):

Код:
public OnGameModeInit()
{
	return 1;
}
thats a public function. if you want to know more on how it works ****** it.


Re: MAP PWN file cant Compile? - ShihabSoft - 05.05.2017

For the warning, the variable tmpobjid was never used in any other part of the code, make sure you have use the same variable, which is case sensitive and do check out if there's missing parenthesis and curly brackets.

As for the error, you should define a public function which acts as main, that is the entry point, you should define OnFilterScriptInit