SA-MP Forums Archive
Cannot read from file - 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: Cannot read from file (/showthread.php?tid=318782)



Cannot read from file - iDeal - 16.02.2012

Why do I keep getting this?
fatal error 100: cannot read from file: "PPC_ServerSettings"


Re: Cannot read from file - Konstantinos - 16.02.2012

One way there is to check if the file exists on your folder.
If in the error says the File Location then use it.
pawn Код:
// An Example
D:\SA-MP Script\Server Packages 0.3d\Server Script\gamemodes\my_gm.pwn(line_number) : fatal error 100: cannot read from file: "PPC_ServerSettings"
Go to your documents and paste up the file path and the include name.
pawn Код:
// Example
D:\SA-MP Script\Server Packages 0.3d\Server Script\pawno\includes\PPC_ServerSettings.inc
If the files automatically open then it exists, else you have add the include in another file or you run another pawno.exe


Re: Cannot read from file - iDeal - 16.02.2012

Fixed it, but why I added a command in "PPC_PlayerCommands"
and it dont work, is this command ment to work?
COMMAND:acmds(playerid, params[])
{
if (APlayerData[playerid][PlayerLevel] >= 1)
{
SendClientMessage(playerid, 0xFFFFFFFF, "NOTE; Depending on your admin level, some may not be available to you.");
SendClientMessage(playerid, 0xFFFFFFFF, "/cash (AMOUNT), /givecash (PLAYERID)(AMOUNT), /setscore (PLAYERID)(SCORE), /setlevel (ID)(AMOUNT)");
SendClientMessage(playerid, 0xFFFFFFFF, "/createhouse(Obvious), /delhouse(Obvious), /goto(ID), /get(ID)");
}
else {
SendClientMessage(playerid, 0xFFFFFFFF, "You are not an admin, Therefore cannot view Admin Commands.");
}
return 1;
}


Re: Cannot read from file - iDeal - 16.02.2012

Whenever I make any command and add it, it doesnt seem to work, help?


Re: Cannot read from file - iDeal - 16.02.2012

Help.