RSSy MYGO.pl Opublikowano Sierpień 12, 2021 o 22:23 RSSy Udostępnij Opublikowano Sierpień 12, 2021 o 22:23 which function is better and why or if someone could tell me an example when it would be better to use one than the other: Function_1 or Function_2 PHP Code: public Function_1() { for ( new Player = 1;Player <= MaxClients; Player++ ) { if ( is_user_alive(Player) ) { rg_remove_all_items(Player); rg_give_default_items(Player); } } } public Function_2() { new Players[MAX_PLAYERS],Player,Num; get_players_ex(Players, Num, GetPlayers_ExcludeHLTV); for ( new i;i < Num; i++ ) { Player = Players[i]; if ( is_user_alive(Player) ) { rg_remove_all_items(Player); rg_give_default_items(Player); } } } Przeczytaj cały wpis Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi