need help with 3dtextlabel
#1

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

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.
Reply
#3

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 : )
Reply
#4

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]);
    }
}
Reply
#5

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 : ))
Reply
#6

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)