How do i check if a map contains a word?[SOLVED]
Hi, how do i check if a mapname contains "jb"?
Like: If the map is de_dust2, it will return PLUGIN_HANDLED, but if the map is jb_russia_v1, then it will return whatever code i put in there. I prefer a very despritive answer.. I have tested with get_mapname and contain and containi, so i need more description on how to use those. |
Re: How do i check if a map contains a word?
PHP Code:
|
Re: How do i check if a map contains a word?
Quote:
Code:
|
Re: How do i check if a map contains a word?
Thanks guys :P Ill give it a try asap.
|
Re: How do i check if a map contains a word?
63 -> charsmax() and no need for it to be global unless its being used elsewhere
|
Re: How do i check if a map contains a word?
charsmax/sizeof are coding styles and aren't required.
It's only necessary to use those if the variables are going to be resized. In this case, the size is known and isn't be a problem. |
Re: How do i check if a map contains a word?
@Bugsy , the one u gave i KNOW doesnt work because i tested it before posting this thread :P
|
Re: How do i check if a map contains a word?
Quote:
|
Re: How do i check if a map contains a word?
wrecked_,
acutally it was like this: If the map was a jb_ map it would be a vip shop with jb items in it, if it wasnt it would be a vip shop with other items. Anyways, exolents code ALMOST worked :P PHP Code:
PHP Code:
|
Re: How do i check if a map contains a word?
Quote:
|
| All times are GMT -4. The time now is 07:19. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.