Mask system problem
#1

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
Reply
#2

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

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

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

thnx helpfull
Reply
#6

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


Forum Jump:


Users browsing this thread: 4 Guest(s)