SA-MP Forums Archive
Script Errors, please help - 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: Script Errors, please help (/showthread.php?tid=372529)



Script Errors, please help - Josh_Main - 27.08.2012

Код HTML:
D:\jmain2\Desktop\i\AD-RP(LS)\pawno\include\cop-tools.inc(45) : error 017: undefined symbol "IsPlayerAttachedObjectSlotUsed"
D:\jmain2\Desktop\i\AD-RP(LS)\pawno\include\cop-tools.inc(45) : error 017: undefined symbol "RemovePlayerAttachedObject"
D:\jmain2\Desktop\i\AD-RP(LS)\pawno\include\cop-tools.inc(46) : error 017: undefined symbol "IsPlayerAttachedObjectSlotUsed"
D:\jmain2\Desktop\i\AD-RP(LS)\pawno\include\cop-tools.inc(46) : error 017: undefined symbol "RemovePlayerAttachedObject"
D:\jmain2\Desktop\i\AD-RP(LS)\pawno\include\cop-tools.inc(43) : warning 203: symbol is never used: "playerid"
D:\jmain2\Desktop\i\AD-RP(LS)\pawno\include\cop-tools.inc(43 -- 51) : error 017: undefined symbol "IsPlayerAttachedObjectSlotUsed"
D:\jmain2\Desktop\i\AD-RP(LS)\pawno\include\cop-tools.inc(43 -- 51) : fatal error 107: too many error messages on one line

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


6 Errors.
I can't even find "IsPlayerAttachedObjectSlotUsed" or ANYTHING to do with it in the script accept this:

Код HTML:
RemovePlayerAttachedObject(playerid, 0);
Please help me, it's something to do with the include cop-tools.

This is the include:

Код HTML:
#include <a_samp>

/*
//////////////////////////////
//////////CopTools////////////
//////////by Geso/////////////
//////////////////////////////

These functions can be used with i.e.:

public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/arm", cmdtext, true, 10) == 0)
	{
	    PutRiotShieldOnArm(playerid);
		return 1;
	}
	if (strcmp("/back", cmdtext, true, 10) == 0)
	{
	    PutRiotShieldOnBack(playerid);
		return 1;
	}
	if (strcmp("/light", cmdtext, true, 10) == 0)
	{
	    GiveFlashLight(playerid);
		return 1;
	}
	if (strcmp("/tazer", cmdtext, true, 10) == 0)
	{
	    GiveTazer(playerid);
		return 1;
	}
	if (strcmp("/removeitems", cmdtext, true, 10) == 0)
	{
	        if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
	        if(IsPlayerAttachedObjectSlotUsed(playerid,2)) RemovePlayerAttachedObject(playerid,2);
		return 1;
	}
	return 0;
}
*/

RemoveItems(playerid)
{
	        if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
	        if(IsPlayerAttachedObjectSlotUsed(playerid,2)) RemovePlayerAttachedObject(playerid,2);
}

PutRiotShieldOnBack(playerid)
{
	    if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
		SetPlayerAttachedObject(playerid, 1 , 18637, 1, 0, -0.1, 0.18, 90, 0, 272, 1, 1, 1);
}

PutRiotShieldOnArm(playerid)
{
	    if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
		SetPlayerAttachedObject(playerid, 1, 18637, 4, 0.3, 0, 0, 0, 170, 270, 1, 1, 1);
}

GiveFlashLight(playerid)
{
	    if(IsPlayerAttachedObjectSlotUsed(playerid,2)) RemovePlayerAttachedObject(playerid,2);
		SetPlayerAttachedObject(playerid, 2,18641, 5, 0.1, 0.02, -0.05, 0, 0, 0, 1, 1, 1);
}

GiveTazer(playerid)
{
	    if(IsPlayerAttachedObjectSlotUsed(playerid,2)) RemovePlayerAttachedObject(playerid,2);
		SetPlayerAttachedObject(playerid, 2,18642, 5, 0.12, 0.02, -0.05, 0, 0, 45,1,1,1);
}