What is going wrong?
#1


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;
}

Reply
#2

make it like this

Код:
CMD:rotas(playerid, params[])
{
        //check is player in certian vehicle, remove extra parameter "vehicleid"
        IsPlayerInVehicle(playerid, vehicleid) seccond check is player in certain vehicle
       IsPlayerInAnyVehicle(playerid) first chech is player in any vehicle use thous 
        return 1;
}
Reply
#3

What's the problem exactly? Which part of the script doesn't work properly?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)