SA-MP Forums Archive
[ajuda] /conduizir - 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] /conduizir (/showthread.php?tid=248600)



[ajuda] /conduizir - JOKERBOY - 14.04.2011

/conduzir [id]

http://pastebin.com/K5pZrdPx


ERROS:
Код:
C:\Users\GABRIEL\Desktop\samp03csvr_R2-2_win32\gamemodes\JokerBoy.pwn(221) : warning 217: loose indentation
C:\Users\GABRIEL\Desktop\samp03csvr_R2-2_win32\gamemodes\JokerBoy.pwn(223) : error 021: symbol already defined: "cmd"
C:\Users\GABRIEL\Desktop\samp03csvr_R2-2_win32\gamemodes\JokerBoy.pwn(225) : error 035: argument type mismatch (argument 2)
C:\Users\GABRIEL\Desktop\samp03csvr_R2-2_win32\gamemodes\JokerBoy.pwn(225) : error 035: argument type mismatch (argument 2)
C:\Users\GABRIEL\Desktop\samp03csvr_R2-2_win32\gamemodes\JokerBoy.pwn(233) : error 035: argument type mismatch (argument 2)
C:\Users\GABRIEL\Desktop\samp03csvr_R2-2_win32\gamemodes\JokerBoy.pwn(233) : error 035: argument type mismatch (argument 2)
C:\Users\GABRIEL\Desktop\samp03csvr_R2-2_win32\gamemodes\JokerBoy.pwn(235) : error 017: undefined symbol "vehicleid"
C:\Users\GABRIEL\Desktop\samp03csvr_R2-2_win32\gamemodes\JokerBoy.pwn(243) : warning 209: function "OnPlayerCommandText" should return a value
C:\Users\GABRIEL\Desktop\samp03csvr_R2-2_win32\gamemodes\JokerBoy.pwn(244) : error 054: unmatched closing brace ("}")
C:\Users\GABRIEL\Desktop\samp03csvr_R2-2_win32\gamemodes\JokerBoy.pwn(246) : error 010: invalid function or declaration
C:\Users\GABRIEL\Desktop\samp03csvr_R2-2_win32\gamemodes\JokerBoy.pwn(250) : error 010: invalid function or declaration
C:\Users\GABRIEL\Desktop\samp03csvr_R2-2_win32\gamemodes\JokerBoy.pwn(252) : error 054: unmatched closing brace ("}")
C:\Users\GABRIEL\Desktop\samp03csvr_R2-2_win32\gamemodes\JokerBoy.pwn(254) : error 010: invalid function or declaration
C:\Users\GABRIEL\Desktop\samp03csvr_R2-2_win32\gamemodes\JokerBoy.pwn(257) : error 010: invalid function or declaration
C:\Users\GABRIEL\Desktop\samp03csvr_R2-2_win32\gamemodes\JokerBoy.pwn(260) : error 010: invalid function or declaration
C:\Users\GABRIEL\Desktop\samp03csvr_R2-2_win32\gamemodes\JokerBoy.pwn(262) : error 010: invalid function or declaration
C:\Users\GABRIEL\Desktop\samp03csvr_R2-2_win32\gamemodes\JokerBoy.pwn(264) : error 010: invalid function or declaration
C:\Users\GABRIEL\Desktop\samp03csvr_R2-2_win32\gamemodes\JokerBoy.pwn(268) : error 010: invalid function or declaration
C:\Users\GABRIEL\Desktop\samp03csvr_R2-2_win32\gamemodes\JokerBoy.pwn(271) : error 010: invalid function or declaration
C:\Users\GABRIEL\Desktop\samp03csvr_R2-2_win32\gamemodes\JokerBoy.pwn(274) : error 010: invalid function or declaration
C:\Users\GABRIEL\Desktop\samp03csvr_R2-2_win32\gamemodes\JokerBoy.pwn(277) : error 010: invalid function or declaration
C:\Users\GABRIEL\Desktop\samp03csvr_R2-2_win32\gamemodes\JokerBoy.pwn(281) : error 010: invalid function or declaration
C:\Users\GABRIEL\Desktop\samp03csvr_R2-2_win32\gamemodes\JokerBoy.pwn(284) : error 010: invalid function or declaration
C:\Users\GABRIEL\Desktop\samp03csvr_R2-2_win32\gamemodes\JokerBoy.pwn(286) : error 010: invalid function or declaration
C:\Users\GABRIEL\Desktop\samp03csvr_R2-2_win32\gamemodes\JokerBoy.pwn(287) : error 010: invalid function or declaration
C:\Users\GABRIEL\Desktop\samp03csvr_R2-2_win32\gamemodes\JokerBoy.pwn(296) : error 021: symbol already defined: "GetPlayerPos"
C:\Users\GABRIEL\Desktop\samp03csvr_R2-2_win32\gamemodes\JokerBoy.pwn(301) : error 010: invalid function or declaration
C:\Users\GABRIEL\Desktop\samp03csvr_R2-2_win32\gamemodes\JokerBoy.pwn(304) : error 010: invalid function or declaration

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
OBS: Me fale onde estб o erro para mim nгo errar mais...


Re: [ajuda] /conduizir - Jorge_Hard - 14.04.2011

Oque se quer que o comando faзa?

Fala oque o comando deveria fazer


Re: [ajuda] /conduizir - JOKERBOY - 14.04.2011

Quero que o "[id]" entre no veiculo obrigatoriamente..

-- PUTPLAYERINVEHICLE


Re: [ajuda] /conduizir - Macintosh - 14.04.2011

pawn Код:
if(strcmp(cmd, "/conduzir", true) == 0)
    {
    if(gTeam[playerid] != POLICIAL)
        {
         SendClientMessage(playerid, 0x919191FF ,"[ERRO] Nгo йs Policial!");
         return 1;
        }
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp)) return SendClientMessage(playerid, 0x919191FF, "USE: /conduzir"");
        giveplayerid = strval(tmp);
        GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
        if(!IsPlayerConnected(giveplayerid))SendClientMessage(playerid, VERMELHO, "
- Erro: Jogador nгo conectado");
        PutPlayerInVehicle(giveplayerid, vehicleid, 0);
        format(string, sizeof(string), "
Admin %s[%i] killed you!", sendername, playerid);
        SendClientMessage(giveplayerid, AZUL_A , string);
        format(string, sizeof(string), "
Killed %s[%i]!", giveplayer, giveplayerid);
        SendClientMessage(playerid, AZUL_A , string);
        return 1;
   }
Se nгo funfar... Tenta esse...

pawn Код:
if(strcmp(cmd, "/entrarcarro", true) == 0)
    {
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
        {
            SendClientMessage(playerid, 0x919191FF, "USE: /entrarcarro [carro id]");
            return 1;
        }
        new testcar = strval(tmp);
        if (gTeam[playerid] != POLICIAL)
        {
                PutPlayerInVehicle(playerid, testcar, 1);
            SendClientMessage(playerid, 0x919191FF, "Vocк foi teleportado pelo Admin!");
        }
        else
        {
            SendClientMessage(playerid, 0x919191FF, "   Vocк nгo esta autorizado a usar este comando!");
        }
      return 1;
    }



Re: [ajuda] /conduizir - JOKERBOY - 14.04.2011

Posta em PASTEBIN por favor. e me fale onde estб os erros ??


Re: [ajuda] /conduizir - Macintosh - 14.04.2011

Quote:
Originally Posted by JOKERBOY
Посмотреть сообщение
Posta em PASTEBIN por favor. e me fale onde estб os erros ??
O Erro estava nesta linha

pawn Код:
SendClientMessage(playerid, 0x919191FF, "USE: \"/akill [ID]\""); // Mais precisamente nas aspas.
E se nгo me engano nas chaves que estavam incoerentes.


Re: [ajuda] /conduizir - JOKERBOY - 14.04.2011

Tranquilo : )

Posta em PasteBin porfavor ??


Re: [ajuda] /conduizir - Macintosh - 14.04.2011

Quote:
Originally Posted by JOKERBOY
Посмотреть сообщение
Tranquilo : )

Posta em PasteBin porfavor ??
LOL?
Pra quк ?
O cуdigo jб estб ai cara.


Re: [ajuda] /conduizir - JOKERBOY - 14.04.2011

Mais sai tudo em uma linha : )


Re: [ajuda] /conduizir - Macintosh - 14.04.2011

http://pastebin.com/BYDJKf9Q