problem compiling - 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: problem compiling (
/showthread.php?tid=323449)
problem compiling -
trulis - 05.03.2012
Код:
C:\Documents and Settings\Trulis\Desktop\Zonek\Zonek\gamemodes\Zonek.pwn(42150) : warning 203: symbol is never used: "players"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Header size: 9916 bytes
Code size: 1854832 bytes
Data size: 4875884 bytes
Stack/heap size: 16384 bytes; estimated max. usage=4124 cells (16496 bytes)
Total requirements: 6757016 bytes
1 Warning.
I get this error when compiling but on that line there isn't anything
pawn Код:
//==============================================================================
public Reklam2()
{
new string[256];
new result[64];
format(string, sizeof(string), "~r~w3zoo", result);
TextDrawSetString(Textdraw0, string);
TextDrawShowForAll(Textdraw0);
return 1;
}
//this is 42150
Re: problem compiling -
[BP]Tony - 05.03.2012
Ahh don't worry that's warning.
AW: problem compiling -
BigETI - 05.03.2012
You may have a variable/constant which is called "player". Removing it might solve the first warning.
The second problem is that you use variables/constants which uses a huge cell size. Lowering its cell sizes might solve the second problem.
Quote:
Originally Posted by [BP]Tony
Ahh don't worry that's warning.
|
Never EVER ignore compiling warnings. Those might give you tips where a problem can occour.
Re: problem compiling -
trulis - 05.03.2012
There is only one problem the pawn code is where i get the error when compiling(C:\Documents and Settings\Trulis\Desktop\Zonek\Zonek\gamemodes\Zone k.pwn(42150) : warning 203: symbol is never used: "players"). At the line 42150 there isn't anything. My script ends at 42149.
AW: problem compiling -
BigETI - 05.03.2012
The compiler means that the symbol "players" has been never used in your script. Search for the variable/constant "player" in your script and remove it
Re: problem compiling -
Edvin - 05.03.2012
Just remove
new players; ... or something like that.
Re: problem compiling -
trulis - 05.03.2012
Thanks i found it. It was new Text: player; but it was at line 527 i don't understand why it sayd line 42150
Re: problem compiling -
Max_Coldheart - 05.03.2012
Quote:
Originally Posted by trulis
Thanks i found it. It was new Text: player; but it was at line 527 i don't understand why it sayd line 42150
|
because your script ends in line 42149 but the variable isn't found anywhere in the script so it shows 1 line more than your script has.
AW: problem compiling -
BigETI - 05.03.2012
I hope you don't also ignore this message:
Код:
Header size: 9916 bytes
Code size: 1854832 bytes
Data size: 4875884 bytes
Stack/heap size: 16384 bytes; estimated max. usage=4124 cells (16496 bytes)
Total requirements: 6757016 bytes
Normally if a script has been compiled correctly so you should only get this message:
Код:
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Re: problem compiling -
Chrillzen - 05.03.2012
Код:
Header size: 9916 bytes
Code size: 1854832 bytes
Data size: 4875884 bytes
Stack/heap size: 16384 bytes; estimated max. usage=4124 cells (16496 bytes)
Total requirements: 6757016 bytes
It means that you're using more bytes than you should and will make your script slow, check around in your gamemode and looks for strings exceeding [128] bytes. If so change them to [128] or lower, but if you're not sure use [128].