how to allow only character and number in string
#4

Limit text to 6 characters long (RRGGBB) and check if it is a hex number:
pawn Код:
// example:
new colour;
if (strlen(inputtext) == 6 && !sscanf(inputtext, "x", colour))
{
    // your code
}
Reply


Messages In This Thread
how to allow only character and number in string - by 3417512908 - 24.09.2018, 06:39
Re: how to allow only character and number in string - by Logic_ - 24.09.2018, 06:46
Re: how to allow only character and number in string - by 3417512908 - 24.09.2018, 06:52
Re: how to allow only character and number in string - by Calisthenics - 24.09.2018, 06:55
Re: how to allow only character and number in string - by 3417512908 - 24.09.2018, 07:02
Re: how to allow only character and number in string - by 3417512908 - 24.09.2018, 09:28

Forum Jump:


Users browsing this thread: 1 Guest(s)