3d labels dissapearing
#1

I don't know if it may be limit related, but 3d labels started to dissapear or latter not appear at all. For 3d label creating i use only streamer.

Creating label:

pawn Код:
new Text3D:Taxi[MAX_VEHICLES];
Created in dialog response:
pawn Код:
new error[128];
format(error,sizeof(error),"{ffe100}price:{ffffff} %iЂ",strval(inputtext));
new vID = GetPlayerVehicleID(playerid);
Taxi[vID] = CreateDynamic3DTextLabel(error, 0xdddda6FF, 0, 0, 0.2, 20, INVALID_PLAYER_ID, vID, 1, -1, -1, -1, 20);
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
  if(newstate == PLAYER_STATE_ONFOOT && oldstate == PLAYER_STATE_DRIVER)
  {
    new vidas = GetPlayerVehicleID(playerid);
        if(IsValidDynamic3DTextLabel(Taxi[vidas])) DestroyDynamic3DTextLabel(Taxi[vidas]);
  }
}
This works works at server start, but latter after like half a hour starts dissapearing after 1 - 10seconds when being created. Sometimes the 3d label starts blinking..

Any suggestions?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)