Get current Map and use 'if'
Hello everybody,
today i want to do something like: PHP Code:
So what do i do to correct this ? |
Re: Get current Map and use 'if'
Code:
|
Re: Get current Map and use 'if'
You cannot use == operator with strings. Use equal(), equali(), contain(), containi() functions.
|
Re: Get current Map and use 'if'
ahhh yes i forgot that x).
Thanks :D |
Re: Get current Map and use 'if'
To be more specific:
if(equali(szMapName, "de_", 3)) It only checks the first three characters (for example, "de_", not the whole map name "de_inferno"). |
Re: Get current Map and use 'if'
Quote:
You forget to close the parentheses in both "if" t3hNox code is fine. |
Re: Get current Map and use 'if'
Quote:
|
Re: Get current Map and use 'if'
Code:
|
Re: Get current Map and use 'if'
Quote:
|
Re: Get current Map and use 'if'
But that way it would be more efficiant, wouldnt it? :)
|
| All times are GMT -4. The time now is 15:19. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.