23.04.2018, 00:23
What is going wrong? I want the player of the command in a certain place but it has to be with the
Quote:
CMD:rotas (playerid, params[], vehicleid) //caminhoneiro { new car = GetPlayerVehicleID(playerid); new trailerid = GetVehicleTrailer(vehicleid); if(Profissao[playerid] == 2){ if(car >= Caminhao[0] || car <= Caminhao[7] || trailerid >= Trailer[0] || trailerid <= Trailer[9]){ if(IsPlayerInRangeOfPoint (playerid, 8.0, -14.5578,-273.8524,6.0360)){ if(IsTrailerAttachedToVehicle (trailerid, car)){ new string[350]; strcat(string, "Produtos \t Locais \t Valor \n"); strcat(string,"{A2C9EA}Raзгo \t {FFFFFF}Merket-SF \t {008000}352$\n"); strcat(string,"{A2C9EA}Fertilizantes \t {FFFFFF}Matadouro-LV \t {008000}403$\n"); strcat(string,"{A2C9EA}Sementes \t {FFFFFF}Armazйm-SF \t {008000}192$\n"); strcat(string,"{A2C9EA}Trigos \t {FFFFFF}Merket-SF \t {008000}135$\n"); strcat(string,"{A2C9EA}Leite \t {FFFFFF}Merket-SF \t {008000}459$\n"); strcat(string,"{A2C9EA}Frutas \t {FFFFFF}Merket-SF \t {008000}439$\n"); strcat(string,"{A2C9EA}Eletronicos \t {FFFFFF}Merket-SF \t {008000}352$\n"); strcat(string,"{A2C9EA}Eletronicos \t {FFFFFF}Merket-SF \t {008000}352$\n"); ShowPlayerDialog (playerid, rotasc, DIALOG_STYLE_TABLIST_HEADERS, "Entregas",string, "Selecionar","Cancelar");}}}} return 1; } |