Is this Normal with Pawno?
#1

pawn Код:
C:\Users\Compaq_Administrator\Desktop\Stunt Paradise 0.3a\pawno\include\cps.inc(140) : warning 208: function with tag result used before definition, forcing reparse
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase

Header size:      2904 bytes
Code size:      151916 bytes
Data size:      903464 bytes
Stack/heap size:   16384 bytes; estimated max. usage=4479 cells (17916 bytes)
Total requirements: 1074668 bytes

1 Warning.
This happens when i add IsPlayerLAdmin in my GM
Reply
#2

No. Basically, you use too much memory inside one or more functions.
Reply
#3

I suppose LAdmin does use loads of memory.
Reply
#4

will this effect the servers porformance?
Reply
#5

It will crash it sooner or later or it won't even start from my experience.
Reply
#6

Quote:
Originally Posted by $ЂЯĢ
It will crash it sooner or later or it won't even start from my experience.
ok then ill just take it off
Reply
#7

pawn Код:
public OnPlayerSpawn(playerid)
{
  SetPlayerFightingStyle(playerid, FIGHT_STYLE_KUNGFU);
  PlayerPlaySound(playerid, 1098,-119.9460,23.1096,12.2238);
  if (IsPlayerLAdmin(playerid))
  {
     SetPlayerFightingStyle(playerid, FIGHT_STYLE_KUNGFU);
     DMZone[playerid] = 0;
     GivePlayerWeapon(playerid, 46, 10);
     new rand = random(sizeof(RandomPlayerSpawns));
     SetPlayerPos(playerid, RandomPlayerSpawns[rand][0], RandomPlayerSpawns[rand][1], RandomPlayerSpawns[rand][2]);
     new Text3D:owner = Create3DTextLabel("Stunt Paradise Admin", 0xE60000FF, 0.0, 0.0, 0.0, 40.0, 0);
     Attach3DTextLabelToPlayer(owner, playerid, 0.0, 0.0, 0.7);
     return 1;
  }
  if (IsPlayerAdminLevel(playerid, 6))
  {
    SetPlayerFightingStyle(playerid, FIGHT_STYLE_KUNGFU);
    DMZone[playerid] = 0;
    GivePlayerWeapon(playerid, 46, 10);
    new rand = random(sizeof(RandomPlayerSpawns));
    SetPlayerPos(playerid, RandomPlayerSpawns[rand][0], RandomPlayerSpawns[rand][1], RandomPlayerSpawns[rand][2]);
       new Text3D:owner = Create3DTextLabel("Stunt Paradise Owner", 0xE60000FF, 0.0, 0.0, 0.0, 40.0, 0);
        Attach3DTextLabelToPlayer(owner, playerid, 0.0, 0.0, 0.7);
        return 1;
  }
  DMZone[playerid] = 0;
  GivePlayerWeapon(playerid, 46, 10);
  new rand = random(sizeof(RandomPlayerSpawns));
  SetPlayerPos(playerid, RandomPlayerSpawns[rand][0], RandomPlayerSpawns[rand][1], RandomPlayerSpawns[rand][2]);
  return 1;
}
This is what might me be causing it
Reply
#8

No i don't think that is the cause as it uses only few bytes (don't know for IsPlayerLAdmin but i assume it doesn't use 16kB of memory..), check all functions in your script, and don't forget to check also your included files, such as that "cps.inc".

You should read that cool and instructive topic: http://forum.sa-mp.com/index.php?topic=79810.0
Reply
#9

Quote:
Originally Posted by 0rb
No i don't think that is the cause as it uses only few bytes (don't know for IsPlayerLAdmin but i assume it doesn't use 16kB of memory..), check all functions in your script, and don't forget to check also your included files, such as that "cps.inc".

You should read that cool and instructive topic: http://forum.sa-mp.com/index.php?topic=79810.0
Quote:
Originally Posted by HydraX
pawn Код:
public OnPlayerSpawn(playerid)
{
  SetPlayerFightingStyle(playerid, FIGHT_STYLE_KUNGFU);
  PlayerPlaySound(playerid, 1098,-119.9460,23.1096,12.2238);
  if (IsPlayerLAdmin(playerid))
  {
     SetPlayerFightingStyle(playerid, FIGHT_STYLE_KUNGFU);
     DMZone[playerid] = 0;
     GivePlayerWeapon(playerid, 46, 10);
     new rand = random(sizeof(RandomPlayerSpawns));
     SetPlayerPos(playerid, RandomPlayerSpawns[rand][0], RandomPlayerSpawns[rand][1], RandomPlayerSpawns[rand][2]);
     new Text3D:owner = Create3DTextLabel("Stunt Paradise Admin", 0xE60000FF, 0.0, 0.0, 0.0, 40.0, 0);
     Attach3DTextLabelToPlayer(owner, playerid, 0.0, 0.0, 0.7);
     return 1;
  }
  if (IsPlayerAdminLevel(playerid, 6))
  {
    SetPlayerFightingStyle(playerid, FIGHT_STYLE_KUNGFU);
    DMZone[playerid] = 0;
    GivePlayerWeapon(playerid, 46, 10);
    new rand = random(sizeof(RandomPlayerSpawns));
    SetPlayerPos(playerid, RandomPlayerSpawns[rand][0], RandomPlayerSpawns[rand][1], RandomPlayerSpawns[rand][2]);
       new Text3D:owner = Create3DTextLabel("Stunt Paradise Owner", 0xE60000FF, 0.0, 0.0, 0.0, 40.0, 0);
        Attach3DTextLabelToPlayer(owner, playerid, 0.0, 0.0, 0.7);
        return 1;
  }
  DMZone[playerid] = 0;
  GivePlayerWeapon(playerid, 46, 10);
  new rand = random(sizeof(RandomPlayerSpawns));
  SetPlayerPos(playerid, RandomPlayerSpawns[rand][0], RandomPlayerSpawns[rand][1], RandomPlayerSpawns[rand][2]);
  return 1;
}
This is what might me be causing it
It was this that caused the memory reader to start up (or whatever it is)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)