Jump to content

Question

Posted

salut. am si eu o problema la un gm.La masinile personale cand intru sa le cumpar, nu imi apare textul /v buy intotdeauna. cate-odata apare alta data nu. Din ce cauza sa fie? Asta este comanda.

[pawn]if(IsAnOwnableCar(newcar))

{

    if(CarInfo[newcar][cOwned]==0)

    {

        TogglePlayerControllable(playerid, 0);

        format(string,sizeof(string),"~w~Vehicle: %s~n~Price: ~g~%d~n~~w~/v buy to buy this vehicle~n~~r~/exit ~w~to exit this vehicle",CarInfo[newcar][cDescription],CarInfo[newcar][cValue]);

GameTextForPlayer(playerid,string,5000,5);

    }

    if(CarInfo[newcar][cOwned]==1)

    {

        format(string,sizeof(string),""color_grey"Vehicul inregistrat pe numele:"wh"  %s",CarInfo[newcar][cOwner]);

SendClientMessage(playerid, COLOR_BLUE, string);

if(PlayerInfo[playerid][pPcarkey] == vehicle) { }

else if(PlayerInfo[playerid][pPcarkey2] == vehicle) { }

//else if(PlayerInfo[playerid][pPcarkey3] == vehicle) { }

else

{

    if(PlayerInfo[playerid][pAdmin] >= 8 && AdminDuty[playerid] == 1)

{

    SendClientMessage(playerid, COLOR_GREY, "  You can drive this car because you are admin on duty !");

}

    else

    {

    RemovePlayerFromVehicle(playerid);

    SendClientMessage(playerid, COLOR_GREY, "You don't have a key of this vehicle");

}

}

    }

}

gLastCar[playerid] = newcar;

gLastDriver[newcar] = playerid;

}[/pawn]

3 answers to this question

Recommended Posts

Posted

Nu inteleg la ce te referi exact...

Incearca in loc de [pawn]GameTextForPlayer(playerid,string,5000,5);[/pawn]

sa pui

[pawn]GameTextForPlayer(playerid,string,2000,5);[/pawn]

35012l1.png.aee1a3398b9bd9f8eec50574d2cd

Posted

Deci . cand intru intr-o masina ca sa o cumpar, ar trebui sa apara textul "ca sa cumperi aceasta masina dati /v buy... de exemplu" , dar mie nu imi apare in totdeauna, apare cateodata . dupa ceva timp iar nu mai apare.

Posted

cum sa zic mai sus incearca sa pui 

[pawn]GameTextForPlayer(playerid,string,5000,5);[/pawn]

si pui

[pawn]GameTextForPlayer(playerid,string,2000,5);[/pawn]

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.