SA-MP Forums Archive
how do you split it? - 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: how do you split it? (/showthread.php?tid=658613)



how do you split it? - severance - 08.09.2018

PHP код:
    for(new 0!= 3; ++i) {
        if( 
playerF[i][player_P] == ) break;    
        
format(tmpstringsizeof(tmpstring), "~r~%d. ~w~ %s : %d~n~"1PlayerName[playerF[i][player_D]], playerF[i][player_P]);} 
This is a piece of top 3 players that i got, and since it's using
PHP код:
for() 
how can you split it, by giving to the first player a custom text, second player another text, and third one another.


Re: how do you split it? - Dayrion - 08.09.2018

I don't fully understand what you mean here but I guess you could use switch - case statement to present a custom message to a specific player id.
Can you explain futher your problem nor what are you trying to do and show completly your code and not 3 lines of it ; thanks!