SA-MP Forums Archive
some bugs - 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: some bugs (/showthread.php?tid=135494)



some bugs - aircombat - 20.03.2010

1st of all sometimes the auto gates work and sometimes it doesnt

2nd sometimes textdraws show and sometimes they doesnt

so anyone has an explanation for this?


Re: some bugs - Correlli - 20.03.2010

Post your code.


Re: some bugs - aircombat - 20.03.2010

the whole script!?


Re: some bugs - MaykoX - 20.03.2010

Quote:
Originally Posted by [AC
Etch ]
the whole script!?
I guess not, only the stuff of autogates and textdraws


Re: some bugs - Las Venturas CNR - 20.03.2010

Textdraws:
http://forum.sa-mp.com/index.php?topic=116290.0

My URL textdraw:

pawn Код:
// Top
new Text:SiteName;

// OnGameModeInIt

  SiteName = TextDrawCreate(4.000000,435.000000,"web url goes here");  
  TextDrawFont(SiteName,3);
  TextDrawLetterSize(SiteName,0.300,1);
  TextDrawColor(SiteName, 0xFFFFFFAA); //  
  TextDrawColor(SiteName, 0xC00000AA);
  TextDrawSetOutline(SiteName,1);
  TextDrawBackgroundColor(SiteName,0x000000AA);
  TextDrawUseBox(SiteName,0);
  TextDrawAlignment(SiteName, 1);

// OnPlayerConnect
  TextDrawShowForPlayer(playerid, Text:SiteName);

// OnPlayerDisonnect:
    TextDrawHideForPlayer(playerid, Text:SiteName);

// OnGameModeExit
    TextDrawHideForAll(SiteName);
And yes, my server uses gmx every 60 minutes.

Then I've got like a ton of objects and midiostream. After a while, some objects quit loading
but I've got maxobjects set to like 5k.

Plus I've got:

OnGameModeExit - SendRconCommand("reloadfs MidoStream");
And OnGameModeInIt - SendRconCommand("reloadfs MidoStream");


Auto Gate:

pawn Код:
// Top:
new area51gate;
forward area51gateTimer(playerid);

// OnGameModeInIt:
    area51gate = CreateObject(971, 96.705085754395, 1920.8884277344, 20.743732452393, 0.000000, 0.000000, 270.42498779297);
    SetTimer("area51gateTimer", 1000, 1);

// // Public:
public area51gateTimer(playerid)
{

if(IsPlayerInRangeOfPoint(playerid, 10, 96.705085754395, 1920.8884277344, 20.743732452393))
{
MoveObject(area51gate, 96.695297241211, 1929.7633056641, 20.743732452393, 1.50000);
}else{
MoveObject(area51gate, 96.705085754395, 1920.8884277344, 20.743732452393, 1.50000);
}
}
Thanks



Re: some bugs - Las Venturas CNR - 20.03.2010

Quote:
Originally Posted by [AC
Etch ]
1st of all sometimes the auto gates work and sometimes it doesnt

2nd sometimes textdraws show and sometimes they doesnt

so anyone has an explanation for this?
Also, 3RD, some objects don't load, plus it's random too.