problem compiling
#1

Код:
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
Reply
#2

Ahh don't worry that's warning.
Reply
#3

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

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

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

Just remove new players; ... or something like that.
Reply
#7

Thanks i found it. It was new Text: player; but it was at line 527 i don't understand why it sayd line 42150
Reply
#8

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

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

Код:
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].
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)