: fatal error 100: cannot read from file: "gl_common" (POWNO)
#1

D:\GTA San Andreas\Gamemodes\newcnr.pwn(7) : fatal error 100: cannot read from file: "gl_common"

errr? How 2 fix?
Reply
#2

It should be included like this :
pawn Код:
#include "../include/gl_common.inc"
or just put the gl_common inc in your pawno/include file.
Reply
#3

I put the file in my pawno/include and i ahve 7 erros now i was @ 19 then 1 now 7 lol...,
Reply
#4

Quote:
Originally Posted by ViruZZzZ_ChiLLL
It should be included like this :
pawn Код:
#include "../include/gl_common.inc"
or just put the gl_common inc in your pawno/include file.
Use that if you are using the root of the server\Includes

But if you are Using from pawno,

#include <gl_commons>
Reply
#5

I ca use ither 1 but i stil have this

Код:
../include/gl_common.inc(116) : error 021: symbol already defined: "isNumeric"
D:\GTA San Andreas\Gamemodes\newcnr.pwn(845) : warning 202: number of arguments does not match definition
D:\GTA San Andreas\Gamemodes\newcnr.pwn(847) : warning 202: number of arguments does not match definition
D:\GTA San Andreas\Gamemodes\newcnr.pwn(849) : warning 202: number of arguments does not match definition
D:\GTA San Andreas\Gamemodes\newcnr.pwn(851) : warning 202: number of arguments does not match definition
D:\GTA San Andreas\Gamemodes\newcnr.pwn(853) : warning 202: number of arguments does not match definition
D:\GTA San Andreas\Gamemodes\newcnr.pwn(855) : warning 202: number of arguments does not match definition
D:\GTA San Andreas\Gamemodes\newcnr.pwn(857) : warning 202: number of arguments does not match definition
D:\GTA San Andreas\Gamemodes\newcnr.pwn(859) : warning 202: number of arguments does not match definition
D:\GTA San Andreas\Gamemodes\newcnr.pwn(860) : warning 202: number of arguments does not match definition
D:\GTA San Andreas\Gamemodes\newcnr.pwn(862) : warning 202: number of arguments does not match definition
D:\GTA San Andreas\Gamemodes\newcnr.pwn(864) : warning 202: number of arguments does not match definition
D:\GTA San Andreas\Gamemodes\newcnr.pwn(866) : warning 202: number of arguments does not match definition
D:\GTA San Andreas\Gamemodes\newcnr.pwn(868) : warning 202: number of arguments does not match definition
D:\GTA San Andreas\Gamemodes\newcnr.pwn(870) : warning 202: number of arguments does not match definition
D:\GTA San Andreas\Gamemodes\newcnr.pwn(1927) : error 047: array sizes do not match, or destination array is too small
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
In That gl_ file i took out
Код:
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 when i compile i only have 1 error:

Код:
D:\GTA San Andreas\Gamemodes\newcnr.pwn(845) : warning 202: number of arguments does not match definition
D:\GTA San Andreas\Gamemodes\newcnr.pwn(847) : warning 202: number of arguments does not match definition
D:\GTA San Andreas\Gamemodes\newcnr.pwn(849) : warning 202: number of arguments does not match definition
D:\GTA San Andreas\Gamemodes\newcnr.pwn(851) : warning 202: number of arguments does not match definition
D:\GTA San Andreas\Gamemodes\newcnr.pwn(853) : warning 202: number of arguments does not match definition
D:\GTA San Andreas\Gamemodes\newcnr.pwn(855) : warning 202: number of arguments does not match definition
D:\GTA San Andreas\Gamemodes\newcnr.pwn(857) : warning 202: number of arguments does not match definition
D:\GTA San Andreas\Gamemodes\newcnr.pwn(859) : warning 202: number of arguments does not match definition
D:\GTA San Andreas\Gamemodes\newcnr.pwn(860) : warning 202: number of arguments does not match definition
D:\GTA San Andreas\Gamemodes\newcnr.pwn(862) : warning 202: number of arguments does not match definition
D:\GTA San Andreas\Gamemodes\newcnr.pwn(864) : warning 202: number of arguments does not match definition
D:\GTA San Andreas\Gamemodes\newcnr.pwn(866) : warning 202: number of arguments does not match definition
D:\GTA San Andreas\Gamemodes\newcnr.pwn(868) : warning 202: number of arguments does not match definition
D:\GTA San Andreas\Gamemodes\newcnr.pwn(870) : warning 202: number of arguments does not match definition
D:\GTA San Andreas\Gamemodes\newcnr.pwn(1927) : error 047: array sizes do not match, or destination array is too small
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#6

Uhhh.. Maybe try to remove the stock IsNumeric
and then just include the gl_common.
Reply
#7

POWNO
Reply
#8

How what where?
Reply
#9

I'm Glad Because of Scripting Me Working

Thanks Man.

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Reply
#10

Quote:
Originally Posted by Asphira Andreas Rechta
Посмотреть сообщение
I'm Glad Because of Scripting Me Working

Thanks Man.

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Why did you just bump this ?
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)