determine numeric value
In C it is pretty simple with few API calls but I'm not sure how to check the same in Pawn. I want to check integer numbers in a user chat. I'm thinking of checking ASCII of char and match accordingly.
Can anyone provide any samples ? |
Re: determine numeric value
Use if equali or containi. Or if it doesnt work, contact layka_LUBII
|
Re: determine numeric value
Maybe you should provide us with examples of what you mean. There is already a function to convert a number string to a number: str_to_num() and str_to_float().
|
Re: determine numeric value
<Player 1> : I'm new to counter strike 1.6. My age is 12 year
On above text I like to check whether there is more than 2 numeric values in the string. Should I loop through all element and check with some api call and increase my counter ? |
Re: determine numeric value
Take a look at the regular expression. http://www.amxmodx.org/funcwiki.php?go=module&id=17
|
| All times are GMT -4. The time now is 10:56. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.