SA-MP Forums Archive
fatal error 100: cannot read from file: "my" - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: fatal error 100: cannot read from file: "my" (/showthread.php?tid=441692)



fatal error 100: cannot read from file: "my" - HardRock - 03.06.2013

pawn Code:
(3) : fatal error 100: cannot read from file: "my"
pawn Code:
#include <my>
And if i delete this then i got these errors:

pawn Code:
(2069) : error 017: undefined symbol "IsPlayerInSphere"
(2129) : error 017: undefined symbol "IsPlayerInSphere"
(2163) : error 017: undefined symbol "IsPlayerInSphere"
(2170) : error 017: undefined symbol "IsPlayerInSphere"
(2177) : error 017: undefined symbol "IsPlayerInSphere"
(2184) : error 017: undefined symbol "IsPlayerInSphere"
(2191) : error 017: undefined symbol "IsPlayerInSphere"
(2245) : error 017: undefined symbol "IsPlayerInSphere"
(2252) : error 017: undefined symbol "IsPlayerInSphere"
(2544) : error 017: undefined symbol "IsPlayerInSphere"
(2552) : error 017: undefined symbol "IsPlayerInSphere"
(2557) : error 017: undefined symbol "IsPlayerInSphere"
(2565) : error 017: undefined symbol "IsPlayerInSphere"
(2573) : error 017: undefined symbol "IsPlayerInCircle"
(2580) : error 017: undefined symbol "IsPlayerInSphere"
(2588) : error 017: undefined symbol "IsPlayerInSphere"
(2593) : error 017: undefined symbol "IsPlayerInSphere"
(2601) : error 017: undefined symbol "IsPlayerInSphere"
(2609) : error 017: undefined symbol "IsPlayerInCircle"
(3321) : error 017: undefined symbol "IsPlayerInSphere"
(5135) : error 017: undefined symbol "IsPlayerInSphere"
(5148) : error 017: undefined symbol "IsPlayerInSphere"
(5382) : error 017: undefined symbol "IsPlayerInSphere"
(6159) : error 017: undefined symbol "IsPlayerInSphere"
(6609) : error 017: undefined symbol "IsPlayerInSphere"
(6642) : error 017: undefined symbol "IsPlayerInSphere"
I am using this GM: https://sampforum.blast.hk/showthread.php?tid=250770


Re: fatal error 100: cannot read from file: "my" - DeMoX - 03.06.2013

1.Extract the server [Country side RP(C-S-RP)]
2.Copy pawno => includes(from C-S-RP) to pawno => includes (Your server:Pawn folder)
3.Run it now, it will work.

It's not working because you run the game-mode from your pawn server and there's no my.inc on your server includes.

++You can run the server from C-S-RP pawno & it'll work on that case too.


Re: fatal error 100: cannot read from file: "my" - HardRock - 03.06.2013

Dont work.


Re: fatal error 100: cannot read from file: "my" - DobbysGamertag - 03.06.2013

open pawn>open gamemode> compile

else

