some errors
#6

You should either add those stock at the bottom of the script:
pawn Код:
stock strtok(const string[], &index)
{
    new length = strlen(string);
    while ((index < length) && (string[index] <= ' '))
    {
        index++;
    }

    new offset = index;
    new result[20];
    while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
    {
        result[index - offset] = string[index];
        index++;
    }
    result[index - offset] = EOS;
    return result;
}

stock isNumeric(const string[])
{
  new length=strlen(string);
  if (length==0) return false;
  for (new i = 0; i < length; i++)
    {
      if (
            (string[i] > '9' || string[i] < '0' && string[i]!='-' && string[i]!='+') // Not a number,'+' or '-'
             || (string[i]=='-' && i!=0)                                             // A '-' but not at first.
             || (string[i]=='+' && i!=0)                                             // A '+' but not at first.
         ) return false;
    }
  if (length==1 && (string[0]=='-' || string[0]=='+')) return false;
  return true;
}
and have them only ONCE in the script and don't include gl_common.inc at all..

Or:
pawn Код:
#include "../include/gl_common.inc"
under including a_samp and remove any code you define those symbols.
Reply


Messages In This Thread
some errors - by Stgnature - 29.11.2013, 12:05
Re: some errors - by xVIP3Rx - 29.11.2013, 12:06
Re: some errors - by Stgnature - 29.11.2013, 12:12
Re: some errors - by xVIP3Rx - 29.11.2013, 12:17
Re: some errors - by Stgnature - 29.11.2013, 12:18
Re: some errors - by Konstantinos - 29.11.2013, 12:23
Re: some errors - by xVIP3Rx - 29.11.2013, 12:32

Forum Jump:


Users browsing this thread: 2 Guest(s)