Jump to content

[REZOLVAT] Problema select textdraw


GabiVlgS
 Share

Recommended Posts

Username:GabiVlg
Problema întălnită:Am facut un sistem de rentcar pe td, cu selectare tot, si nu imi apare cursor-ul
Detalii despre problemă: Am pus in gamemode tot, SelectTextdraw, am modificat si la "PlayerTextDrawLetterSize", dar tot degeaba, nu imi apare cursor-ul sa selectez
Ce ai încercat să faci înainte să postezi?:  - 
Cod sursă (recomandat pastebin.com) : nu-i nevoie
Alte detalii: - 

Link to comment
Share on other sites

https://imgur.com/EPAy4yr

https://imgur.com/TR7GnA6

 

public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid) {
    new string[180], minutes;

    if(minutes < 5 || minutes > 60) 
        return SCM(playerid, -1, "{51f542}(Rent Car){ffffff}: Poti inchiria un vehicul intre 5 si 60 minute.");
    if(GetPlayerMoney(playerid) < minutes*RENT_PRICE) return SCM(playerid, -1, "{51f542}(Rent Car){ffffff}: Nu detii banii necesari pentru a inchiria.");
    GivePlayerMoney(playerid, -minutes*RENT_PRICE);
    if(playertextid == RentPTD[0]) {
        format(string, sizeof(string), "Ai inchiriat un NRG-500 pentru %d minute si ai platit $%d.", minutes, minutes*RENT_PRICE);
        RentVehicle[playerid] = CreateVehicle(522, 1187.8145, -1305.0448, 13.0057, -93.3000, -1, -1, 100);
        for(new i = 0; i < 3; i++) PlayerTextDrawHide(playerid, RentPTD);
        for(new i = 0; i < 4; i++) TextDrawHideForPlayer(playerid, RentTD);
    }
    if(playertextid == RentPTD[1]) {
        format(string, sizeof(string), "Ai inchiriat un Faggio pentru %d minute si ai platit $%d.", minutes, minutes*RENT_PRICE);
        RentVehicle[playerid] = CreateVehicle(462, 1187.8145, -1305.0448, 13.0057, -93.3000, -1, -1, 100);
        for(new i = 0; i < 3; i++) PlayerTextDrawHide(playerid, RentPTD);
        for(new i = 0; i < 4; i++) TextDrawHideForPlayer(playerid, RentTD);
    }
    if(playertextid == RentPTD[2]) {
        format(string, sizeof(string), "Ai inchiriat un Bike pentru %d minute si ai platit $%d.", minutes, minutes*RENT_PRICE);
        RentVehicle[playerid] = CreateVehicle(510, 1187.8145, -1305.0448, 13.0057, -93.3000, -1, -1, 100);
        for(new i = 0; i < 3; i++) PlayerTextDrawHide(playerid, RentPTD);
        for(new i = 0; i < 4; i++) TextDrawHideForPlayer(playerid, RentTD);    
    }
    PlayerTimer[playerid] = SetTimerEx("RentCar", 60000*minutes, false, "%d", playerid);
    SCM(playerid, -1, string);
    PutPlayerInVehicle(playerid, RentVehicle[playerid], 0);
    SelectTextDraw(playerid, 0xFFFFFF00);

return true;

}

CMD:rentcar(playerid, params[]) {
    if(!PlayerToPoint(5.0, playerid, 1178.7922,-1317.2759,14.1148))
        return SCM(playerid, COLOR_WHITE, "Nu te aflii langa rent car!");
    for(new i = 0; i < 3; i++) PlayerTextDrawShow(playerid, RentPTD);
    for(new i = 0; i < 4; i++) TextDrawShowForPlayer(playerid, RentTD);
    SelectTextDraw(playerid, 0xFFFFFF00);
    return true;
}

Link to comment
Share on other sites

  • 2 weeks later...
Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...