SA-MP Forums Archive
[AJUDA] problema com escudo - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA] problema com escudo (/showthread.php?tid=267796)



[AJUDA] problema com escudo - Johnsin - 09.07.2011

O Erro e esse ai.
Код:
C:\Users\Johnson\Desktop\Johnsinhu\GM\gamemodes\BPC.pwn(43456) : error: 017: undefined symbol "SetPlayerAttachedObject"
C:\Users\Johnson\Desktop\Johnsinhu\GM\gamemodes\BPC.pwn(43456) : warning: 217: loose indentation
C:\Users\Johnson\Desktop\Johnsinhu\GM\gamemodes\BPC.pwn(43456) : warning: 217: loose indentation
O Cуdigo do escudo e esse.
Код:
    if(!strcmp(cmdtext,"/escudo",true))
    {
        if(IsACop(playerid))
        {
            SetPlayerAttachedObject(playerid,3 ,18637, 13, 0.35, 0.0, 0.0, 0.0, 0.0, 180.0);
            SendClientMessage(playerid, COLOR_GREEN, "Vocк colocou escudo");
            new NomedoSafado[MAX_PLAYER_NAME];
            GetPlayerName(playerid, NomedoSafado, sizeof(NomedoSafado));
            format(string, sizeof(string), "O Policial %s colocou o escudo de protecзгo. ", NomedoSafado);
            ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
            TogglePlayerControllable(playerid, 1);
            printf("%s", string);
            return 1;
        }
        else
        {
            SendClientMessage(playerid,COLOR_RED,"Vocк nгo й um Policial.");
        }
        return 1;
    }



Re: [AJUDA] problema com escudo - Transferencia - 09.07.2011

Add isso no comeзo do gm,em baixo das includes:
pawn Код:
#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)



Re: [AJUDA] problema com escudo - Johnsin - 09.07.2011

Adicionei mas ainda continua os msm erros '-'


Re: [AJUDA] problema com escudo - RockFire - 09.07.2011

PHP код:
native SetPlayerAttachedObject(playeridindexmodelidboneFloat:fOffsetXFloat:fOffsetYFloat:fOffsetZFloat:fRotXFloat:fRotYFloat:fRotZFloat:fScaleXFloat:fScaleYFloat:fScaleZ); 



Re: [AJUDA] problema com escudo - Johnsin - 09.07.2011

Vlw, agora so tem avisos.
se tiver como ageitar manda a soluзгo ae

Код:
C:\Users\Johnson\Desktop\Johnsinhu\GM\gamemodes\BPC.pwn(43457) : warning: 202: number of arguments does not match definition
C:\Users\Johnson\Desktop\Johnsinhu\GM\gamemodes\BPC.pwn(43457) : warning: 202: number of arguments does not match definition
C:\Users\Johnson\Desktop\Johnsinhu\GM\gamemodes\BPC.pwn(43457) : warning: 202: number of arguments does not match definition
C:\Users\Johnson\Desktop\Johnsinhu\GM\gamemodes\BPC.pwn(43457) : warning: 217: loose indentation
C:\Users\Johnson\Desktop\Johnsinhu\GM\gamemodes\BPC.pwn(43457) : warning: 217: loose indentation



Re: [AJUDA] problema com escudo - Transferencia - 09.07.2011

loose indentation Sao Falta de Espaзos/Espaзos Excessivos,Procura um tutorial do Garfield de como Identar ai que ele ensina como faiz pra Identar.


Re: [AJUDA] problema com escudo - RockFire - 09.07.2011

PHP код:
SetPlayerAttachedObject(playerid,,18637130.350.00.00.00.0180.0,0.0,0.0,0.0); 



Re: [AJUDA] problema com escudo - rjjj - 09.07.2011

Isto deve resolver o seu problema .



Como a funзгo SetPlayerAttachedObject nгo existe no seu Gamemode, mas outras existem, isso significa que suas includes estгo desatualizadas .




Atualize-as, basta fazer o Download da nova Pasta Server do SA-MP, abrн-la, ir na pasta include (que virб dentro da pasta pawno), selecionar tudo que estiver lб, copiar tudo e depois colar na sua pasta include (que estб na pasta do seu pawno) .



Download da nova Pasta Server aqui: http://team.sa-mp.com/files/samp03csvr_R2-2_win32.zip



Feito isso, apenas adicione o seguinte cуdigo acima da linha 43457 do seu Gamemode :


pawn Код:
#pragma align

Espero ter ajudado .


Re: [AJUDA] problema com escudo - Johnsin - 09.07.2011

Quote:
Originally Posted by feliperch
Посмотреть сообщение
PHP код:
SetPlayerAttachedObject(playerid,,18637130.350.00.00.00.0180.0,0.0,0.0,0.0); 
Vlw parceiro, acabo com os avisos.


Re: [AJUDA] problema com escudo - BrunoBSF - 10.07.2011

Basta vc usar as includes do samp 0.3c q o problema sera resolvido