- 0
Problema Dialog
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
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.
Question
1Shot
Salut, am o problema cu Dialog Box-ul. Am un dialog la DealerShip, in care daca apesi "Select" (prima optiune) iti cumpara masina respectiva, iar daca apesi "Close" (a doua optiune) ar trebui sa iti inchida dialog-ul, sa te teleporteze in fata la dealership, sa iti mute camera inapoi pe tine, etc.
In schimb, mie doar imi inchide dialog-ul, dar nu ma teleporteaza inapoi in fata la dealership si nu imi repozitioneaza camera pe mine... In schimb, daca apas tasta ESC, totul merge perfect, dar daca apas Close pe dialog doar imi inchide dialog-ul si atat...ma lasa cu camera pe dealership, cu virtual world 60, etc.
Sper ca ma puteti ajuta! Multumesc! Acesta este scriptul:
if(dialogid == DIALOG_CARBUY) { if(!response) { SetPlayerPos(playerid, 2131.7500, -1150.4370, 24.1570); TogglePlayerControllable(playerid, 1); SetCameraBehindPlayer(playerid); SetPlayerVirtualWorld(playerid, 0); } else if(response) { new stringz[3000], stringy[3000], stringx[3000]; if(listitem == 0) { for(new xf = 0; xf < MAX_PERSONAL_CARS; xf++) { if(Stock[xf][vPrice] > 0 && Stock[xf][vPrice] <= 7000000) { format(stringy, sizeof(stringy), "{FFFFFF}%s\t{FFFFFF}$%d\t{FFFFFF}%d\n", Stock[xf][vName], Stock[xf][vPrice], Stock[xf][vStock]); strcat(stringz, stringy); } } format(stringx, sizeof(stringx), "Vehicle\tPrice\tStock\n"); strins(stringz, stringx, 0); ShowPlayerDialog(playerid, DIALOG_CARBUY2, DIALOG_STYLE_TABLIST_HEADERS, "{357AB7}Freakz: {FFFFFF}Dealership", stringz, "Select", "Close"); } if(listitem == 1) { for(new xf = 0; xf < MAX_PERSONAL_CARS; xf++) { if(Stock[xf][vPrice] > 7000000 && Stock[xf][vPrice] <= 19999999) { format(stringy, sizeof(stringy), "{FFFFFF}%s\t{FFFFFF}$%d\t{FFFFFF}%d\n", Stock[xf][vName], Stock[xf][vPrice], Stock[xf][vStock]); strcat(stringz, stringy); } } format(stringx, sizeof(stringx), "Vehicle\tPrice\tStock\n"); strins(stringz, stringx, 0); ShowPlayerDialog(playerid, DIALOG_CARBUY3, DIALOG_STYLE_TABLIST_HEADERS, "{357AB7}Freakz: {FFFFFF}Dealership", stringz, "Select", "Close"); } if(listitem == 2) { for(new xf = 0; xf < MAX_PERSONAL_CARS; xf++) { if(Stock[xf][vPrice] >= 20000000 && Stock[xf][vPrice] < 50000000) { format(stringy, sizeof(stringy), "{FFFFFF}%s\t{FFFFFF}$%d\t{FFFFFF}%d\n", Stock[xf][vName], Stock[xf][vPrice], Stock[xf][vStock]); strcat(stringz, stringy); } } format(stringx, sizeof(stringx), "Vehicle\tPrice\tStock\n"); strins(stringz, stringx, 0); ShowPlayerDialog(playerid, DIALOG_CARBUY4, DIALOG_STYLE_TABLIST_HEADERS, "{357AB7}Freakz: {FFFFFF}Dealership", stringz, "Select", "Close"); } } return 1; }
Edited by 1Shot4 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now