Switch - 3Dtextlabels
#15

Quote:
Originally Posted by Mo123
View Post
./inc/admin.inc(123) : warning 213: tag mismatch
./inc/admin.inc(127) : warning 213: tag mismatch

Code:
DestroyDynamic3DTextLabel(PlayerAdminLabel[playerid]);
Code:
PlayerAdminLabel[playerid] = CreateDynamic3DTextLabel(ReturnAdminLevel(playerid), 0xFFA500FF, 0.0, 0.0, 0.1, 5.0, .attachedplayer = playerid, .testlos = 1);
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(Text3D:PlayerAdminLabel[playerid]))
        DestroyDynamic3DTextLabel(PlayerAdminLabel[playerid]);
    PlayerAdminLabel[playerid] = Text3D:CreateDynamic3DTextLabel(ReturnAdminLevel(playerid), 0xFFA500FF, 0.0, 0.0, 0.1, 5.0, .attachedplayer = playerid, .testlos = 1);
    return 1;
}
Reply


Messages In This Thread
Switch - 3Dtextlabels - by Mo123 - 30.10.2018, 03:04
Re: Switch - 3Dtextlabels - by ProfessorX - 30.10.2018, 03:38
Re: Switch - 3Dtextlabels - by TheToretto - 30.10.2018, 07:02
Re: Switch - 3Dtextlabels - by Mo123 - 30.10.2018, 18:26
Re: Switch - 3Dtextlabels - by UFF - 30.10.2018, 18:30
Re: Switch - 3Dtextlabels - by TheToretto - 30.10.2018, 19:20
Re: Switch - 3Dtextlabels - by KinderClans - 30.10.2018, 20:27
Re: Switch - 3Dtextlabels - by J0sh... - 30.10.2018, 20:31
Re: Switch - 3Dtextlabels - by TheToretto - 30.10.2018, 20:34
Re: Switch - 3Dtextlabels - by Mo123 - 31.10.2018, 02:54
Re: Switch - 3Dtextlabels - by UFF - 31.10.2018, 03:55
Re: Switch - 3Dtextlabels - by Mo123 - 31.10.2018, 04:11
Re: Switch - 3Dtextlabels - by TheToretto - 31.10.2018, 07:37
Re: Switch - 3Dtextlabels - by Mo123 - 31.10.2018, 16:13
Re: Switch - 3Dtextlabels - by TheToretto - 31.10.2018, 16:32
Re: Switch - 3Dtextlabels - by v1k1nG - 31.10.2018, 16:37
Re: Switch - 3Dtextlabels - by J0sh... - 31.10.2018, 16:40
Re: Switch - 3Dtextlabels - by v1k1nG - 31.10.2018, 16:43
Re: Switch - 3Dtextlabels - by TheToretto - 31.10.2018, 16:52
Re: Switch - 3Dtextlabels - by Mo123 - 31.10.2018, 17:14
Re: Switch - 3Dtextlabels - by TheToretto - 31.10.2018, 17:16
Re: Switch - 3Dtextlabels - by Mo123 - 31.10.2018, 17:18
Re: Switch - 3Dtextlabels - by TheToretto - 31.10.2018, 17:19
Re: Switch - 3Dtextlabels - by Mo123 - 31.10.2018, 17:38
Re: Switch - 3Dtextlabels - by UFF - 31.10.2018, 17:52
Re: Switch - 3Dtextlabels - by Mo123 - 31.10.2018, 18:08
Re: Switch - 3Dtextlabels - by TheToretto - 31.10.2018, 18:16
Re: Switch - 3Dtextlabels - by Mo123 - 31.10.2018, 18:42
Re: Switch - 3Dtextlabels - by TheToretto - 31.10.2018, 18:52

Forum Jump:


Users browsing this thread: 3 Guest(s)