(help)store floating variable to array
#6

Quote:
Originally Posted by Virtual1ty
Посмотреть сообщение
Just make a simple variable(called an array, actually) that holds MAX_PLAYERS items. You can still keep the "bool:" tag if you wish.
Also, be sure to declare it outside any function or callback (global variable).
Example:
pawn Код:
new bool:dead[MAX_PLAYERS];
// And you use it like e.g. dead[playerid] under OnPlayerDeath
// The way you have it now will only ever work for one player alone
Okay, got it. Thank you.
Reply


Messages In This Thread
(help)store floating variable to array - by GianYagami - 01.01.2015, 22:55
Re: (help)store floating variable to array - by AndySedeyn - 01.01.2015, 23:04
Re: (help)store floating variable to array - by Virtual1ty - 01.01.2015, 23:38
Re: (help)store floating variable to array - by GianYagami - 02.01.2015, 00:26
Re: (help)store floating variable to array - by Virtual1ty - 02.01.2015, 19:54
Re: (help)store floating variable to array - by GianYagami - 06.01.2015, 18:55

Forum Jump:


Users browsing this thread: 1 Guest(s)