[REP+] If anyone help me to fix DealerShip problem.
#1

A little problem with an DealerShip system, down i will show you all commands and all
things. Each command work fine but there is one command for buying the vehicles and bikes
the TextDraw for left and right not working when you click right nothing or left cant
change the car and then to click F to buy it, that not working only other everything working fine
i tryed to fix them but there no solution i check everything and i got nothing so thats why
im asking you guys who will see and try to help me to fix this problem.



Also if there no solution there is other guys who watch this thread and trying to help me
but they don't work with textdraws or something they know dialog perfect can help me
to do the same command with dialog like dialog to choose cars i know how to make dialog
and put everything there but i dont know how to make to can buy when you click on that car
to work with my dealership.. Thanks




Commands for buy:

pawn Код:
dcmd_buycar(playerid,params[])
{
    if(IsShoping[playerid] == 0)
    {
        if(GetPlayerState(playerid) != 2)
        {
            if(IsPlayerInRangeOfPoint(playerid,7.00,564.0015,-1283.4336,17.2559))
            {
                #pragma unused params
                TogglePlayerControllable(playerid, 0);
                new string[128];
                IsShoping[playerid] = 1;
                SCM(playerid, aboja, " Use the left and right to change the bike!");
                SCM(playerid, aboja, " To buy click on (F)");
                SCM(playerid, aboja, " To quit from bike choose CTRL");
                SVozilaTextDraw(playerid);
                format(string,sizeof(string),"~w~%s~n~~n~~h~~h~~b~Cijena: %d~n~~n~~h~~h~~y~< ~g~next ~h~~h~~y~>",VehNames[vCars[ShopVeh1[1]][0] -400],vCars[ShopVeh1[1]][1]);
                TextDrawSetString(CarShopTextDraw[playerid],string);
                }else{SCM(playerid, aboja, " Nisi u salonu!");}
            }else{SCM(playerid, aboja, " Nemozes kupovati iz vozila!");}
        }else{SCM(playerid, aboja, " Vec listas katalog!");}
    return 1;
}

dcmd_buybike(playerid,params[])
{
    if(IsShoping[playerid] == 0)
    {
        if(GetPlayerState(playerid) != 2)
        {
            if(IsPlayerInRangeOfPoint(playerid,7.00,1298.7928,-1870.8855,13.5469))
            {
                #pragma unused params
                new string[128];
                TogglePlayerControllable(playerid, 0);
                IsShoping[playerid] = 2;
                SCM(playerid, aboja, " Use the left and right to change the bike!");
                SCM(playerid, aboja, " To buy click on (F)");
                SCM(playerid, aboja, " To quit from bike choose CTRL");
                SVozilaTextDraw(playerid);
                format(string,sizeof(string),"~w~%s~n~~n~~h~~h~~b~Cijena: %d~n~~n~~h~~h~~y~< ~g~next ~h~~h~~y~>",VehNames[vBikes[ShopVeh2[1]][0] -400],vBikes[ShopVeh2[1]][1]);
                TextDrawSetString(CarShopTextDraw[playerid],string);
                }else{SCM(playerid, aboja, " Nisi u salonu!");}
            }else{SCM(playerid, aboja, " Nemozes kupovati iz vozila!");}
        }else{SCM(playerid, aboja, " Vec listas katalog!");}
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)