24.11.2011, 15:05
I did it ... but i got this errors
Here is Code i put....
EDIT:NEED HELP!
Код:
E:\satdm script\test\Gamemodes\SATDM~RP13.pwn(42432) : error 017: undefined symbol "IsPlayerAttachedObjectSlotUsed" E:\satdm script\test\Gamemodes\SATDM~RP13.pwn(42433) : error 017: undefined symbol "RemovePlayerAttachedObject" E:\satdm script\test\Gamemodes\SATDM~RP13.pwn(42435) : error 010: invalid function or declaration E:\satdm script\test\Gamemodes\SATDM~RP13.pwn(42436) : error 010: invalid function or declaration E:\satdm script\test\Gamemodes\SATDM~RP13.pwn(42437) : error 010: invalid function or declaration E:\satdm script\test\Gamemodes\SATDM~RP13.pwn(42438) : error 010: invalid function or declaration E:\satdm script\test\Gamemodes\SATDM~RP13.pwn(42439) : error 010: invalid function or declaration E:\satdm script\test\Gamemodes\SATDM~RP13.pwn(42440) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 8 Errors.
PHP код:
#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)
CMD:incred(playerid, params[])
{
for ( new i = 0; i < 5; i ++ )
if ( IsPlayerAttachedObjectSlotUsed( playerid, i ) )
RemovePlayerAttachedObject( playerid, i );
}
SetPlayerAttachedObject( playerid, 0, 18693, 5); // Flame99 - handfire left
SetPlayerAttachedObject( playerid, 1, 18693, 6); // Flame99 - handfie right
SetPlayerAttachedObject( playerid, 2, 18703, 6); // overheat_car - dust right
SetPlayerAttachedObject( playerid, 3, 18703, 5); // overheat_car - dustleft
SetPlayerAttachedObject( playerid, 4, 18965, 2); // SkullyCap2 - skull
return 1;
}

