[FilterScript] Simple Fallout Minigame
#5

Quote:
Originally Posted by Jelly23
View Post
256 cells? That is a waste.
PHP Code:
new string[256];
format(string,sizeof(string),"The Fallout event is about to start in %d minute(s), join it by typing '/joinfallout'",EVENT_START); //let's send everyone a string with the time until start and the join command 
Uh? What? 128 cells for a name?
PHP Code:
new name[128];
GetPlayerName(i,name,128); 
This:
PHP Code:
new FalloutPlayer[MAX_PLAYERS]; //Player Variable that let us know if the player is inside the event or not
new FalloutStarted 0//Global Variable to know if the Event has started or not
new FalloutPlayers 0//Global Variable to know how much players we have in the event, if < 1 the event will NOT start.
new FalloutWaiting 0//Global variable to know if we're waiting for the event to start or not 
Could be like this:

PHP Code:
new FalloutPlayer[MAX_PLAYERS], //Player Variable that let us know if the player is inside the event or not
FalloutStarted 0//Global Variable to know if the Event has started or not
FalloutPlayers 0//Global Variable to know how much players we have in the event, if < 1 the event will NOT start.
FalloutWaiting 0//Global variable to know if we're waiting for the event to start or not 
Code optimization is not my best thing atm, thank you for the tips

EDIT: Added the version with less cells on strings
Reply


Messages In This Thread
Simple Fallout Minigame - by Flamehaze7 - 12.03.2017, 21:12
Re: Simple Fallout Minigame - by Roozevelt - 12.03.2017, 21:17
Re: Simple Fallout Minigame - by Flamehaze7 - 12.03.2017, 21:29
Re: Simple Fallout Minigame - by Jelly23 - 12.03.2017, 21:33
Re: Simple Fallout Minigame - by Flamehaze7 - 12.03.2017, 21:35
Re: Simple Fallout Minigame - by Infinity - 13.03.2017, 00:15
Re: Simple Fallout Minigame - by Flamehaze7 - 13.03.2017, 00:41
Re: Simple Fallout Minigame - by Infinity - 13.03.2017, 09:38
Re: Simple Fallout Minigame - by Flamehaze7 - 13.03.2017, 10:06
Re: Simple Fallout Minigame - by Infinity - 13.03.2017, 10:19

Forum Jump:


Users browsing this thread: 2 Guest(s)