[AJUDA] Erros no PlayerAttachedObject !!!
#1

ae galera, estao com um problema aqui sera que alguem pode ajudar ??

ja pus essas defines:
Quote:

#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)

ta dano esses erros:
Quote:

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);

AJUDA VLW !!!1
Reply
#2

adicione isto antes da defines:
pawn Код:
native RemovePlayerAttachedObject(playerid, index);
native IsPlayerAttachedObjectSlotUsed(playerid, index);
Reply
#3

Preciso de ajuda nesses 2 cmds.
Quote:

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;
}

da uma olhada ae e ver oque ta errado, fui testar aqui e no /US nao adicionou o sinalizador !!

VLW !!!
Reply
#4

pawn Код:
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;
}
espero ter ajudado novamente.
Reply
#5

Quote:

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.

Linha :
Quote:

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

Reply
#6

pawn Код:
(playerid, modelid, bone, Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ, Float:fRotX, Float:fRotY, Float:fRotZ)
Parвmetros do SetPlayerHoldingObject.
Reply
#7

Parametros incorretos.

Corrija-os observando o link desta funзгo no Wiki-SA-MP: https://sampwiki.blast.hk/wiki/SetPlayerHoldingObject

#EDIT

Malz pela double post ... Eu havia aberto esta pagina, mas quando fui postar nao atualizei e, por isto, nгo vi o post acima.
Reply
#8

O Sinalizador nao adicionar :S
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)