[FilterScript] Mining
#21

Bir tьrkь burada bu başariyla gцrmek зok gьzel. Başarilar.
Reply
#22

The did not see the bar and the miner mining forever.... Please help me!
Reply
#23

Nice work , but I have one suggestion , For my opinion it will be better if you will use key to start mining how you did it with drop use key "Y" to start mining and "N" to drop it how it is now.
Reply
#24

Hello. I got a problem when I try to compile.

Error:
Code:
C:\Users\: error 029: invalid expression, assumed zero
C:\Users\: warning 215: expression has no effect
C:\Users\: warning 215: expression has no effect
C:\Users\: warning 215: expression has no effect
C:\Users\: warning 215: expression has no effect
C:\Users\: warning 215: expression has no effect
C:\Users\: error 001: expected token: ";", but found ")"
C:\Users\: error 029: invalid expression, assumed zero
C:\Users\: fatal error 107: too many error messages on one line

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


4 Errors.
On this line.

Code:
CMD:vehicle(playerid, params[])
{
   	if(isnull(params)) return SendClientMessage(playerid, 0xE88732FF, "USAGE: {FFFFFF}/vehicle [ores/take]");
   	if(!strcmp(params, "ores", true))
	{
   	    new vehicleid = GetNearestVehicleEx(playerid);
   	    if(!IsValidVehicle(vehicleid)) return SendClientMessage(playerid, 0xE74C3CFF, "ERROR: {FFFFFF}You're not near any vehicle.");
   	    if(!Vehicle_IsMiningVehicle(vehicleid)) return SendClientMessage(playerid, 0xE74C3CFF, "ERROR: {FFFFFF}Vehicle isn't a mining vehicle.");
   	    new string[196], title[32];
		format(string, sizeof(string), "Name\tAmount\tValue\n");
   	    for(new i; i < MAX_ORE_TYPES; i++) format(string, sizeof(string), "%s%s\t%d\t{2ECC71}$%d\n", string, OreData[i][Name], LoadedOres[vehicleid][i], Vehicle_GetOreValueByType(vehicleid, i));
		format(title, sizeof(title), "Loaded Ores {E74C3C}(%d/%d)", Vehicle_LoadedOres(vehicleid), VEHICLE_LIMIT);
		ShowPlayerDialog(playerid, DIALOG_ORE_INFO, DIALOG_STYLE_TABLIST_HEADERS, title, string, "Close", "");
   	}
	else if(!strcmp(params, "take"))
	{
   	    if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xE74C3CFF, "ERROR: {FFFFFF}You can't do this in a vehicle.");
		if(MiningVein[playerid] != -1) return SendClientMessage(playerid, 0xE74C3CFF, "ERROR: {FFFFFF}You're already mining.");
		if(CarryingOre[playerid] != -1) return SendClientMessage(playerid, 0xE74C3CFF, "ERROR: {FFFFFF}You're already carrying an ore.");
		new id = GetNearestVehicleEx(playerid);
		if(!IsValidVehicle(id)) return SendClientMessage(playerid, 0xE74C3CFF, "ERROR: {FFFFFF}You're not near any vehicle.");
        if(!Vehicle_IsMiningVehicle(id)) return SendClientMessage(playerid, 0xE74C3CFF, "ERROR: {FFFFFF}Vehicle isn't a mining vehicle.");
		new Float: x, Float: y, Float: z;
		GetVehicleBoot(id, x, y, z);
		if(GetPlayerDistanceFromPoint(playerid, x, y, z) > 3.0) return SendClientMessage(playerid, 0xE74C3CFF, "ERROR: {FFFFFF}You're not near the vehicle's back.");
   	    new string[196], title[32];
		format(string, sizeof(string), "Name\tAmount\n");
   		for(new i; i < MAX_ORE_TYPES; i++) format(string, sizeof(string), "%s%s\t%d\n", string, OreData[i][Name], LoadedOres[id][i]);
		format(title, sizeof(title), "Loaded Ores {E74C3C}(%d/%d)", Vehicle_LoadedOres(id), VEHICLE_LIMIT);
		ShowPlayerDialog(playerid, DIALOG_ORE_TAKE, DIALOG_STYLE_TABLIST_HEADERS, title, string, "Take", "Close");
	}
	return 1;
}
Can you please help me to resolve it? Thx.
Reply
#25

