|
|
#1 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: May 2012
Posts: 508
Reputation: 19
|
PHP Code:
As I am a learner so I needed anybody to explain this code for me,I wanted to learn this codes so please please can anyone explain this for me? ThAnKs! |
|
|
|
|
|
#2 |
|
Big Clucker
![]() ![]() Join Date: Jan 2012
Location: United Kingdom
Posts: 160
Reputation: 21
|
This is an expression to count all the players on the server.
Also, it is: pawn Code:
|
|
|
|
|
|
#3 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: May 2012
Posts: 508
Reputation: 19
|
Can you explain them to me like why do we need this:
PHP Code:
PHP Code:
PHP Code:
|
|
|
|
|
|
#4 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Mar 2012
Location: Gurgaon,India
Posts: 743
Reputation: 137
|
This is a for loop.
There are while and do while loop's as well. What it does is, it first initialize i with 0 and check for condition(in your case i must not be equal to MAX_PLAYERS with is 500). If condition is true, the code is executed. Example pawn Code:
This goes on till i is less than 10 . In 10th eteration i will be 10. So loop stops Code:
//result 0123456789 pawn Code:
This loop is executed only 5 times as at 6th time j will be 15, which is not less than 15. |
|
|
|
|
|
#5 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: May 2012
Posts: 508
Reputation: 19
|
Ohh tHaNkS!
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Quick explanation | Crayon | Help Archive | 3 | 16/10/2010 05:12 AM |
| [Help]with an explanation | Mark k | Help Archive | 9 | 09/03/2010 03:43 PM |
| Little Explanation | cloud9 | Help Archive | 1 | 21/07/2009 03:26 PM |
| Explanation ? | Bearfist | Help Archive | 8 | 25/04/2009 10:32 PM |
| Timer explanation. | MiTaKa | Help Archive | 7 | 04/04/2009 10:55 AM |