Započeo SteXi.ılllı.
•12. Maj 2011.[Pomoc]Cop Tools
992
pregleda
6
postova
OG Legend
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosAktivan Član
4 / 250 XP
Početnik(0)
2,741
Postovi:
185
Teme:
Pridružio se:Apr. 2010
12. Maj 2011.
Skripta koju koristim:FactionGame EDIT
Detaljan opis problema😛a sad uzeo sam sa foruma onaj FS cop tools by geso ali kad ga compilam izbaci ove errore:
Dio skripte:Evo FS-a
Neke slike/video za lakse dobivanje pomoci(neobavezno):/
Detaljan opis problema😛a 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):/
Enforcer
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
277
Postovi:
25
Teme:
Pridružio se:Feb. 2011
Godfather
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
1,504
Postovi:
88
Teme:
Pridružio se:Sep. 2010
12. Maj 2011.
Lane_Hudson wrote on May 12, 2011, 6:08 pm:
Koji je tu red 20? 😁
OG Legend
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosAktivan Član
4 / 250 XP
Početnik(0)
2,741
Postovi:
185
Teme:
Pridružio se:Apr. 2010
12. Maj 2011.
Evo redovi
EDIT😛a FS je nigde nisam napisao da je include
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😛a FS je nigde nisam napisao da je include
Kingpin
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
1,362
Postovi:
35
Teme:
Pridružio se:Jun 2010
12. Maj 2011.
#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 -.-''
#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 -.-''
OG Legend
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosAktivan Član
4 / 250 XP
Početnik(0)
2,741
Postovi:
185
Teme:
Pridružio se:Apr. 2010
12. Maj 2011.
Quote from May 12, 2011, 6:16 pm:
#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)
#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
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava
