Server Bug - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Server Bug (
/showthread.php?tid=441893)
Server Bug -
Merit - 04.06.2013
In my server, i used to attach player name and rank as a tag above player head. and i use this script under OnPlayerConnect for doing that
pawn Код:
public OnPlayerConnect(playerid)
{
new Ptag[400];
format(Ptag, sizeof(Ptag), TXT_HeadText, PData[playerid][PlayerName], playerid, PData[playerid][PlayerRank]);
PData[playerid][PlayerAText] = Create3DTextLabel(Ptag, 0xFFFF00FF, 30.0, 40.0, 50.0, 25.0, 0);
Attach3DTextLabelToPlayer(APlayerData[playerid][PlayerAText], playerid, 0.0, 0.0, 0.1);
return 1;
}
Finally i also define this script under OnPlayerDisconnect for deleting that text label above head
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
Delete3DTextLabel(PData[playerid][PlayerAText]);
}
But even after doing all these, the text above the head gets bugged like this
What can be the reason for that bug even after i delete the text label when player reconnects, it seems like the tag is getting overlapped. Please help me out in resolving this problem.
Re: Server Bug -
Merit - 04.06.2013
Why there is no help from any person at samp forums?