Raised This Month: $ Target: $400
 0% 

question about functions


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 06-22-2010 , 20:15   question about functions
Reply With Quote #1

I have a question about calling a function from another function.
I don't know how i can explain it well, so i'll make an example.


Code:
public client_connect(id)
{
    check_something(id) // This is called. 
    
    client_print(id, print_chat, "some stuff");
}

public check_something(id)
{
    // do some stuff here.
}
My question is the order the code works in:
is it like:

- client connects
- client_connect is called
- client_connect calls check_something and waits
- check_something does something
- client_connect prints the msg

or like this:

- client connects
- client_connect is called
- client_connect calls check_something and prints the message
- check_something does something

This may be a stupid question, but i need the answer for a plugin i'm making.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
 



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 14:45.


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