Simple CreateDynamic3DTextLabel problem - 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: Simple CreateDynamic3DTextLabel problem (
/showthread.php?tid=395030)
Simple CreateDynamic3DTextLabel problem -
maramizo - 24.11.2012
pawn Код:
CMD:aduty(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] < 2) return 0;
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
if(PlayerInfo[playerid][pAdminDuty] == 0)
{
SendClientMessageEx(playerid, COLOR_YELLOW, "You are now on administrative duty! Remember to check /reports!");
DestroyDynamic3DTextLabel(Aduty3D[playerid]);
Aduty3D[playerid] = CreateDynamic3DTextLabel("blabla",COLOR_RED,X,Y,Z,4.0,playerid);}
}
else
{
DestroyDynamic3DTextLabel(Aduty3D[playerid]);
//SendClientMessageEx(playerid, COLOR_RED, "You are now off admin duty!");
}
return 1;
}
Ignore the if in this statement, the Dynamic Text always ONLY appears attached to ID 0, whether he's an administrator or not, can anyone help me?
Again, the "IF" statements are NOT the problem here, yes, they are illogical but that's because I've deleted the code.
And the code that I've deleted has nothing to do with the 3DText labels.
Re: Simple CreateDynamic3DTextLabel problem -
Joshman543 - 24.11.2012
Your labels are messed up try this:
aDuty3D[playerid] = CreateDynamic3DTextLabel("blabla", COLOR_RED, 0, 0, -20, 25, playerid);
+Rep me
Re: Simple CreateDynamic3DTextLabel problem -
maramizo - 27.11.2012
Didn't work.