Raised This Month: $ Target: $400
 0% 

Variables


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 05-09-2012 , 12:59   Re: Variables
Reply With Quote #1

PHP Code:
new array[4]
 
new 
current_valuemax_value
for(current_value=0;current_value<4;current_value++) if(array[current_value] > array[max_value]) max_value current_value 
__________________
<VeCo> is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 05-09-2012 , 13:13   Re: Variables
Reply With Quote #2

Quote:
Originally Posted by <VeCo> View Post
PHP Code:
new array[4]
 
new 
current_valuemax_value
for(current_value=0;current_value<4;current_value++) if(array[current_value] > array[max_value]) max_value current_value 
can you do that with this code and explain me what it means, cuz i don't get it actually.
PHP Code:
public game_handler(idmenuitem) {
    if(
item == MENU_EXIT) {
        
menu_destroy(menu)
        return 
PLUGIN_HANDLED
    
}
    
    if(
is_user_alive(id)) {
        switch(
item) {
            case 
0szNoScope++
            case 
1szNormal++
            case 
2szGravity++
            case 
3szVip++
        }
    }
}

public 
Cmd_EndVote(id) {
    if(
szNoScope 
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Reply



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 00:28.


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