13.03.2017, 09:38
Quote:
Where are those indentation problems? I got no warnings in the compiler
|
Code:
if(FalloutPlayers == 1) //Checking if there's 1 player remaining { for ( new z; z < MAX_PLAYERS; z++) { if(FalloutPlayer[z] == 1) //Checking if he's a fallout player { SendClientMessage(z,Green,"Congratz, you're the last man standing on the platform, you won! And you got some extra money for it!"); //Let's send him a message GivePlayerMoney(z,MONEY); //Give him the money for the victory you can change it from the top of the Filterscript SpawnPlayer(z); //Spawn him SetPlayerVirtualWorld(z,0); //Reset his virtual world //Reset everything for a new run FalloutPlayer[z] = 0; FalloutStarted = 0; FalloutPlayers = 0; SetTimer("RegenPlatforms",5000,0); //Let's recreate all the platforms in 20 seconds meanwhile they get destroyed and recreated //Now let's destroy all objects and reset them for(new o=0;o<sizeof(PlatformObject);o++) //Cycle to get all the objects { if(IsValidObject(PlatformObject[o])) //Then destroy it { DestroyObject(PlatformObject[o]); } } } } }