some bugs
#1

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?
Reply
#2

Post your code.
Reply
#3

the whole script!?
Reply
#4

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)