SA-MP Forums Archive
Seif_Walk.inc & bfx.inc - 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: Seif_Walk.inc & bfx.inc (/showthread.php?tid=588191)



Seif_Walk.inc & bfx.inc - James Bob - 06.09.2015

Hello, I've just updated my old script to 0.3.7 and started working on it to find out I'm missing some includes which I've found them and added #include <seif_walk> and #include <bfx> which I'm getting some errors I need some assistances with.

Код:
C:\Users\Brooks\Desktop\DSRP\pawno\include\OPSP.inc(250) : error 010: invalid function or declaration
C:\Users\Brooks\Desktop\DSRP\pawno\include\seif_walk.inc(44) : warning 201: redefinition of constant/macro (symbol "OnPlayerKeyStateChange")
C:\Users\Brooks\Desktop\DSRP\pawno\include\seif_walk.inc(56) : warning 217: loose indentation
C:\Users\Brooks\Desktop\DSRP\pawno\include\seif_walk.inc(59) : warning 217: loose indentation
C:\Users\Brooks\Desktop\DSRP\pawno\include\seif_walk.inc(66) : warning 217: loose indentation
C:\Users\Brooks\Desktop\DSRP\pawno\include\seif_walk.inc(69) : warning 217: loose indentation
C:\Users\Brooks\Desktop\DSRP\pawno\include\seif_walk.inc(76) : warning 217: loose indentation
C:\Users\Brooks\Desktop\DSRP\pawno\include\seif_walk.inc(79) : warning 217: loose indentation
C:\Users\Brooks\Desktop\DSRP\pawno\include\seif_walk.inc(81) : warning 217: loose indentation
C:\Users\Brooks\Desktop\DSRP\pawno\include\seif_walk.inc(86) : warning 217: loose indentation
C:\Users\Brooks\Desktop\DSRP\pawno\include\seif_walk.inc(89) : warning 217: loose indentation
C:\Users\Brooks\Desktop\DSRP\pawno\include\seif_walk.inc(96) : warning 217: loose indentation
C:\Users\Brooks\Desktop\DSRP\pawno\include\seif_walk.inc(99) : warning 217: loose indentation
C:\Users\Brooks\Desktop\DSRP\pawno\include\seif_walk.inc(106) : warning 217: loose indentation
C:\Users\Brooks\Desktop\DSRP\pawno\include\seif_walk.inc(109) : warning 217: loose indentation
C:\Users\Brooks\Desktop\DSRP\pawno\include\seif_walk.inc(116) : warning 217: loose indentation
C:\Users\Brooks\Desktop\DSRP\pawno\include\seif_walk.inc(119) : warning 217: loose indentation
C:\Users\Brooks\Desktop\DSRP\pawno\include\seif_walk.inc(126) : warning 217: loose indentation
C:\Users\Brooks\Desktop\DSRP\pawno\include\seif_walk.inc(129) : warning 217: loose indentation
C:\Users\Brooks\Desktop\DSRP\pawno\include\seif_walk.inc(136) : warning 217: loose indentation
C:\Users\Brooks\Desktop\DSRP\pawno\include\seif_walk.inc(139) : warning 217: loose indentation
C:\Users\Brooks\Desktop\DSRP\pawno\include\seif_walk.inc(146) : warning 217: loose indentation
C:\Users\Brooks\Desktop\DSRP\pawno\include\seif_walk.inc(149) : warning 217: loose indentation
C:\Users\Brooks\Desktop\DSRP\pawno\include\seif_walk.inc(156) : warning 217: loose indentation
C:\Users\Brooks\Desktop\DSRP\pawno\include\seif_walk.inc(159) : warning 217: loose indentation
C:\Users\Brooks\Desktop\DSRP\pawno\include\seif_walk.inc(166) : warning 217: loose indentation
C:\Users\Brooks\Desktop\DSRP\pawno\include\seif_walk.inc(169) : warning 217: loose indentation
C:\Users\Brooks\Desktop\DSRP\pawno\include\seif_walk.inc(176) : warning 217: loose indentation
C:\Users\Brooks\Desktop\DSRP\pawno\include\seif_walk.inc(179) : warning 217: loose indentation
E:\New folder\dsrpnew.pwn(106251) : error 029: invalid expression, assumed zero
E:\New folder\dsrpnew.pwn(106251) : warning 215: expression has no effect
E:\New folder\dsrpnew.pwn(106251) : error 001: expected token: ";", but found ")"
E:\New folder\dsrpnew.pwn(106251) : error 029: invalid expression, assumed zero
E:\New folder\dsrpnew.pwn(106251) : fatal error 107: too many error messages on one line

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


