SA-MP Forums Archive
the position - 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: the position (/showthread.php?tid=493094)



the position - сан саныч - 07.02.2014

hello, how to calculate the position of the player in a race?

PHP код:
public OnPlayerEnterRaceCheckpoint(playerid)
{
    
player_point [playerid]++;
    
format (stringstring"you position %i/%i", ??, playersInRace());
    return 
1;
}
playersInRace() //returns the number of players in a race
player_point [playerid];// passed сheckpoint
MAX_Checkpoint //the number of all the checkpoint race 
how to do it using floatround? not necessarily code verbal explanation will help, thanks

sorry for bad English=)


Re: the position - сан саныч - 07.02.2014

I can not edit posts.
I will add.....how to do it using floatround? not necessarily code verbal explanation will help