[H3LP] Check portion of mapname
Hello. I know that I can use if(contain(szMap, szCurMap)) , but how can I check exactly for example if I have a map ab1_1_1 and ab2_2_1 the stuff will be executed on both maps, and I only want it to be executed on the map specified in the ini file. If I have specified ab2_2 as the map in the ini file, it should execute on all maps containing only ab2_2 and not also ab2_1. Thanks !
|
Re: [H3LP] Check portion of mapname
Any ideas? I hope that someone will come with a good solution. Basically szMap has a smaller name than szCurMap :)
|
Re: [H3LP] Check portion of mapname
PHP Code:
|
Re: [H3LP] Check portion of mapname
Quote:
This code checks if szCurMap contains szMap at position 0, so the beginning of szCurMap (contain & containi both return the position of where the string was found in the source string): PHP Code:
I hope I understood your problem, if not feel free to share more detailed info. - LegacyCode |
Re: [H3LP] Check portion of mapname
Quote:
|
Re: [H3LP] Check portion of mapname
Quote:
|
| All times are GMT -4. The time now is 17:53. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.