5 Errors.
line 106251 doesn't exists, I only got those errors after adding the includes.


Re: Seif_Walk.inc & bfx.inc - James Bob - 07.09.2015

Anybody?


Re: Seif_Walk.inc & bfx.inc - Variable™ - 07.09.2015

Where is the code?


Re: Seif_Walk.inc & bfx.inc - James Bob - 09.09.2015

Quote:
Originally Posted by ._Xavier$$
Посмотреть сообщение
Where is the code?
It's the include causing the issue, I can't seem to get it working. I'm needing seif_walk & bfx.


edit:

I believe I've got the includes working now, a few other issues.

Код:
C:\Users\Brooks\Desktop\DSRP\pawno\include\OPSP.inc(250) : error 010: invalid function or declaration
C:\Users\Brooks\Desktop\DSRP\gamemodes\dsrpnew.pwn(106251) : error 029: invalid expression, assumed zero
C:\Users\Brooks\Desktop\DSRP\gamemodes\dsrpnew.pwn(106251) : warning 215: expression has no effect
C:\Users\Brooks\Desktop\DSRP\gamemodes\dsrpnew.pwn(106251) : error 001: expected token: ";", but found ")"
C:\Users\Brooks\Desktop\DSRP\gamemodes\dsrpnew.pwn(106251) : error 029: invalid expression, assumed zero
C:\Users\Brooks\Desktop\DSRP\gamemodes\dsrpnew.pwn(106251) : fatal error 107: too many error messages on one line

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


5 Errors.
line 106251

Код:
CMD:purge(playerid, params[])            ---HERE THIS IS LINE 106251
{
	if(PlayerInfo[playerid][pAdmin] < =99999) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
	new f;
	if(sscanf(params,"d",f)) return SendClientMessage(playerid, COLOR_GREY, "USAGE:/purge [FactionID]");
	if(f < 1 || f > 14 || f == 10) return SendClientMessage(playerid, COLOR_GREY, "Factions range from 1 to 14, 10 is invalid.");
	new st[30], str[128];
	switch(f)
	{
		case 1:
		{
			st = "LSPD";
		}
		case 2:
		{
			st = "FBI";
		}
		case 3:
		{
			st = "SFPD";
		}
		case 4:
		{
			st = "FDSA";
		}
		case 5:
		{
			st = "Judicial System";
		}
		case 6:
		{
			st = "Government";
		}
		case 7:
		{
			st = "SASD";
		}
		case 8:
		{
			st = "Hitman Agency";
		}
		case 9:
		{
			st = "SA News";
		}
		case 11:
		{
			st = "National Guard";
		}
		case 12:
		{
			st = "Tierra Robada";
		}
		case 13:
		{
			st = "NOOSE";
		}
		default:
		{
		    return SendClientMessage(playerid, COLOR_GREY, "Invalid faction ID.");
		}
	}
	foreach(Player, i)
	{
	    if(PlayerInfo[i][pMember] == f || PlayerInfo[i][pLeader] == f)
	    {
			SendClientMessage(i, COLOR_RED, "You have been kicked out of your faction by an administrator.");
			PlayerInfo[i][pMember] = 0;
			PlayerInfo[i][pLeader] = 0;
		}
	}
	format(str, 128, "Online members in %s were purged by %s.", st, GetPlayerNameEx(playerid));
	ABroadCast(COLOR_RED, str, 2);
	format(str, 128, "%s was purged by %s.", st, GetPlayerNameEx(playerid));
	Log("logs/purges.log", str);
	return 1;
}



