SA-MP Forums Archive
Mask system 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: Mask system problem (/showthread.php?tid=410794)



Mask system problem - Robert West - 26.01.2013

pawn Code:
CMD:hmask(playerid, params[])
{
    new strn[128];
    if(Pmask == 1)
    {
            format(strn, sizeof(strn), "%s ", GetPlayerNameExt(playerid));
            SendClientMessage(playerid, COLOR_GREY, "You have putten your mask off!");
            Pmask = 0;
    }
    if(Pmask == 0)
    {
            format(strn, sizeof(strn), "Stranger(%d) ", playerid);
            SendClientMessage(playerid, COLOR_GREY, "You have putten your mask on!");
            Pmask = 1;
    }
    Update3DTextLabelText(playerid, COLOR_WHITE, strn);// <--- error Here
    return 1;
}
When i compile i'v" get this error
Code:
C:\Users\YOU\Desktop\under work\gamemodes\CFRP.pwn(76648) : warning 213: tag mismatch
please help


Re: Mask system problem - Roach_ - 26.01.2013

Function: Update3DTextLabelText(Text3D:id, color, text[]);
You must put an Text3D ID not playerid..


Re: Mask system problem - coakiddo - 26.01.2013

https://sampwiki.blast.hk/wiki/Attach3DTextLabelToPlayer Use this to attach 3D Text to player.


Re : Mask system problem - Robert West - 26.01.2013

Code:
C:\Users\YOU\Desktop\under work\gamemodes\CFRP.pwn(76648) : error 017: undefined symbol "id"
how and where to define it ?


Re : Mask system problem - Robert West - 26.01.2013

thnx helpfull


Re : Mask system problem - Robert West - 27.01.2013

She just add stranger in the head of player , name still shown ? how to disable player name ?