16.10.2009, 07:21
I am guessing you are using strval in these functions? is that so? Well, here is a work around for it:
All this function does is count if the string is longer then 40, e.g. 40 numbers in this case. If it is, it will return 0, meaning the result for you will be 0. If it isn't, it will return the number the user has entered. You can shorten this at any time, as you desire its needs.
pawn Code:
stock strvalEx(const string[])
{
if(strlen(string)>40)
{
return 0;
}
return strval(string);
}