open pawn>open gamemode> check the
[pawn]
#include
[/pawn

line and go to

pawn>include> and look in the folder and make sure the inlude is there, if it is, and you've followed the above, then it should compile, if it isn't you may need to get the include

EDIT: https://www.******.co.uk/search?q=Is...hrome&ie=UTF-8

What is 'my' is it a custom inc file? because that's part of the uf.inc ^ look at the link


Re: fatal error 100: cannot read from file: "my" - HardRock - 04.06.2013

pawn Code:
if(strcmp(cmd, "/Gate", true) == 0)
    {
        new x_job[256];
        x_job = strtok(cmdtext, idx);
        if(strcmp(x_job,"open",true) == 0)
        {
            if(IsPlayerInSphere(playerid,-73.0664,-517.8399,5.1259,8))
            {
                MoveObject(35, -80.168464, -518.341857, 3.196054,5);
            }
           
            else if(IsPlayerInSphere(playerid,636.135864, -594.139709, 16.935939,8))
            {
                if(PlayerInfo[playerid][pPolice] >= 1 || PlayerInfo[playerid][pAdmin] >= 100)
                {
                MoveObject(51, 636.135864, -600.539709, 16.935939,2);
                }
            }

            else if(IsPlayerInSphere(playerid,635.3444,-572.9947,16.3359,3))
            {
                if(PlayerInfo[playerid][pPolice] >= 1 || PlayerInfo[playerid][pAdmin] >= 100)
                {
                MoveObject(72, 636.089538, -572.138916, 10.187503,2);
                }
            }
           
            else if(IsPlayerInCircle(playerid,241.4648,75.7753,3))
            {
            MoveObject(playerid, 241.467864, 75.945625, 1006.929077,2);
            }
        }
        else if(strcmp(x_job,"close",true) == 0)
        {
            if(IsPlayerInSphere(playerid,2174.195068, -5.889108, 16.803985,8))
            {
                if(PlayerInfo[playerid][pFMember] >= 1)
                {
                    MoveObject(24,2175.021972, -3.451509, 18.212814,5);
                }
            }

            else if(IsPlayerInSphere(playerid,-73.0664,-517.8399,5.1259,8))
            {
            MoveObject(35,-80.168464, -518.341857, 4.196054,5);
            }

            else if(IsPlayerInSphere(playerid,636.135864, -594.139709, 16.935939,8))
            {
                if(PlayerInfo[playerid][pPolice] >= 1 || PlayerInfo[playerid][pAdmin] >= 100)
                {
                MoveObject(51, 636.135864, -594.139709, 16.935939,2);
                }
            }
           
            else if(IsPlayerInSphere(playerid,635.3444,-572.9947,16.3359,3))
            {
                if(PlayerInfo[playerid][pPolice] >= 1 || PlayerInfo[playerid][pAdmin] >= 100)
                {
                MoveObject(72, 636.089538, -572.138916, 15.987503,2);
                }
            }

            else if(IsPlayerInCircle(playerid,241.4648,75.7753,3))
            {
            MoveObject(1,241.467864, 75.945625, 1004.929077,2);
            }
        }
        return 1;
    }
How can i fix that then?

pawn Code:
(2532) : error 017: undefined symbol "IsPlayerInSphere"
(2537) : error 017: undefined symbol "IsPlayerInSphere"
(2545) : error 017: undefined symbol "IsPlayerInSphere"
(2553) : error 017: undefined symbol "IsPlayerInCircle"
(2560) : error 017: undefined symbol "IsPlayerInSphere"
(2568) : error 017: undefined symbol "IsPlayerInSphere"
(2573) : error 017: undefined symbol "IsPlayerInSphere"
(2581) : error 017: undefined symbol "IsPlayerInSphere"
(2589) : error 017: undefined symbol "IsPlayerInCircle"



Re: fatal error 100: cannot read from file: "my" - DobbysGamertag - 04.06.2013

pawn Code:
stock IsPlayerInSphere(playerid,Float:x1,Float:y1,Float:z1,Float:radius)
{
    if(IsPlayerConnected(playerid))
    {
        new Float:xs,Float:ys,Float:zs;
        GetPlayerPos(playerid,xs,ys,zs);
        return IsPointInSphere(xs,ys,zs,x1,y1,z1,radius);
    }
    return 0;
}
Quote:

By: Sacky

^ Add that to your GM and see what errors you get.


Re: fatal error 100: cannot read from file: "my" - HardRock - 04.06.2013

pawn Code:
(2573) : error 017: undefined symbol "IsPlayerInCircle"
(2609) : error 017: undefined symbol "IsPlayerInCircle"
(9300) : warning 235: public function lacks forward declaration (symbol "OnPlayerInfoChange")
(9701) : error 017: undefined symbol "id2file"
(9701) : error 033: array must be indexed (variable "file")
(10270) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
(11933) : error 017: undefined symbol "IsPointInSphere"
(11927) : warning 203: symbol is never used: "radius"
(11927) : warning 203: symbol is never used: "z1"
(11927) : warning 203: symbol is never used: "y1"
(11927) : warning 203: symbol is never used: "x1"



Re: fatal error 100: cannot read from file: "my" - DeMoX - 04.06.2013

Redownload the server, my.inc is on that server includes.


Re: fatal error 100: cannot read from file: "my" - HardRock - 04.06.2013

Quote:
Originally Posted by HardRock
View Post
pawn Code:
(3) : fatal error 100: cannot read from file: "my"
pawn Code:
#include <my>
Then is same problem.


Re: fatal error 100: cannot read from file: "my" - [Ro]DuReX - 04.06.2013

Are you sure you have the "my.inc" include?