Jump to content
  • 0

Problema TD farmer


Master18

Question

Problema intalnita (descriere):Cand dau startwork imi apare la td doar textul "Se incarca..." si nu se mai schimba in textul "Condu cu minim 25km bla bla", TD-URILE Le-am pus la OnPlayerConnect
Ero(area / rile) / warning-(ul / urile):-
Liniile de cod / sursa / script-ul(obligatoriu):Functia:

if(PlayerInfo[pJob] == 1)
            {
                new newcar = GetPlayerVehicleID(i);
                if(GetVehicleModel(newcar) == 532 && FarmerTimer != 0)
                {
                    new Float:x, Float:y, Float:z, Float:Speeed;
                    GetVehicleVelocity(GetPlayerVehicleID(i), x, y, z);
                    Speeed = floatmul(floatsqroot(floatadd(floatadd(floatpower(x, 2), floatpower(y, 2)),  floatpower(z, 2))), 100.0);
                    Speed = floatround(floatdiv(Speeed, 0.75), floatround_floor);
                    if(Speed >= 25 && FarmerTimer >= 1)
                    {
                        //new string[256];
                        if(PlayerToPoint(300.0, i, -202.4156,-11.0236,3.1094))
                        {
                            FarmerTimer --;
                            format(string, sizeof(string), "Mergi cu combina inca %d secunde.", FarmerTimer);
                        }
                        else {
                            format(string, sizeof(string), "Mergi cu combina inca %d secunde~n~~r~(!) ~w~Nu te aflii in apropierea fermei.", FarmerTimer);
                        }
                        PlayerTextDrawSetString(i, FermierTD, string);
                    }
                    else
                    {
                    //    new string[256];
                        format(string, sizeof(string), "Mergi cu combina inca %d secunde~n~~r~(!) ~w~Trebuie sa mergi cu minim ~b~25 km~n~", FarmerTimer);
                        if(!PlayerToPoint(200.0, i, -202.4156,-11.0236,3.1094))
                        {
                            format(string, sizeof(string), "Mergi cu combina inca %d secunde.~n~~r~(!) ~w~Trebuie sa mergi cu minim ~b~25 km~n~~r~(!) ~w~Nu te aflii in apropierea fermei.", FarmerTimer);
                        }
                        PlayerTextDrawSetString(i, FermierTD, string);
                    }
                    if(FarmerTimer == 0)
                    {
                        SetPlayerCheckpoint(i, -410.3464, -1426.3804, 25.7209, 5);
                        PlayerTextDrawSetString(i, FermierTD, "Mergi la checkpoint-ul rosu marcat de pe mapa~n~... pentru a lua sacul cu faina!");
                        FinalCP = 1;
                    }
                }

TD:

Spoiler

    FermierTDs[0] = TextDrawCreate(166.919601, 205.666488, "usebox");
    TextDrawLetterSize(FermierTDs[0], 0.000000, 5.909444);
    TextDrawTextSize(FermierTDs[0], 26.111267, 0.000000);
    TextDrawAlignment(FermierTDs[0], 1);
    TextDrawColor(FermierTDs[0], 0);
    TextDrawUseBox(FermierTDs[0], true);
    TextDrawBoxColor(FermierTDs[0], 102);
    TextDrawSetShadow(FermierTDs[0], 0);
    TextDrawSetOutline(FermierTDs[0], 0);
    TextDrawFont(FermierTDs[0], 0);

    FermierTDs[1] = TextDrawCreate(168.325027, 203.916580, "usebox");
    TextDrawLetterSize(FermierTDs[1], 0.000000, 6.283518);
    TextDrawTextSize(FermierTDs[1], 24.705707, 0.000000);
    TextDrawAlignment(FermierTDs[1], 1);
    TextDrawColor(FermierTDs[1], 0);
    TextDrawUseBox(FermierTDs[1], true);
    TextDrawBoxColor(FermierTDs[1], 892744874);
    TextDrawSetShadow(FermierTDs[1], -2);
    TextDrawSetOutline(FermierTDs[1], 0);
    TextDrawFont(FermierTDs[1], 0);

    FermierTDs[2] = TextDrawCreate(66.998535, 207.083221, "~y~Job Info");
    TextDrawLetterSize(FermierTDs[2], 0.391434, 1.570833);
    TextDrawAlignment(FermierTDs[2], 1);
    TextDrawColor(FermierTDs[2], -1);
    TextDrawSetShadow(FermierTDs[2], 0);
    TextDrawSetOutline(FermierTDs[2], 1);
    TextDrawBackgroundColor(FermierTDs[2], 255);
    TextDrawFont(FermierTDs[2], 3);
    TextDrawSetProportional(FermierTDs[2], 1);

    FermierTD[playerid] = CreatePlayerTextDraw(playerid, 33.733543, 226.916564, "~y~Se incarca...");
    PlayerTextDrawLetterSize(playerid, FermierTD[playerid], 0.205430, 1.034165);
    PlayerTextDrawAlignment(playerid, FermierTD[playerid], 1);
    PlayerTextDrawColor(playerid, FermierTD[playerid], -1);
    PlayerTextDrawSetShadow(playerid, FermierTD[playerid], 1);
    PlayerTextDrawSetOutline(playerid, FermierTD[playerid], 0);
    PlayerTextDrawBackgroundColor(playerid, FermierTD[playerid], 255);
    PlayerTextDrawFont(playerid, FermierTD[playerid], 1);
    PlayerTextDrawSetProportional(playerid, FermierTD[playerid], 1);


Imagini / Video (optional):nu creca este nevoie
Ati incercat sa rezolvati singur?:da

 
Edited by Master18
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

incearca sa modifici asta

FermierTD[playerid] = CreatePlayerTextDraw(playerid, 33.733543, 226.916564, "~y~Se incarca...");

 

in asta

FermierTD[playerid] = CreatePlayerTextDraw(playerid, 33.733543, 226.916564, " ");

 

Si nu uita de functia PlayerTextDrawShow

Edited by Mister

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.