MAP PWN file cant Compile?
#1

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
Reply
#2

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

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
Reply
#4

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?
Reply
#5

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
Reply
#6

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

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

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

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.
Reply
#10

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)