Map Tiers Length problem
1 Attachment(s)
Hello. I would like to add Length. but for some reason it's not good. What could be the problem?
Code:
#include <amxmodx>Code:
maptiers.ini |
Re: Map Tiers Length problem
Are you trying to return text (string) or numbers about the Lenght?
In case of numbers, replace %s by %d We could not load your plugin so we cannot check it. |
Re: Map Tiers Length problem
1 Attachment(s)
Quote:
Code:
#include <amxmodx>Code:
[en]Code:
hb_dropzone Easy Shorthttps://forums.alliedmods.net/showth...highlight=tier |
Re: Map Tiers Length problem
"\w" in Regex is not for white space, it is for word characters (equivalent to "[a-z_]"). I would recommend that your INI file be the more traditional key-value pairs using "=" (like you see in the lang files). Then, you can get rid of regex entirely and just split based on "=", then trim each side and validate that the right side is not an empty string before using it. This will also be much more efficient.
If you do use regex for some reason, you don't need any of the parentheses if you're not actually using submatches or regex patterns that actually require them (which you aren't using). |
Re: Map Tiers Length problem
Quote:
|
Re: Map Tiers Length problem
The simplest way is to do the following:
|
| All times are GMT -4. The time now is 23:53. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.