#1

Always, when i compile my script i get error like this. But in gamemode i have only 30159 lines

pawn Код:
C:\Users\Franklyn\Desktop\sdad\SAMP Server\SAMP Server\gamemodes\sagc.pwn(30160) : warning 203: symbol is never used: "Shown"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase

Header size:           9452 bytes
Code size:          1110000 bytes
Data size:          7643384 bytes
Stack/heap size:      16384 bytes; estimated max. usage=4147 cells (16588 bytes)
Total requirements: 8779220 bytes

1 Warning.
Reply
#2

it's a warning pls tell me some lines with
Quote:

Shown

Reply
#3

pawn Код:
new Shown[MAX_PLAYERS];
new MapIconsShown[MAX_PLAYERS];

ShowNameTags(1);

MapIconsShown[playerid] = 0;
Those are all
Reply
#4

a wiki example:

PHP код:
public OnGameModeInit()
{
    
// Player markers only visible to near players
    
ShowPlayerMarkers(2);

types:
PLAYER_MARKERS_MODE_OFF (0)
PLAYER_MARKERS_MODE_GLOBAL (1)
PLAYER_MARKERS_MODE_STREAMED (2)

that's it??
Reply
#5

Hmm. Can't understand :S
Reply
#6

if you want swithc type of the player markers

there are 3 types of them
//NO PLAYER MARKER
public OnGameModeInit()
{
// Player markers only visible to near players
ShowPlayerMarkers(0);
}

//GLOBAL PLAYER MARKERS
public OnGameModeInit()
{
// Player markers only visible to near players
ShowPlayerMarkers(2);
}

//& STREAMED PLAYER MARKERS
public OnGameModeInit()
{
// Player markers only visible to near players
ShowPlayerMarkers(2);
}
Reply
#7

Well, compiler says there's not enough space on the stack, either find where's the problem and dispose it (e.g. string[256]), or increase the stack/heap size (#pragma dynamic)

Also, the warning you get is because you don't use that symbol, get rid of it before it's too late!
Reply
#8

LZLo what the *uck? It says that the new Shown[MAX_PLAYERS]; is never used in the script, to fix it, simply comment / delete the line and it will be fixed.
Reply
#9

Search in the Pawno (using Ctrl+F) for: Shown

When you find, put it under the line that contains Shown

pawn Код:
#pragma unused Shown

And about the Line that do not exist, it is happening because you are using codes with { } and functions without { }.

I hope that i have helped
Reply
#10

Quote:
Originally Posted by rjjj
Посмотреть сообщение
Search in the Pawno (using Ctrl+F) for: Shown

When you find, put it under the line that contains Shown

pawn Код:
#pragma unused Shown

And about the Line that do not exist, it is happening because you are using codes with { } and functions without { }.

I hope that i have helped
Thank you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)