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.
__________________