Help? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help? (
/showthread.php?tid=228908)
Help? -
Franklyn - 20.02.2011
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.
Re: Help? -
LZLo - 20.02.2011
it's a warning pls tell me some lines with
Re: Help? -
Franklyn - 20.02.2011
pawn Код:
new Shown[MAX_PLAYERS];
new MapIconsShown[MAX_PLAYERS];
ShowNameTags(1);
MapIconsShown[playerid] = 0;
Those are all
Re: Help? -
LZLo - 20.02.2011
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??
Re: Help? -
Franklyn - 20.02.2011
Hmm. Can't understand :S
Re: Help? -
LZLo - 20.02.2011
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);
}
Re: Help? -
iMonk3y - 20.02.2011
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!
Re: Help? -
Spiral - 20.02.2011
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.
Re: Help? - rjjj - 20.02.2011
Search in the Pawno (using Ctrl+F) for:
Shown
When you find, put it under the line that contains
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
Re: Help? -
Franklyn - 20.02.2011
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
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