How to do this Command?Please Help
#5

I did it like this... But I got these errors...

Код:
E:\satdm script\test\Gamemodes\SATDM~RP13.pwn(42434) : error 017: undefined symbol "IsPlayerAttachedObjectSlotUsed"
E:\satdm script\test\Gamemodes\SATDM~RP13.pwn(42435) : error 017: undefined symbol "RemovePlayerAttachedObject"
E:\satdm script\test\Gamemodes\SATDM~RP13.pwn(42438) : error 017: undefined symbol "SetPlayerAttachedObject"
E:\satdm script\test\Gamemodes\SATDM~RP13.pwn(42439) : error 017: undefined symbol "SetPlayerAttachedObject"
E:\satdm script\test\Gamemodes\SATDM~RP13.pwn(42440) : error 017: undefined symbol "SetPlayerAttachedObject"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.
here is code which i put

Код:
//--------------------------Hold------------------------------------------------
#include <a_samp>

#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:hold(playerid, o[])
{
    for ( new i = 0; i < 5; i++ ) {
        if ( IsPlayerAttachedObjectSlotUsed( playerid, i ) ) {
            RemovePlayerAttachedObject( playerid, i );
        }
    }
    SetPlayerAttachedObject( playerid, 0, 18645, 2, 0.017478, 0.051500, 0.003912, 285.055511, 90.860740, 171.179550, 1.780549, 0.912008, 1.208514 );
    SetPlayerAttachedObject( playerid, 1, 18690, 2, -2.979508, 0.306475, -0.388553, 285.055511, 90.860740, 171.179550, 1.780549, 0.912008, 1.208514 );
    SetPlayerAttachedObject( playerid, 2, 18716, 2, -2.979508, 0.306475, -0.388553, 285.055511, 90.860740, 171.179550, 1.780549, 0.912008, 1.208514 );
    return 1;
}
Reply


Messages In This Thread
How to do this Command?Please Help - by hitman% - 19.11.2011, 09:22
Re: How to do this Command?Please Help - by Kostas' - 19.11.2011, 09:26
Re: How to do this Command?Please Help - by hitman% - 19.11.2011, 09:28
Re: How to do this Command?Please Help - by Smally - 19.11.2011, 09:29
Re: How to do this Command?Please Help - by hitman% - 19.11.2011, 09:34
Re: How to do this Command?Please Help - by hitman% - 19.11.2011, 09:38
Re: How to do this Command?Please Help - by Kostas' - 19.11.2011, 09:39
Re: How to do this Command?Please Help - by hitman% - 19.11.2011, 09:47
Re: How to do this Command?Please Help - by Kostas' - 19.11.2011, 09:50
Re: How to do this Command?Please Help - by =WoR=G4M3Ov3r - 19.11.2011, 09:53

Forum Jump:


Users browsing this thread: 1 Guest(s)