SA-MP Forums Archive
need help with 3dtextlabel - 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: need help with 3dtextlabel (/showthread.php?tid=338205)



need help with 3dtextlabel - basicllsw - 29.04.2012

i use 3dtextlabel to attach player information but if maxplayer is over 60 or 70 any 3dtext but can't see

i don't know why it's happen? anyone can help me for this?



ps. sorry for my bad english : )


Re: need help with 3dtextlabel - iggy1 - 29.04.2012

You do know if you attach 3DText to yourself, only other players can see it and you can't?

If you know this i haven't got a clue why they are not showing.

I would ask are you using too many 3DText, but i just looked on the wiki https://sampwiki.blast.hk/wiki/Limits. I doubt you have more than 1024 3DTextLabels.


Re: need help with 3dtextlabel - basicllsw - 30.04.2012

yes i know how to see it but it's my server is maxplayer >70 3dtext is can't see for everyone

i use this function

ongamemodeint
{
create3dtext(text[playerid]);

if show3dtext[playerid] == 0 //on playerspawn
{
attach3dtexttoplayer(text[playerid]);
}

on playerdisconnect
{
delete3dtext[text] playerid;
}

and public check 3dtext every 1000 ms;

what wrongs??


ps sorry for my bad english : )


Re: need help with 3dtextlabel - warcodes_ - 30.04.2012

I doubt anyone will be online when OnGameModeInit is called(And that callback don't use playerid, so where is the errors?)

Try this:

Код:
for(new i; i < MAX_PLAYERS; i++)
{
    create3dtext(text[i]);
    if(show3dtext[i] == 0)
    {
        attach3dtexttoplayer(text[i]);
    }
}



Re: need help with 3dtextlabel - basicllsw - 30.04.2012

Quote:
Originally Posted by warcodes_
Посмотреть сообщение
I doubt anyone will be online when OnGameModeInit is called(And that callback don't use playerid, so where is the errors?)

Try this:

Код:
for(new i; i < MAX_PLAYERS; i++)
{
    create3dtext(text[i]);
    if(show3dtext[i] == 0)
    {
        attach3dtexttoplayer(text[i]);
    }
}
sorry i'm create 3dtext in public onplayerlogin(playerid)

ps i'm use gf gamemode : ))


Re: need help with 3dtextlabel - iggy1 - 30.04.2012

Quote:
Originally Posted by basicllsw
Посмотреть сообщение
ps i'm use gf gamemode : ))
Well then, don't be suprised if it breaks when you edit it. That mode wasn't made to be edited. Change one thing the rest f**ks up.