Jump to content

Miki Romania

Membru
  • Posts

    15
  • Joined

  • Last visited

Posts posted by Miki Romania

  1. Salut! Am si eu nevoie de ajutor. Imi da aceasta eroare si nu stiu ce sa fac:  "error 017: undefined symbol "GetDistanceBetweenPoints""

     

    Iar acesta este codul

    	new rand, Float:Ppoz[3], distance;
    	rand = random(sizeof(PizzaJob));
    	GetPlayerPos(playerid, Ppoz[0], Ppoz[1], Ppoz[2]);
    	distance = floatround(GetDistanceBetweenPoints(Ppoz[0], Ppoz[1], Ppoz[2], PizzaJob[rand][0], PizzaJob[rand][1], PizzaJob[rand][2]), floatround_round);

     

  2. Salut.Am facut un text draw care arata timpul dar nu se updateaza,ce sa fac

    function settime() {
    	new string[256];
        new year,month,day,hours,minutes,seconds;
        getdate(year, month, day), gettime(hours, minutes, seconds);
        format(string, sizeof string, "%s%d.%s%d.%s%d",((day < 10) ? ("0") : ("")), day, ((month < 10) ? ("0") : ("")), month, (year < 10) ? ("0") : (""), year);
        TextDrawSetString(DATA, string);
        format(string, sizeof(string), "%02d:%02d", hours+1, minutes);
        TextDrawSetString(TIMP, string);
    	SetWorldTime(hours);
    	TextDrawShowForAll(TIMP);
    	TextDrawShowForAll(DATA);
        return 1; 
    }

     

    https://imgur.com/sXXBGNl

  3. Help, cand dau compile imi da eroarea asta "error 040: duplicate "case" label (value 5)"

    Asta e linia:

    Quote

            case DIALOG_JOBS: {
                new string[256];
                if(!response) return 1;
                listitem = GetPVarInt(playerid, "listitem");
                switch(listitem) {
                    case 0: {
                        format(string, sizeof(string), "Ti-am trimis coordonatele de la jobul Farmer");
                        SetPlayerCheckpoint(playerid, -382.7026,-1426.6471,26.2501, 5.0);
                    }
                    case 1: {
                        format(string, sizeof(string), "Esti ok?");
                    }
                }
                SCM(playerid, COLOR_WHITE, string);
            }

    Si astea sunt dialog-urile de le am:

    Quote

    enum {
        //REGISTER
           DIALOG_REGISTER,
        DIALOG_EMAIL,
        DIALOG_GENDER,

        //Login// 
        DIALOG_LOGIN,

        //RENT// 
        DIALOG_RENT,

        //Jobs// 
        DIALOG_JOBS 
    }

     

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.