Skripta koju koristim:FactionGame EDIT
Detaljan opis problema:Pa sad uzeo sam sa foruma onaj FS cop tools by geso ali kad ga compilam izbaci ove errore:
C:\Documents and Settings\Stevan\Desktop\CopTools.pwn(20) : error 017: undefined symbol "IsPlayerAttachedObjectSlotUsed"
C:\Documents and Settings\Stevan\Desktop\CopTools.pwn(20) : error 017: undefined symbol "RemovePlayerAttachedObject"
C:\Documents and Settings\Stevan\Desktop\CopTools.pwn(21) : error 017: undefined symbol "IsPlayerAttachedObjectSlotUsed"
C:\Documents and Settings\Stevan\Desktop\CopTools.pwn(21) : error 017: undefined symbol "RemovePlayerAttachedObject"
C:\Documents and Settings\Stevan\Desktop\CopTools.pwn(18) : warning 203: symbol is never used: "playerid"
C:\Documents and Settings\Stevan\Desktop\CopTools.pwn(18 -- 27) : error 017: undefined symbol "IsPlayerAttachedObjectSlotUsed"
C:\Documents and Settings\Stevan\Desktop\CopTools.pwn(18 -- 27) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
6 Errors.
Dio skripte:Evo FS-a
/*
//////////////////////////////
//////////CopTools////////////
//////////by Geso/////////////
//////////////////////////////
Link: http://forum.sa-mp.com/showthread.php?t=197305
*/
#include "a_samp"
#include "zcmd"
#define SCM SendClientMessage
#define ZUTA 0xFFFF00FF
forward RemoveItems(playerid);
RemoveItems(playerid)
{
if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
if(IsPlayerAttachedObjectSlotUsed(playerid,2)) RemovePlayerAttachedObject(playerid,2);
}
forward PutRiotShieldOnBack(playerid);
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);
}
forward PutRiotShieldOnArm(playerid);
PutRiotShieldOnArm(playerid)
{
if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
SetPlayerAttachedObject(playerid, 1, 18637, 4, 0.3, 0, 0, 0, 170, 270, 1, 1, 1);
}
forward GiveFlashLight(playerid);
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);
}
forward GiveTazer(playerid);
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);
}
CMD:arm(playerid, params[])
{
PutRiotShieldOnArm(playerid); SCM(playerid, ZUTA,"Stavio si stit.");
return 1;
}
CMD:back(playerid, params[])
{
PutRiotShieldOnBack(playerid); SCM(playerid, ZUTA,"Stavio si stit na ledja.");
return 1;
}
CMD:light(playerid, params[])
{
GiveFlashLight(playerid); SCM(playerid, ZUTA,"Uzeo si svjetiljku.");
return 1;
}
CMD:tazer(playerid, params[])
{
GiveTazer(playerid); SCM(playerid, ZUTA,"Uzeo si Tazer/Soker.");
return 1;
}
CMD:removeitems(playerid, params[])
{
RemoveItems(playerid); SCM(playerid, ZUTA,"Skinuo si opremu!");
return 1;
}
Neke slike/video za lakse dobivanje pomoci(neobavezno):/
Koji je tu red 20? ;D
Citat: Lane_Hudson poslato Maj 12, 2011, 20:08:05 POSLE PODNE
Koji je tu red 20? ;D
sta ce ti redovi vidis da nije definirano :S Btw. to je FS ili inc? kat+zes skinuo onaj inc cop tools i dolej evo FS
Evo redovi
20. if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
21. if(IsPlayerAttachedObjectSlotUsed(playerid,2)) RemovePlayerAttachedObject(playerid,2);
22.}
23.
24.forward PutRiotShieldOnBack(playerid);
25.PutRiotShieldOnBack(playerid)
26.{
27. if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
EDIT:Pa FS je nigde nisam napisao da je include
#define SetPlayerHoldingObject(%1,%2,%3,%4,%5,%6,%7,%8,%9) SetPlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJECTS-1,%2,%3,%4,%5,%6,%7,%8,%9)
#define StopPlayerHoldingObject(%1) RemovePlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJECTS-1)
#define IsPlayerHoldingObject(%1) IsPlayerAttachedObjectSlotUsed(%1,MAX_PLAYER_ATTACHED_OBJECTS-1)
edit: ovo na vrh skripte -.-''
Citat: [ЯPF] !K4[Я]!K3 poslato Maj 12, 2011, 20:16:12 POSLE PODNE
#define SetPlayerHoldingObject(%1,%2,%3,%4,%5,%6,%7,%8,%9) SetPlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJECTS-1,%2,%3,%4,%5,%6,%7,%8,%9)
#define StopPlayerHoldingObject(%1) RemovePlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJECTS-1)
#define IsPlayerHoldingObject(%1) IsPlayerAttachedObjectSlotUsed(%1,MAX_PLAYER_ATTACHED_OBJECTS-1)
Dodao sam,ali opet isto