IS_IN_RANGE
#1

Hello,

What should I use to stop using "IS_IN_RANGE"

if(IS_IN_RANGE(string[0], '0', '9'))

Thanks
Reply
#2

What do you mean?
And where did you get the function from?
Reply
#3

i don't see any reason to stop using it, where is the problem? What do you even want to achieve?
Reply
#4

I used it for another server using YSI (https://sampforum.blast.hk/showthread.php?tid=570949) and i'd like to set it in a server which do not use YSI yet. However, i do not remember the symbol.

The aim is to check that in the string there are numbers and if yes using strval
Reply
#5

Make an equivalent?

PHP код:
isCharacterInRange(characterchar1char2)
{
    return (
character <= char2 && character >= char1);

This would work since characters are just numbers afterall (lookup the ascii table)

Or just ****** for a diffrent method?
Reply
#6

...
Quite literally
PHP код:
if('0'<=string[0]<='9'
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)