Jump to content
  • 0

Problema cu Jucatorii conectati



Problema intalnita (descriere): Am gasit pe net un tutorial, Textdraw cu jucatorii conectati pe server. l-am pus merge tot,ok.
Ero(area / rile) / warning-(ul / urile):Insa, problema este ca, de ex. daca intra 4 playeri si dupa iese unul, arata tot ca is 4...
Liniile de cod / sursa / script-ul(obligatoriu): http://i.imgur.com/ZqP1suK.png
Imagini / Video (optional): 
Ati incercat sa rezolvati singur?:Am cautat pe internet... nu stiu ce sa pun..

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0

Pune la onplayerdisconnect

       foreach(Player, i)
        new strings[15];
	format(strings, 15, "%d/50",GetOnLinePlayers());
	TextDrawSetString(players, strings);
	TextDrawShowForPlayer(i, players);



Edited by [RW]Robi




Link to comment
Share on other sites

  • 0

Defineste variabila OnLine la nivel global, adica pune-o undeva in partea de sus a gamemode-ului, sa nu fie in nici o functie . Apoi, la OnPlayerDisconnect adaugi linia : OnLine--; si pui textdraw-ul acolo, inca o data, ca sa se updateze.

Link to comment
Share on other sites

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.