#define SetPlayerHoldingObject(%1,%2,%3,%4,%5,%6,%7,%8,%9) SetPlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJ ECTS-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_ATTAC HED_OBJECTS-1) |
C:\Documents and Settings\Daniel Silva\Desktop\GT\gamemodes\GT.pwn(127 : error 017: undefined symbol "SetPlayerAttachedObject" C:\Documents and Settings\Daniel Silva\Desktop\GT\gamemodes\GT.pwn(1292) : error 017: undefined symbol "RemovePlayerAttachedObject" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors. Nessas linha: SetPlayerHoldingObject( playerid, 0, 18728, 1, 0.000000, 0.014106, -1.696333, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); RemovePlayerAttachedObject(playerid,0); |
native RemovePlayerAttachedObject(playerid, index);
native IsPlayerAttachedObjectSlotUsed(playerid, index);
if(strcmp(cmdtext, "/us", true) == 0) { new string[16]; new aname[MAX_PLAYER_NAME]; GetPlayerName(playerid, aname, MAX_PLAYER_NAME); if(sinalizador[playerid] == 1){ format(string, sizeof(string), "Vocк estб usando o sinalizador. para parar use: /PS.", aname, playerid); SendClientMessage(playerid, Azul, string); IsPlayerAttachedObjectSlotUsed( playerid, 0, 18728, 1, 0.000000, 0.014106, -1.696333, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); // smoke_flare - SINALIZADOR } else { SendClientMessage(playerid, Vermelho,"Vocк nгo tem sinalizador!."); } return 1; } if(strcmp(cmdtext, "/ps", true) == 0) { new string[16]; new aname[MAX_PLAYER_NAME]; GetPlayerName(playerid, aname, MAX_PLAYER_NAME); if(sinalizador[playerid] == 1){ format(string, sizeof(string), "Vocк parou de usar o sinalizador. para usar use: /US", aname, playerid); SendClientMessage(playerid, Azul, string); RemovePlayerAttachedObject(playerid,0); } else { SendClientMessage(playerid, Vermelho,"Vocк nгo tem sinalizador!."); } return 1; } |
if(strcmp(cmdtext, "/us", true) == 0)
{
new string[16];
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
if(sinalizador[playerid] == 1)
{
format(string, sizeof(string), "Vocк estб usando o sinalizador. para parar use: /PS.", aname, playerid);
SendClientMessage(playerid, Azul, string);
SetPlayerHoldingObject( playerid, 0, 18728, 1, 0.000000, 0.014106, -1.696333, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); // smoke_flare - SINALIZADOR
sinalizador[playerid] = 1;
}
else
{
SendClientMessage(playerid, Vermelho,"Vocк nгo tem sinalizador!.");
}
return 1;
}
if(strcmp(cmdtext, "/ps", true) == 0)
{
new string[16];
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
if(sinalizador[playerid] == 1)
{
format(string, sizeof(string), "Vocк parou de usar o sinalizador. para usar use: /US", aname, playerid);
SendClientMessage(playerid, Azul, string);
RemovePlayerAttachedObject(playerid,0);
}
else
{
SendClientMessage(playerid, Vermelho,"Vocк nгo tem sinalizador!.");
}
return 1;
}
C:\Documents and Settings\Daniel Silva\Desktop\GT\gamemodes\GT.pwn(1282) : error 036: empty statement Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. |
SetPlayerHoldingObject( playerid, 0, 18728, 1, 0.000000, 0.014106, -1.696333, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); // smoke_flare - SINALIZADOR |
(playerid, modelid, bone, Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ, Float:fRotX, Float:fRotY, Float:fRotZ)