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



ZCMD Cannot read from file. - Zlaja - 31.03.2013

fatal error 100: cannot read from file: "zcmd"

I have zcmd.inc in includes and I don't know what to do, maybe someone knows what's the problem here ?


Re: ZCMD Cannot read from file. - SilverKiller - 31.03.2013

Open your file from pawno.exe not by clicking on it.

Also make sure you have it in Pawno / Includes.


Re: ZCMD Cannot read from file. - emokidx - 31.03.2013

You need to have it in the /pawno/includes folder.


Re: ZCMD Cannot read from file. - Zlaja - 31.03.2013

I tried that, I clicked compile and it's again that error.
Do you know what else will may be a problem ?


Re: ZCMD Cannot read from file. - kamzaf - 31.03.2013

do one thing, download a new samp0.3x server file. In that make sure there is a "zcmd.inc" file in the pawno folder. If there is open the pawno.exe from the new file you downloaded, open your script from there and try compiling.


Re: ZCMD Cannot read from file. - Zlaja - 31.03.2013

I forgot to extract zcmd.inc in pawno>includes it's okay now.
Then I get error with ysi/y_ini I solved that and now I have new error
warning 204: symbol is assigned a value that is never used: "idv"
What to do now ?


Re: ZCMD Cannot read from file. - SilverKiller - 31.03.2013

That means you made new idv but didn't use it in anything.. better delete it.


Re: ZCMD Cannot read from file. - Zlaja - 31.03.2013

Quote:
Originally Posted by SilverKiller
Посмотреть сообщение
That means you made new idv but didn't use it in anything.. better delete it.
Код:
new idv = GetPlayerVehicleID(playerid);
There is problem, and here is whole command.

Код:
CMD:stopvoznja(playerid, params[])
	{
	    new idv = GetPlayerVehicleID(playerid);
		if(pInfo[playerid][pJob] != 2)// proverava jel igrac ima odgovarajuci posao
		{
			SendClientMessage(playerid, SIVA, "Nisi vozac autobusa!");
			return 1;
		}
		if(VoziBus[playerid] >= 1) // proverava da li igrac vozi bus
		{
			VoziBus[playerid] = 0;
			DisablePlayerCheckpoint(playerid);
			SendClientMessage(playerid, BELA, "Prekinuo si voznju busa!");

		}



Re: ZCMD Cannot read from file. - Harti - 31.03.2013

You can delete the var idv as it is not used in this command.


Re: ZCMD Cannot read from file. - Zlaja - 31.03.2013

Okay I did it. I don't have any error but one more problem.
I run samp-server.exe and on the bottom says "Run time error 19: File or function not found"
Number of vehicle models:0

Please help.