Michal Kuřátko (_Michael_) 49 Odesláno: 13. Leden, 2013 Share Odesláno: 13. Leden, 2013 Čaute, mám banku, když vejdu poprvé na pickup vše je jak má, ale když opustím pickup a znovu na něj vejdu menu už se nezobrazí public Bank_OnPlayerPickUpPickup(playerid, pickupid) { if(IsPlayerInRangeOfPoint(playerid,2,2305.9546,-16.1322,26.7496)) { new b = GetPlayerVirtualWorld(playerid)-2; SetPlayerPos(playerid,BankInfo[b][biX],BankInfo[b][biY],BankInfo[b][biZ]); SetPlayerVirtualWorld(playerid,0); } new i = GetPlayerBank(playerid); if(i != -1) { SetPlayerPos(playerid,2308.6433,-16.2987,26.7496); SetPlayerVirtualWorld(playerid,BankInfo[i][vw]); } if(IsPlayerInRangeOfPoint(playerid,3,2315.9526,-7.3184,26.7422)) { if(!DS[playerid]) { if(!BankAcc(playerid)) { DS[playerid]=true; ShowPlayerDialog(playerid,DIALOGB01,DIALOG_STYLE_MSGBOX,"Banka","Nemáš založený účet.\n Chcete si ho založit za poplatek 20$?","Ano","Ne"); } else { DS[playerid]=true; ShowPlayerDialog(playerid,DIALOGB02,DIALOG_STYLE_INPUT,"Banka","Zadej heslo:","Zadat","Cancel"); } } } return 1; } 1 Link to comment Share on other sites More sharing options...
0 Dress 3 Odesláno: 13. Leden, 2013 Share Odesláno: 13. Leden, 2013 Asi máš velký radius v IsPlayerInRangeOfPoint Link to comment Share on other sites More sharing options...
0 Michal Kuřátko (_Michael_) 49 Odesláno: 13. Leden, 2013 Author Share Odesláno: 13. Leden, 2013 Tím to nebude, to by se mi dialog nezobrazil ani na poprvé Link to comment Share on other sites More sharing options...
0 Adrián Lipták 51 Odesláno: 13. Leden, 2013 Share Odesláno: 13. Leden, 2013 to bude tím DS[playerid] .. EDit:// áno je to tak.. máš ak je DS[pid] false tak mu zobrazí dialog potom mu dáš DS na true.. ale na false už ne tak mu to potom nezobrazí.. Link to comment Share on other sites More sharing options...
0 Michal Kuřátko (_Michael_) 49 Odesláno: 13. Leden, 2013 Author Share Odesláno: 13. Leden, 2013 To je ochrana, aby se stále nerestartoval dialog Link to comment Share on other sites More sharing options...
0 Rad012 23 Odesláno: 14. Leden, 2013 Share Odesláno: 14. Leden, 2013 použil by som tu ochranu takto: hore dám: new bool:ShowedPlayerDialog[MAX_PLAYERS]; vytvorim si stock: stock ShowPlayerDialogEx(playerid,id,style,a[],b[],c[],d[]){ if(ShowedPlayerDialog[playerid]) return false; ShowPlayerDialog(playerid,id,style,a,b,c,d); ShowedPlayerDialog[playerid] = true; return true; } potom showujem dialog takto: ShowPlayerDialogEx(playerid,DIALOGB01,DIALOG_STYLE_MSGBOX,"Banka","Nemáš založený účet.\n Chcete si ho založit za poplatek 20$?,"Ano","Ne"); v OnDialogResponse spravim toto: public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){ ShowedPlayerDialog[playerid] = false; return 1; } a ne*riem sa s "ručným" zadávanim DS[playerid], samozrejme na tento účel (toto som sa naučil z QWER-ovich scriptov) Link to comment Share on other sites More sharing options...
0 Michal Kuřátko (_Michael_) 49 Odesláno: 14. Leden, 2013 Author Share Odesláno: 14. Leden, 2013 Skusím Link to comment Share on other sites More sharing options...
0 Adrián Lipták 51 Odesláno: 14. Leden, 2013 Share Odesláno: 14. Leden, 2013 Rado, to si sa nenaučil :DDD On to tam má Link to comment Share on other sites More sharing options...
0 Rad012 23 Odesláno: 14. Leden, 2013 Share Odesláno: 14. Leden, 2013 ano....ale ja som sa to z tamať naučil Link to comment Share on other sites More sharing options...
Dotaz
Michal Kuřátko (_Michael_) 49
Čaute, mám banku, když vejdu poprvé na pickup vše je jak má, ale když opustím pickup a znovu na něj vejdu menu už se nezobrazí
Link to comment
Share on other sites
8 odpovědí na tuto otázku
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