[SOLVED] Function for new map[ 32 ] ?!
What does really the function:
PHP Code:
|
Re: Function for new map[ 32 ] ?!
It's not a function. You declare and initialize a variable named "map". It creates an array of 32 cells. An array index start to 0. eg: if you save the string "de_dust2" in this variable, map will contain the string like that :
0 : d 1 : e 2 : _ 3 : d 4 : u 5 : s 6 : t 7 : 2 etc.. I'm bad to explain, see this tuto : http://forums.alliedmods.net/showthread.php?t=94381 |
Re: Function for new map[ 32 ] ?!
Variable, string.
|
Re: Function for new map[ 32 ] ?!
|
Re: Function for new map[ 32 ] ?!
ah, thanks now I understand it :)
I wanted to run the plugin only on that map and added this after register_plugin: PHP Code:
Quote:
|
Re: Function for new map[ 32 ] ?!
More code ..
Also make array size to 1 char more (11), overthise it wont run the code in that if() |
Re: Function for new map[ 32 ] ?!
solved, thanks :)
I forgot to add another } |
Re: [SOLVED] Function for new map[ 32 ] ?!
You should really to take a look at the tutos section. ;)
|
Re: [SOLVED] Function for new map[ 32 ] ?!
:)) he forgot to add an }
he had : Code:
|
| All times are GMT -4. The time now is 22:38. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.