• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] Help with race
#8
(2020-11-06, 07:38 PM)FeNiixX Wrote:
(2020-11-06, 12:23 PM)Pinch Wrote:
(2020-11-06, 11:20 AM)dwp12345 Wrote: if(RaceStarted == true)

{

? ? ? ? ?for(new i = 0 i < MAX_PLAYERS; i )

? ? ? ? ?{

? ? ? ? ? ? ? ? If(IsPlayerConnected(i) && PlayerOnRace[playerid] == true)

? ? ? ? ? ? ? ? {

? ? ? ? ? ? ? ? ? ? ? ? ? ?new rand =?Random(i);

? ? ? ? ? ? ? ? ? ? ? ? ? ?TogglePlayerSpectating(playerid,1);? ?


? ? ? ? ? ? ? ? ? ? ? ? ? ?PlayerSpectatePlayer(playerid,rand);



? ? ? ? ? ? ? ? }

? ? ? ? ?}

}

else if(RaceStarted == false)

{

// enter race code

}

This is just...no...??







Which one should work?

If you're using mine, it should work if you have YSI included, their solution is terrible and it won't work at al...



Just be smart and cautious while using mine because you need to handle iterators
Using Pawn.CMD?

If you're doing so, this is the very first sign that you absolutely shouldn't utilize your all powerful P-Code knowledge in any of the scripting discussion topics.
  Reply


Messages In This Thread
Help with race - by FeNiixX - 2020-11-05, 07:30 AM
RE: Help with race - by dwp12345 - 2020-11-06, 05:08 AM
RE: Help with race - by FeNiixX - 2020-11-06, 06:37 AM
RE: Help with race - by Pinch - 2020-11-06, 11:04 AM
RE: Help with race - by dwp12345 - 2020-11-06, 11:20 AM
RE: Help with race - by Pinch - 2020-11-06, 12:23 PM
RE: Help with race - by FeNiixX - 2020-11-06, 07:38 PM
RE: Help with race - by Pinch - 2020-11-06, 07:48 PM
RE: Help with race - by FeNiixX - 2020-11-06, 08:32 PM

Forum Jump: