SA-MP Forums Archive
Nothing error! - 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: Nothing error! (/showthread.php?tid=525920)



Nothing error! - arlindi - 14.07.2014

PHP код:
    if(pInfo[playerid][pVipLevel] == 2)
    {
        new 
Text3D:label Create3DTextLabel("Supporter"0xFFFF00AA30.040.050.040.00);
        
Attach3DTextLabelToPlayer(labelplayerid0.00.00.3);
    }
    if(
pInfo[playerid][pVipLevel] == 3)
    {
        new 
Text3D:label Create3DTextLabel("Supporter"0xFFFF00AA30.040.050.040.00);
        
Attach3DTextLabelToPlayer(labelplayerid0.00.00.3);
    }
    if(
pInfo[playerid][pVipLevel] == 4)
    {
        new 
Text3D:label Create3DTextLabel("Sponsor"0xFFFF00AA30.040.050.040.00);
        
Attach3DTextLabelToPlayer(labelplayerid0.00.00.3);
    }
    if(
pInfo[playerid][pVipLevel] == 5)
    {
        new 
Text3D:label Create3DTextLabel("Elite"0xFFFF00AA30.040.050.040.00);
        
Attach3DTextLabelToPlayer(labelplayerid0.00.00.3);
    } 
I add this on playerspawn and this work in vipLevels But sometimes he show the label and in player (Not in vip level)If he isnt vip level. He show it sometimes


Re: Nothing error! - arlindi - 14.07.2014

anyone?


Re: Nothing error! - arlindi - 14.07.2014

Bump


Re: Nothing error! - Hirsw0w - 14.07.2014

first, the new do in the upside on the code....
second you need to realse the attach (delete the 3dtextlabel) after the player comes out...
and if you do it check maybe you dont reset the new pInfo for the playerid...

sorry for my bad english.


Re: Nothing error! - arlindi - 15.07.2014

I dont understand nothing -.-


Re: Nothing error! - arlindi - 16.07.2014

Any One >?