Re: Seif_Walk.inc & bfx.inc - SoFahim - 09.09.2015

Quote:
Originally Posted by James Bob
Посмотреть сообщение
It's the include causing the issue, I can't seem to get it working. I'm needing seif_walk & bfx.


edit:

I believe I've got the includes working now, a few other issues.

Код:
C:\Users\Brooks\Desktop\DSRP\pawno\include\OPSP.inc(250) : error 010: invalid function or declaration
C:\Users\Brooks\Desktop\DSRP\gamemodes\dsrpnew.pwn(106251) : error 029: invalid expression, assumed zero
C:\Users\Brooks\Desktop\DSRP\gamemodes\dsrpnew.pwn(106251) : warning 215: expression has no effect
C:\Users\Brooks\Desktop\DSRP\gamemodes\dsrpnew.pwn(106251) : error 001: expected token: ";", but found ")"
C:\Users\Brooks\Desktop\DSRP\gamemodes\dsrpnew.pwn(106251) : error 029: invalid expression, assumed zero
C:\Users\Brooks\Desktop\DSRP\gamemodes\dsrpnew.pwn(106251) : fatal error 107: too many error messages on one line

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


5 Errors.
line 106251

Код:
CMD:purge(playerid, params[])            ---HERE THIS IS LINE 106251
{
	if(PlayerInfo[playerid][pAdmin] < =99999) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
	new f;
	if(sscanf(params,"d",f)) return SendClientMessage(playerid, COLOR_GREY, "USAGE:/purge [FactionID]");
	if(f < 1 || f > 14 || f == 10) return SendClientMessage(playerid, COLOR_GREY, "Factions range from 1 to 14, 10 is invalid.");
	new st[30], str[128];
	switch(f)
	{
		case 1:
		{
			st = "LSPD";
		}
		case 2:
		{
			st = "FBI";
		}
		case 3:
		{
			st = "SFPD";
		}
		case 4:
		{
			st = "FDSA";
		}
		case 5:
		{
			st = "Judicial System";
		}
		case 6:
		{
			st = "Government";
		}
		case 7:
		{
			st = "SASD";
		}
		case 8:
		{
			st = "Hitman Agency";
		}
		case 9:
		{
			st = "SA News";
		}
		case 11:
		{
			st = "National Guard";
		}
		case 12:
		{
			st = "Tierra Robada";
		}
		case 13:
		{
			st = "NOOSE";
		}
		default:
		{
		    return SendClientMessage(playerid, COLOR_GREY, "Invalid faction ID.");
		}
	}
	foreach(Player, i)
	{
	    if(PlayerInfo[i][pMember] == f || PlayerInfo[i][pLeader] == f)
	    {
			SendClientMessage(i, COLOR_RED, "You have been kicked out of your faction by an administrator.");
			PlayerInfo[i][pMember] = 0;
			PlayerInfo[i][pLeader] = 0;
		}
	}
	format(str, 128, "Online members in %s were purged by %s.", st, GetPlayerNameEx(playerid));
	ABroadCast(COLOR_RED, str, 2);
	format(str, 128, "%s was purged by %s.", st, GetPlayerNameEx(playerid));
	Log("logs/purges.log", str);
	return 1;
}
First try yo disable the command linewith /* */ then recomple. If the same problem happen then the problem on include or maybe mistake scripting


Re: Seif_Walk.inc & bfx.inc - James Bob - 09.09.2015

Quote:
Originally Posted by SoFahim
Посмотреть сообщение
First try yo disable the command linewith /* */ then recomple. If the same problem happen then the problem on include or maybe mistake scripting
I commented in out a while ago and it's working but I'll need that command later. Anyhow, I'm having another issue I've moved it across over to my dedicated server and once I or anybody joins the server just closes, anyone know a fix?