SA-MP Forums Archive
Using for in Textdraws? - 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: Using for in Textdraws? (/showthread.php?tid=420585)



Using for in Textdraws? - Saw® - 05.03.2013

Hey , I'm only asking if it's possible to use the loop for(...) in textdraws ? if yes what is the correct way to do it?


Re : Using for in Textdraws? - Shidony - 05.03.2013

What do you want to do with ? Yes it's surely possible


Re: Using for in Textdraws? - Saw® - 05.03.2013

yea like for example showing the kills of every player in a moment (we surely need the for to get all players no?)


Re : Using for in Textdraws? - Shidony - 05.03.2013

Yes, you can use the for loop and send the TextDraw to all players.


Re: Using for in Textdraws? - Saw® - 05.03.2013

thanks , but I wanna do like this:
pawn Код:
for function
String showing player 1 with his kills ==>back to new line
other string with player 2....
last player
don't think it could be done ,but will find something related to this...


Re : Using for in Textdraws? - Shidony - 05.03.2013

Ah you want to send a different textdrawn to all players at the same time ? It's possible, you can create a public which contains the textdraws and then activate it like that

pawn Код:
ShowScores(i)



Re: Using for in Textdraws? - Saw® - 05.03.2013

Merci ! good idea