Need some help
#1

Hey guys today I was editing my servers script for an upcoming match, and this happened.


Код:
C:\Documents and Settings\Owner.Borat\Desktop\Desktop folers\Server\samp02Xserver.win32\AG-RP.pwn(20) : fatal error 100: cannot read from file: "MidoStream"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Here's what I was scripting.

Код:
if (PlayerToPoint(3, playerid,255.3,77.4,1003.6) || PlayerToPoint(3,playerid,-1616.1294,681.1594,7.1875) || PlayerInfo[playerid][pLocal] != 255)
				{
					if(OnDuty[playerid]==0)
			    {
				  	format(string, sizeof(string), "* Officer %s took a Badge and a Gun from his locker.", sendername);
						ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
						GivePlayerWeapon(playerid, 24, 500);
						GivePlayerWeapon(playerid, 3, 1);
						SetPlayerHealth(playerid,100);
						SetPlayerArmour(playerid,100);
						OnDuty[playerid] = 1;
					}
					else if(OnDuty[playerid]==1)
					{
						format(string, sizeof(string), "* Officer %s places his Badge and Gun in his locker.", sendername);
						ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
						GivePlayerWeapon(playerid, 23, 150);
						GivePlayerWeapon(playerid, 5, 0);
						SetPlayerArmour(playerid,0);
						OnDuty[playerid] = 0;
					}
				}
				else
				{
Was trying to make it so that when a cop did /duty they got 100 armor, and when they did it again they lost it. I don't see a problem with that?

Reply
#2

The "cannot read from" errors have absolutely nothing to do with your script.
It would mean that a file MidoStream.inc in your pawno/include folder is missing.

Any cant read from mean that its not in the folder its supposed to be in.
Reply
#3

I found the Midostream file and I moved it, now I get this error.

Код:
C:\Documents and Settings\Owner.Borat\Desktop\Desktop folers\Server\pawno\include\a_samp.inc(19) : fatal error 100: cannot read from file: "string"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
I am having trouble finding were to move this file.
Reply
#4

The "cannot read from" errors have absolutely nothing to do with your script.
It would mean that a file string.inc in your pawno/include folder is missing.

Any cant read from mean that its not in the folder its supposed to be in.
Reply
#5

Same thing,somewhere in your a_samp.inc its telling it to also read from a file called string.inc supposed to also be in the include folder?
Reply
#6

Thanks guys problem fixed
Reply
#7

Quote:
Originally Posted by ledzep
The "cannot read from" errors have absolutely nothing to do with your script.
It would mean that a file string.inc in your pawno/include folder is missing.

Any cant read from mean that its not in the folder its supposed to be in.
Thats funny,even left in the poor gramar from
Quote:

Any cant read from mean that its not

Reply
#8

Aww, you noticed?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)