Raised This Month: $ Target: $400
 0% 

For cycle


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
KamiN
Senior Member
Join Date: Jun 2011
Old 12-11-2011 , 06:20   For cycle
Reply With Quote #1

Witch one is better??

Code:
    new name[33]; get_user_name(id, name, charsmax(name))
 
    for(new i = 1; i < g_max_clients; i++)
    {
To give a gun to a player i would have to write
Code:
give_item(i, "weapon_deagle")


--

Code:
    new players[32], num
   
    get_players(players, num, "a")  // It returns all alive players? I mean both teams, CTs and Ts?

 
    for(new i; i < num; i++) 
    {
To give a gun to a player i should write this
Code:
give_item(players[i], "weapon_deagle")



or this
Code:
give_item(i, "weapon_deagle")

?



KamiN is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:05.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode