[ajuda] /conduizir
#1

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

Oque se quer que o comando faзa?

Fala oque o comando deveria fazer
Reply
#3

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

-- PUTPLAYERINVEHICLE
Reply
#4

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

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

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

Tranquilo : )

Posta em PasteBin porfavor ??
Reply
#8

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

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

Mais sai tudo em uma linha : )
Reply
#10

http://pastebin.com/BYDJKf9Q
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)