06.12.2016, 09:32 
	
	
	
		Pessoal, estou com um probleminha aqui para mostrar as quatros variбveis abaixo no meu Dialog, lб no final. Se alguйm souber o que fiz de errado, por favor me fale.
	
	
	
	
PHP код:
enum pInfoRotas {
    fornecedor[25], //Esta
    loc1[25], //Esta
    Float:loc1x,
    Float:loc1y,
    Float:loc1z,
    loc2[25], //Esta
    Float:loc2x,
    Float:loc2y,
    Float:loc2z,
    tempo,
    carga[25], //Esta
    valor
}
new PlayerInfoRotas[MAX_PLAYERS][pInfoRotas]; 
PHP код:
forward AplicandoCargas(playerid);
public AplicandoCargas(playerid) {
    cache_get_field_content(0, "fornecedor", PlayerInfoRotas[playerid][fornecedor]);
    cache_get_field_content(0, "loc1", PlayerInfoRotas[playerid][loc1]);
    PlayerInfoRotas[playerid][loc1x] = cache_get_field_content_float(0, "loc1x");
    PlayerInfoRotas[playerid][loc1y] = cache_get_field_content_float(0, "loc1y");
    PlayerInfoRotas[playerid][loc1z] = cache_get_field_content_float(0, "loc1z");
    cache_get_field_content(0, "loc2", PlayerInfoRotas[playerid][loc2]);
    PlayerInfoRotas[playerid][loc2x] = cache_get_field_content_float(0, "loc2x");
    PlayerInfoRotas[playerid][loc2y] = cache_get_field_content_float(0, "loc2y");
    PlayerInfoRotas[playerid][loc2z] = cache_get_field_content_float(0, "loc2z");
    PlayerInfoRotas[playerid][tempo] = cache_get_field_content_int(0, "tempo");
    cache_get_field_content(0, "carga", PlayerInfoRotas[playerid][carga]);
    PlayerInfoRotas[playerid][valor] = cache_get_field_content_int(0, "valor");
    return 1;
} 
PHP код:
CMD:trabalhar(playerid) {
    if(Trabalhando[playerid] != 0) return SendClientMessage(playerid, -1, "Vocк jб estб Trabalhando!");
    if(Emprego[playerid] == Caminhoneiro) {
        new vehicleid = GetPlayerVehicleID(playerid);
        if(GetVehicleModel(vehicleid) == 455) {
            new query[120];
            mysql_format(MySqlC, query, sizeof(query), "SELECT * FROM `cargasflatbad` WHERE `id` = '1'");
            mysql_tquery(MySqlC, query, "AplicandoCargas", "i", playerid);
            new string[120];
            format(string, sizeof(string), "De: %s - Para: %s", PlayerInfoRotas[playerid][loc1], PlayerInfoRotas[playerid][loc2]); //Esta
            ShowPlayerDialog(playerid, DIALOG01, DIALOG_STYLE_LIST, "Rotas Testy", string, "Aceitar", "Recusar"); //Esta
        }
    }
    return 1;
} 


