3dText Problems still.
#6

Quote:
Originally Posted by iggy1
Посмотреть сообщение
That probably wont work either check my post. https://sampforum.blast.hk/showthread.php?tid=207599

code in the link:
pawn Код:
new Text3D:ij_viptitles[MAX_PLAYERS];//global
new ij_hastitle[MAX_PLAYERS];// "   "

COMMAND:viptitle(playerid, params[])
{
    if(ij_vipdata[playerid][ij_viplogged])
    {
        if(isnull(params))return SendClientMessage(playerid,LRED,"ERROR: Usage /viptitle [title/name]");
        else if(strlen(params) > 25)return SendClientMessage(playerid,LRED,"ERROR: That title is too long max length is 25");
        else
        {
            SendClientMessage(playerid, GREEN, "Use /titleoff to remove your title");
            if(ij_hastitle[playerid] == 1)
                return Update3DTextLabelText(ij_viptitles[playerid], ORANGE, params);
            else
            {
                new
                    Float:x,
                    Float:y,
                    Float:z;
                GetPlayerPos(playerid, x, y, z);
                ij_viptitles[playerid] = Create3DTextLabel(params,ORANGE, x, y, z, 50.0, GetPlayerVirtualWorld(playerid), 0);
                Attach3DTextLabelToPlayer(ij_viptitles[playerid], playerid, 0.0, 0.0, 0.5);//if i comment this line the 3d text is created
                ij_hastitle[playerid] = 1;                                                 //at the players location. (static)
                return 1;
            }
        }
    }
    else SendClientMessage(playerid,LRED,"You Don't Have Permission To Use That Command");
    return 1;
}
Nothing wrong with that that i can see but it doesnt work. (the vip check works ok its nothing to do with that)

Still waiting for an answer...
More bugs. *sigh*
Reply


Messages In This Thread
3dText Problems still. - by Skylar Paul - 18.05.2011, 19:39
Re: 3dText Problems still. - by Skylar Paul - 19.05.2011, 19:11
Re: 3dText Problems still. - by sansko - 19.05.2011, 19:59
Re: 3dText Problems still. - by MadeMan - 19.05.2011, 20:20
Re: 3dText Problems still. - by iggy1 - 19.05.2011, 20:22
Re: 3dText Problems still. - by Skylar Paul - 19.05.2011, 23:12
Re: 3dText Problems still. - by PotH3Ad - 20.05.2011, 00:30
Re: 3dText Problems still. - by Skylar Paul - 20.05.2011, 19:20

Forum Jump:


Users browsing this thread: 1 Guest(s)