[AJUDA] problema com escudo
#1

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;
    }
Reply
#2

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

Adicionei mas ainda continua os msm erros '-'
Reply
#4

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

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
Reply
#6

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.
Reply
#7

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

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 .
Reply
#9

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.
Reply
#10

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


Forum Jump:


Users browsing this thread: 5 Guest(s)