nice, where i can get evf include?
Reply
#26

Quote:
Originally Posted by Misterenas
View Post
nice, where i can get evf include?
New EVF Thread download EVF.inc
Reply
#27

Quote:
Originally Posted by AbyssMorgan
View Post
and where i can get progress2.inc and izcmd.inc?

and one more question, where i should put them? gamemodes>pawno>includes or somewhere else?
Reply
#28

Quote:
Originally Posted by Misterenas
View Post
and where i can get progress2.inc and izcmd.inc?

and one more question, where i should put them? gamemodes>pawno>includes or somewhere else?
find them on mr.****** also yes in that place
Reply
#29

\pawno\include\evf.inc(89) : fatal error 111: user error: [ADM] This include requires SA:MP version 0.3.7

how i can fix this?

my version is 0.3.7, so what the hell?
Reply
#30

Quote:
Originally Posted by Misterenas
View Post
\pawno\include\evf.inc(89) : fatal error 111: user error: [ADM] This include requires SA:MP version 0.3.7

how i can fix this?

my version is 0.3.7, so what the hell?
Replace your includes with the includes from the 0.3.7 server package.
Reply
#31

Quote:
Originally Posted by Misterenas
View Post
\pawno\include\evf.inc(89) : fatal error 111: user error: [ADM] This include requires SA:MP version 0.3.7

how i can fix this?

my version is 0.3.7, so what the hell?
You need update a_samp.inc
Reply
#32

Quote:
Originally Posted by AbyssMorgan
View Post
You need update a_samp.inc
but now new error

pawno\include\a_samp.inc(30) : fatal error 100: cannot read from file: "a_actor"
Reply
#33

https://github.com/AbyssMorgan/SA-MP...de/a_actor.inc
Reply
#34

Quote:
Originally Posted by AbyssMorgan
View Post
after all includes, now i have these errors:

error 017: undefined symbol "IsValidVehicle"
: error 017: undefined symbol "IsValidVehicle"
error 017: undefined symbol "IsValidVehicle"
error 017: undefined symbol "IsValidVehicle"
error 017: undefined symbol "GetVehicleBoot"
error 017: undefined symbol "GetVehicleInterior"
error 017: undefined symbol "IsValidVehicle"
error 017: undefined symbol "GetVehicleBoot"
error 017: undefined symbol "IsValidVehicle"
error 017: undefined symbol "IsValidVehicle"
error 017: undefined symbol "GetVehicleBoot"
error 017: undefined symbol "GetVehicleBoot"
error 017: undefined symbol "GetVehicleBoot"
Reply
#35

AbyssMorgan "#include <SAM/EVF> " I type this but it gives error "/" not acceptable. I have set it to evf.

I did update all includes from AbyssMorgan's website and errors have reduced to these:

filterscripts\mine.pwn(242) : error 017: undefined symbol "GetVehicleBoot"
filterscripts\mine.pwn(351) : warning 202: number of arguments does not match definition
filterscripts\mine.pwn(479) : error 017: undefined symbol "GetVehicleBoot"
filterscripts\mine.pwn(510) : error 017: undefined symbol "GetVehicleBoot"
filterscripts\mine.pwn(540) : error 017: undefined symbol "GetVehicleBoot"
filterscripts\mine.pwn(566) : error 017: undefined symbol "GetVehicleBoot"
Pawn compiler 3.2.3664


5 Errors.

I am just trying to find some job where I can load ANYTHING on boat then through sea dock on another land, take out what I had mined and walk to red marker or anything to get money. Will this mine job work for a boat?

EDIT: Finally I solved my problem, actually I looked into evf.inc and it turned out AbyssMorgan has excluded "GetVehicleBoot". I found another evf.inc that has "GetVehicleBoot" and my errors solved.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)