Cannot read from file
#1

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

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
Reply
#3

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;
}
Reply
#4

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

Help.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)