Jump to content
  • 0

Bug textdraw


MAXYMUSS

Question

Problema intalnita (descriere): La playeri cu id mai mare de 20 nu le mai apar textdraw .
Ero(area / rile) / warning-(ul / urile): -
Liniile de cod / sursa / script-ul(obligatoriu): -
Imagini / Video (optional): -
Ati incercat sa rezolvati singur?: da , am marit max_players , cele ce tin de textdraw in a_samp etc , am scos filescript ( cine stie .. ) , precizez ca apar de la id 0 pana la 20 dupa 20 nu mai apar , Multumsec !

Link to comment
Share on other sites

18 answers to this question

Recommended Posts

  • 0
  • 0

Am pus max_players 500 si eu am 50 de sloturi 

la public OnGameModeInit() am puse textdraw :

for(new f = 0; f < MAX_PLAYERS; f++)
    {
        Linie[f] = TextDrawCreate(641.529418, 269.833312, "usebox");
        TextDrawLetterSize(Linie[f], 0.000000, 2.470374);
        TextDrawTextSize(Linie[f], -2.000000, 0.000000);
        TextDrawAlignment(Linie[f], 1);
        TextDrawColor(Linie[f], 0);
        TextDrawUseBox(Linie[f], true);
        TextDrawBoxColor(Linie[f], 102);
        TextDrawSetShadow(Linie[f], 0);
        TextDrawSetOutline(Linie[f], 0);
        TextDrawFont(Linie[f], 0);

cam asa am puse textdraw 

Link to comment
Share on other sites

  • 0
  • 0

Am la onplayerconnect , apar textdraw la toti playeri de la id 0 pana la 20 , dupa 20 nu mai apare absolut nici-un textdraw , de ex am id 0-1-2-etc-20 imi apare , am id 21-22-23-etc nu-mi apare textdraw

Link to comment
Share on other sites

  • 0
  • 0

Da text: , pai si unde trebuie sa am textdraw ? , ca la onplayerconnect am :     TextDrawShowForPlayer(extraid, textdraw[extraid]);      

si la ongamemodeinit am textdraw propriu zis ( mecanismul ) , ce nu este bine ?

ele apar dar nu la toti . 

Link to comment
Share on other sites

  • 0
  • 0

Ia-te dupa modelul asta:

new Text:Linie;

public OnGameModeInit()
{
    Linie = TextDrawCreate(0.00, 0.00, "----");
    //any..
    return 1;
}

public OnPlayerConnect(playerid)
{
    TextDrawShowForPlayer(playerid, Linie);
    return 1;
}

 

  • Upvote 1

242086.png

Link to comment
Share on other sites

  • 0

am pus  : 

	new MaxPlayers = GetPlayerPoolSize();
	for(new f=0; f <= MaxPlayers; f++)

si acum apar , sa speram ca functioneaza normal .

asa sunt  new text : new Text:Textdraw[MAX_PLAYERS];

Ia-te dupa modelul asta:

new Text:Linie;

public OnGameModeInit()
{
    Linie = TextDrawCreate(0.00, 0.00, "----");
    //any..
    return 1;
}

public OnPlayerConnect(playerid)
{
    TextDrawShowForPlayer(playerid, Linie);
    return 1;
}

 

am sa fac asa , va multumesc pentru ajutor  , o sa revin cu vesti daca merge sau nu .

Link to comment
Share on other sites

  • 0

Tot nu merg textdraw , dar am pus logo  asa : 

new Text:Linie;

public OnGameModeInit()
{
    Linie = TextDrawCreate(0.00, 0.00, "----");
    //any..
    return 1;
}

public OnPlayerConnect(playerid)
{
    TextDrawShowForPlayer(playerid, Linie);
    return 1;
}

si acela merge , dar merg doar cele care apar la toti la fel fara schimbari , daca pun un textdraw sa apara numele playerului de ex o ia razna , deci posibil sa fie prea multe textdraw ?

Link to comment
Share on other sites

  • 0

Nu am multe , maxim 60 , dar nu apar toate odata .. deci nu asta ar fi problema ca sunt pre multe

edit : 1024 este limita in a_samp ( nemodificat )

Pai nu conteaza cate apar si cate nu, sunt pe partea de server create, deci ai 60 pe un jucator iti mai raman 964 si tot asa.

 

  • Upvote 1
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.