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 );
#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;
}
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.
//--------------------------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; }
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. Код:
//--------------------------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; } |
#include <a_samp>
#include <zcmd>
#include <zcmd>
#include <zcmd>
pawn Код:
pawn Код:
|
SetPlayerAttachedObject(playerid, index, modelid, bone, Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ, Float:fRotX, Float:fRotY, Float:fRotZ, Float:fScaleX, Float:fScaleY, Float:fScaleZ);
SetPlayerAttachedObject(playerid, index, model, bone);