[AJUDA] Criar carro
#1

pawn Код:
CMD:carro(playerid, params[])
{
    new id, cid, Float:c[5], cor1, cor2;
    if(PlayerInfo[playerid][mAdmin] < 1) return SendClientMessage(playerid, VERMELHO, falha);
    if(sscanf(params, "dddd", id, cid, cor1, cor2)) return SendClientMessage(playerid, BRANCO, "[INFO] /carro [id] [carid] [cor1] [cor2]");
    {
        GetPlayerPos(id, c[0], c[1], c[2]);
        CreateVehicle(cid, c[0], c[1], c[2], c[2], cor1, cor2, 6000);
    }
    return 1;
}
Sу que nгo estб criando o carro. :/
Reply
#2

Tenta:
pawn Код:
CMD:carro(playerid, params[])
{
    new id, cid, Float:c[3], cor1, cor2;
    if(PlayerInfo[playerid][mAdmin] < 1) return SendClientMessage(playerid, VERMELHO, falha);
    if(sscanf(params, "dddd", id, cid, cor1, cor2)) return SendClientMessage(playerid, BRANCO, "[INFO] /carro [id] [carid] [cor1] [cor2]");
    {
        GetPlayerPos(id, c[0], c[1], c[2]);
        CreateVehicle(cid, c[0], c[1], c[2], c[2], cor1, cor2, -1);
    }
    return 1;
}
Lembre-se que o ID dos veнculo sгo a partir de 400...
Reply
#3

pawn Код:
CreateVehicle(cid, c[0], c[1], c[2], 0.0, cor1, cor2, 6000);
Reply
#4

Quote:
Originally Posted by CidadeNovaRP
Посмотреть сообщение
Tenta:
pawn Код:
CMD:carro(playerid, params[])
{
    new id, cid, Float:c[3], cor1, cor2;
    if(PlayerInfo[playerid][mAdmin] < 1) return SendClientMessage(playerid, VERMELHO, falha);
    if(sscanf(params, "dddd", id, cid, cor1, cor2)) return SendClientMessage(playerid, BRANCO, "[INFO] /carro [id] [carid] [cor1] [cor2]");
    {
        GetPlayerPos(id, c[0], c[1], c[2]);
        CreateVehicle(cid, c[0], c[1], c[2], c[2], cor1, cor2, -1);
    }
    return 1;
}
Lembre-se que o ID dos veнculo sгo a partir de 400...
Certinho
Reply
#5

pawn Код:
if(sscanf(params, "ddd", cid, cor1, cor2)) return SendClientMessage(playerid, BRANCO, "[INFO] /carro [carid] [cor1] [cor2]");
Reply
#6

Quote:
Originally Posted by mengueh
Посмотреть сообщение
Certinho
Deu? Se sim:

Se nгo:
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)