Quote:
Originally Posted by J0sh...
are you guys ok
you're creating a __PLAYER__ text label, it will only be seen by that __PLAYER__
|
Quote:
Originally Posted by TheToretto
Uh... I don't have any warning nor errors... Are you sure you're compiling the right code? If yes try this:
pawn Code:
#include <a_samp> #include <zcmd> #include <streamer>
new Text3D:PlayerAdminLabel[MAX_PLAYERS];
ReturnAdminLevel(playerid) { new string[64] ; switch (pInfo[playerid][Admin]) { case 1: string= "Moderator"; case 2: string= "Game Administrator"; case 3: string= "Lead Administrator"; case 4: string= "Server Manager"; default: string= "Undefined"; } return string; }
CMD:aduty(playerid, params[]) { //pInfo[playerid][Admin]++; Just for tests, you can delete it if(IsValidDynamic3DTextLabel(PlayerAdminLabel[playerid])) DestroyDynamic3DTextLabel(PlayerAdminLabel[playerid]); PlayerAdminLabel[playerid] = CreateDynamic3DTextLabel(ReturnAdminLevel(playerid), 0xFFA500FF, 0.0, 0.0, 0.1, 5.0, .attachedplayer = playerid, .testlos = 1); return 1; }
|
I am okay and I am not using it (okay before I did) (can you compile that code and tell me if you get any errors/warnings please? The author says he gets 2 warnings, I don't.