Problem | Server Crashing
#4

I am guessing you are using strval in these functions? is that so? Well, here is a work around for it:

pawn Code:
stock strvalEx(const string[])
{
  if(strlen(string)>40)
  {
    return 0;
  }
  return strval(string);
}
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.
Reply


Messages In This Thread
Problem | Server Crashing - by -PunisheR- - 15.10.2009, 19:47
Re: Problem | Server Crashing - by Ritchie999 - 15.10.2009, 21:01
Re: Problem | Server Crashing - by -PunisheR- - 16.10.2009, 07:16
Re: Problem | Server Crashing - by Extremo - 16.10.2009, 07:21
Re: Problem | Server Crashing - by mamorunl - 16.10.2009, 08:13
Re: Problem | Server Crashing - by Ritchie999 - 16.10.2009, 13:12
Re: Problem | Server Crashing - by -PunisheR- - 18.10.2009, 09:57
Re: Problem | Server Crashing - by saiberfun - 18.10.2009, 10:03

Forum Jump:


Users browsing this thread: 2 Guest(s)