[Help]Why does ppl use this and when?
Why does ppl making things like
PHP Code:
:crab::crab::crab::crab: |
Re: [Help]Why does ppl use this and when?
It is just a multi-dimensional array. There are many uses for them. Commonly in Pawn they are used for arrays of strings (since a string is just an array of characters).
Code:
new strings[][] = { |
Re: [Help]Why does ppl use this and when?
Quote:
PHP Code:
is it same? |
Re: [Help]Why does ppl use this and when?
33 is the amount of cells that it has, or the number or items that it can hold. Since CS 1.6 servers can only have a max of 32 players, they make it 33 ( 32 + 1 ). Player id's cannot be 0, where the array starts at, so they want to be able to just use an id as is, instead of having to do id - 1
|
Re: [Help]Why does ppl use this and when?
Quote:
So, in a function they can retrieve a number stored for that person: PHP Code:
|
Re: [Help]Why does ppl use this and when?
Tnx all
|
| All times are GMT -4. The time now is 23:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.