cop-tools error -
rocker3410 - 23.12.2013
I was trying to compile a script. but only the include that it uses gave the errors
Код:
F:\experimental\PAWNOEXE\include\cop-tools.inc(45) : error 017: undefined symbol "IsPlayerAttachedObjectSlotUsed"
F:\experimental\PAWNOEXE\include\cop-tools.inc(45) : error 017: undefined symbol "RemovePlayerAttachedObject"
F:\experimental\PAWNOEXE\include\cop-tools.inc(46) : error 017: undefined symbol "IsPlayerAttachedObjectSlotUsed"
F:\experimental\PAWNOEXE\include\cop-tools.inc(46) : error 017: undefined symbol "RemovePlayerAttachedObject"
F:\experimental\PAWNOEXE\include\cop-tools.inc(43) : warning 203: symbol is never used: "playerid"
F:\experimental\PAWNOEXE\include\cop-tools.inc(43 -- 51) : error 017: undefined symbol "IsPlayerAttachedObjectSlotUsed"
F:\experimental\PAWNOEXE\include\cop-tools.inc(43 -- 51) : fatal error 107: too many error messages on one line
Here is the include
Код:
#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);
}
Re: cop-tools error -
Konstantinos - 23.12.2013
Those functions: IsPlayerAttachedObjectSlotUsed and RemovePlayerAttachedObject were added in 0.3c so you use an older version of a_samp.inc
Update the server package to 0.3x R2
Re: cop-tools error -
rocker3410 - 23.12.2013
Ok so i fixed that now i get this.
F:\experimental\GameModes\e-rp.pwn(16860) : error 017: undefined symbol "entrancegate"
F:\experimental\GameModes\e-rp.pwn(16861) : error 017: undefined symbol "exitgate"
F:\experimental\GameModes\e-rp.pwn(18362) : error 017: undefined symbol "impoundg"
F:\experimental\GameModes\e-rp.pwn(18443) : error 017: undefined symbol "medicgate"
F:\experimental\GameModes\e-rp.pwn(18445) : error 017: undefined symbol "border"
F:\experimental\GameModes\e-rp.pwn(18446) : error 017: undefined symbol "border2"
F:\experimental\GameModes\e-rp.pwn(18447) : error 017: undefined symbol "border3"
F:\experimental\GameModes\e-rp.pwn(1844
: error 017: undefined symbol "border4"
F:\experimental\GameModes\e-rp.pwn(18449) : error 017: undefined symbol "border5"
F:\experimental\GameModes\e-rp.pwn(18450) : error 017: undefined symbol "border6"
F:\experimental\GameModes\e-rp.pwn(18451) : error 017: undefined symbol "border7"
F:\experimental\GameModes\e-rp.pwn(18452) : error 017: undefined symbol "border8"
F:\experimental\GameModes\e-rp.pwn(18453) : error 017: undefined symbol "border9"
F:\experimental\GameModes\e-rp.pwn(18454) : error 017: undefined symbol "border10"
F:\experimental\GameModes\e-rp.pwn(18455) : error 017: undefined symbol "border11"
F:\experimental\GameModes\e-rp.pwn(18456) : error 017: undefined symbol "border12"
F:\experimental\GameModes\e-rp.pwn(18457) : error 017: undefined symbol "border13"
F:\experimental\GameModes\e-rp.pwn(1845
: error 017: undefined symbol "border14"
F:\experimental\GameModes\e-rp.pwn(18459) : error 017: undefined symbol "border15"
F:\experimental\GameModes\e-rp.pwn(18460) : error 017: undefined symbol "border16"
F:\experimental\GameModes\e-rp.pwn(18461) : error 017: undefined symbol "border17"
F:\experimental\GameModes\e-rp.pwn(18462) : error 017: undefined symbol "border18"
F:\experimental\GameModes\e-rp.pwn(18465) : error 017: undefined symbol "border21"
F:\experimental\GameModes\e-rp.pwn(18465) : error 029: invalid expression, assumed zero
F:\experimental\GameModes\e-rp.pwn(18465 -- 18467) : error 017: undefined symbol "shayselevator"
F:\experimental\GameModes\e-rp.pwn(18465 -- 18467) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
26 Errors.
Re: cop-tools error -
Konstantinos - 23.12.2013
I suppose those are variables and you need to declare them. I cannot do anything by looking only at the errors.
Re: cop-tools error -
rocker3410 - 23.12.2013
i am using Christiania Roleplay LS Edition
http://*************.com/f499/releas...leplay-735138/
Re: cop-tools error -
rocker3410 - 23.12.2013
can you maybe declare them for me and send the code?