[HELP] Attach And 3DTextLabel
#7

Try This:

pawn Код:
dcmd_w(playerid,params[])
{
    new string[128];
    if(!strlen(params))
    {
        SendClientMessage(playerid,COLOR_ERROR,"USAGE: /W (Message)");
        return 1;
    }
    for(new i=0;i<MAX_PLAYERS;i++)
    {
        if(IsPlayerConnected(i) && GetDistanceBetweenPlayers(playerid,i) < 10)
        {
            MyLabel = CreatePlayer3DTextLabel(playerid,params,COLOR_WHITE,0.0,0.0,0.0,40.0,0);
            Attach3DTextLabelToPlayer(MyLabel, playerid, 0.0, 0.0, 0.4);
            return 1;
        }
    }
    return 1;
}

your problem is "CreatePlayer3DTextLabel" Parameters.

pawn Код:
CreatePlayer3DTextLabel(playerid, text[], color, Float:X, Float:Y, Float:Z, Float:DrawDistance, attachedplayer, attachedvehicle, testLOS)
you forgot to add "testLOS"
Reply


Messages In This Thread
[HELP] Attach And 3DTextLabel - by M0HAMMAD - 11.11.2014, 16:04
Re: [HELP] Attach And 3DTextLabel - by dominik523 - 11.11.2014, 16:11
Re: [HELP] Attach And 3DTextLabel - by M0HAMMAD - 11.11.2014, 16:32
Re: [HELP] Attach And 3DTextLabel - by Glossy42O - 11.11.2014, 16:35
Re: [HELP] Attach And 3DTextLabel - by M0HAMMAD - 11.11.2014, 16:51
Re: [HELP] Attach And 3DTextLabel - by Sawalha - 11.11.2014, 17:11
Re: [HELP] Attach And 3DTextLabel - by M4D - 11.11.2014, 17:11
Re: [HELP] Attach And 3DTextLabel - by Sawalha - 11.11.2014, 17:14
Re: [HELP] Attach And 3DTextLabel - by M0HAMMAD - 11.11.2014, 17:23
Re: [HELP] Attach And 3DTextLabel - by Sawalha - 11.11.2014, 17:32

Forum Jump:


Users browsing this thread: 1 Guest(s)