Map check
Pls tell me how to check for a specific map, I want to give an item in a map
Ex: PHP Code:
|
Re: Map check
Get the map name and then compare it
|
Re: Map check
Seriously... search.
|
Re: Map check
Quote:
Code:
|
Re: Map check
Only enable this plugin on that particular map using the map specific plugin files.
|
Re: Map check
Quote:
Since the get_mapname function should be called only once, it's better to check it only once and save the result in a variable. You also shouldn't make the variable static but rather global and cache it only once; your way re-caches the value in MapName static each time the function is called, so either check if the first symbol has been set with Code:
Or just do it this way, which is overally more efficient: Code:
|
| All times are GMT -4. The time now is 16:16. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.