[Pedido] CMD
#6

2 topicos para o mesmo assunto

da outra vez o mau.tito disse isto

Quote:
Originally Posted by mau.tito
Посмотреть сообщение
pawn Код:
CMD:vercarro(playerid, params[])
{
    new vehicleid;
    if(sscanf(params, "d", vehicleid)) return SendClientMessage(playerid, COLOR_GREY, "[Prйfixo]: /vercarro [vehicleid]");
    if(playerinfo[playerid][pMuted] == 1) return SendClientMessage(playerid, COLOR_ERROR, MUTED_ERROR);
    if(playerinfo[playerid][pLogado] == 0) return SendClientMessage(playerid, COLOR_ERROR, LOGIN_ERROR);
   
    new string[150], name[80];
    GetPlayerName(playerid, name, 80);
    format(string, 150, "SELECT * FROM `vehicleinfo` WHERE vehicleid = '",vehicleid,"'");
    mysql_function_query(Conexao, string, false, #, #);
   
    new row, field, donow[80];
    cache_get_data(row,field, Conexao);
    if(!row)
    {
        SendClientMessage(playerid, -1 , "Veiculo nгo encontrado");
    }else {
        cache_get_field_content(0, "emprego", donow); // so fazer assim com as outras infos
        format(string, sizeof(string), "INFO Veiculo %d : Dono (%s)", vehicleid);
        SendClientMessage(playerid, COLOR_LIGHTRED, string);
    }
    return 1;
}
usa como base
Reply


Messages In This Thread
CMD - by willttoonn - 06.10.2013, 04:49
Re: CMD - by willttoonn - 06.10.2013, 13:18
Re: CMD - by Zivo - 06.10.2013, 13:37
Re: CMD - by willttoonn - 06.10.2013, 22:02
Re: CMD - by Zivo - 06.10.2013, 22:06
Re: CMD - by PT - 06.10.2013, 22:09
Re: CMD - by willttoonn - 06.10.2013, 22:17
Re: CMD - by PT - 06.10.2013, 22:18
Re: CMD - by willttoonn - 06.10.2013, 22:28
Re: CMD - by willttoonn - 06.10.2013, 23:23

Forum Jump:


Users browsing this thread: 1 Guest(s)