SA-MP Forums Archive
fatal error 100: cannot read from file: "/scriptfiles/zones.pwn" - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: fatal error 100: cannot read from file: "/scriptfiles/zones.pwn" (/showthread.php?tid=217486)



fatal error 100: cannot read from file: "/scriptfiles/zones.pwn" - David5290 - 28.01.2011

Funny because the Zones.pwn is in the scriptfiles. >.>


Re: fatal error 100: cannot read from file: "/scriptfiles/zones.pwn" - admantis - 28.01.2011

http://forum.sa-mp.com/showthread.ph...atal+error+100


Re: fatal error 100: cannot read from file: "/scriptfiles/zones.pwn" - David5290 - 28.01.2011

Quote:
Originally Posted by admantis
Посмотреть сообщение
Doesn't really help. I open the exact thing and it says the same error every time, every other gamemode works fine, but this one won't compile at all.





Re: fatal error 100: cannot read from file: "/scriptfiles/zones.pwn" - Krx17 - 28.01.2011

How are you loading this file? Using #include?


Re: fatal error 100: cannot read from file: "/scriptfiles/zones.pwn" - Calgon - 28.01.2011

The directory for the pwn should be in pawno/includes, NOT scriptfiles as scriptfiles is a directory for scripts to save files and not where files should be executed from.


Re: fatal error 100: cannot read from file: "/scriptfiles/zones.pwn" - David5290 - 28.01.2011

C:\Users\David\Desktop\Dave's Server\gamemodes\ls-cnr.pwn(1095) : error 029: invalid expression, assumed zero
C:\Users\David\Desktop\Dave's Server\gamemodes\ls-cnr.pwn(1095) : warning 215: expression has no effect
C:\Users\David\Desktop\Dave's Server\gamemodes\ls-cnr.pwn(1095) : error 001: expected token: ";", but found "]"
C:\Users\David\Desktop\Dave's Server\gamemodes\ls-cnr.pwn(1095) : error 029: invalid expression, assumed zero
C:\Users\David\Desktop\Dave's Server\gamemodes\ls-cnr.pwn(1095) : fatal error 107: too many error messages on one line



Код:
public AdminOnPlayerText(playerid, text[])
{
	SendClientMessage(playerid, COLOR_WHITE, "Registration Complete. Welcome to the admin team! Type /ah to see a list of commands to use!");
	new accountpath[64];
	format(accountpath, 64, "/admins/%s.ini", PlayerName(playerid));
	dini_Create(accountpath);
	new buf[150];
	WP_Hash(buf, sizeof(buf), text);
	dini_Set(accountpath, "password", buf);
	dini_IntSet(accountpath, "pin", adpin[playerid]);
	format(buf, sizeof(buf), "ADMIN: Your admin login pin is: %d", adpin[playerid]);
	SendClientMessage(playerid, COLOR_GREEN, buf);
	PlayerInfo[playerid][Admin] = 1;        <-------- Line 1095
	PlayerInfo[playerid][AdminLogged] = true;
	makingadmin=-1;
	return 1;


I just added the .pwns to the GameMode..much easier lol.


Re: fatal error 100: cannot read from file: "/scriptfiles/zones.pwn" - David5290 - 28.01.2011

Help anyone? Also I get this


Код:
new PlayerInfo[MAX_PLAYERS][pInfo];
error 020: invalid symbol name ""


Re: fatal error 100: cannot read from file: "/scriptfiles/zones.pwn" - David5290 - 28.01.2011

error 029: invalid expression, assumed zero
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero


PlayerInfo[playerid][Admin] = 1;