3d labels dissapearing - 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)
+--- Thread: 3d labels dissapearing (
/showthread.php?tid=568467)
3d labels dissapearing -
ajwar - 22.03.2015
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?