Posts: 1,530
Threads: 16
Joined: Feb 2011
Reputation:
0
your computer can do only one operation at a time... so when you do a loop... until the computer is looping he cant do anithing else...
i'm brazilian...i hope u understand
@edit a loop usually takes less then 1 sec but if you do some huge thing in the loop like save 500 accounts... this can take more than seconds to finish
Posts: 1,197
Threads: 213
Joined: Feb 2011
Reputation:
0
I guess if you call a function that sends a message to every player online and there's 500 players online and it takes 5 seconds to send it to each player, it's gonna take 500 x 5 seconds, and then if you call another function after 10 seconds, it won't execute.. because the first function hasn't finished. Understand that?
Posts: 1,250
Threads: 92
Joined: Mar 2011
Reputation:
0
I assume these are some basic explanations. And Yeah I understand both of them.
Is there anyone else having more detailed ones?
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
Pawn is single threaded, meaning it can only do one thing at a time. Execute a function, then sync the players, the execute another function and sync the players again ... It can't execute a function while it's syncing, for example.