Michael 4 Odesláno: 14. Srpen, 2011 Share Odesláno: 14. Srpen, 2011 Plsky moc tomu nechápu, jak mám udělat funkci pro tlačítko 2 Dialogy používám jen na 1 tlačítko asi takhle if(dialogid == 1524) { if(response == 1) { switch(listitem) { case 0: { SetPlayerPos(playerid,790.8370,-2356.4290,4.0630); SendClientMessage(playerid, 0x008000AA, "Připojil si se na derby"); SetPlayerInterior(playerid, 0); } case 1: { SetPlayerPos(playerid,-305.1209,1533.0859,75.3594); SendClientMessage(playerid, 0x008000AA, "Připojil si se na drift"); SetPlayerInterior(playerid, 0); } case 2: { SetPlayerPos(playerid,-82.3281,2500.5935,16.4844); SendClientMessage(playerid, 0x008000AA, "Připojil si se na drag"); SetPlayerInterior(playerid, 0); } } } } Ale dnes sem si chtěl udělat dialog, styl MSGBOX, ale nwm jak na to 2 tlačítko. Pls "help" Link to comment Share on other sites More sharing options...
KarTooN 1 Odesláno: 14. Srpen, 2011 Share Odesláno: 14. Srpen, 2011 asi myslíš if(response == 0) Link to comment Share on other sites More sharing options...
Michael 4 Odesláno: 14. Srpen, 2011 Share Odesláno: 14. Srpen, 2011 Ano ale jak to tam mám vložit, nebo kam do toho kódu Link to comment Share on other sites More sharing options...
KarTooN 1 Odesláno: 14. Srpen, 2011 Share Odesláno: 14. Srpen, 2011 if(dialogid == 1524) { if(response == 1) { switch(listitem) { case 0: { SetPlayerPos(playerid,790.8370,-2356.4290,4.0630); SendClientMessage(playerid, 0x008000AA, "Připojil si se na derby"); SetPlayerInterior(playerid, 0); } case 1: { SetPlayerPos(playerid,-305.1209,1533.0859,75.3594); SendClientMessage(playerid, 0x008000AA, "Připojil si se na drift"); SetPlayerInterior(playerid, 0); } case 2: { SetPlayerPos(playerid,-82.3281,2500.5935,16.4844); SendClientMessage(playerid, 0x008000AA, "Připojil si se na drag"); SetPlayerInterior(playerid, 0); } } } Tady //nebo sem se spletl o závorku } Link to comment Share on other sites More sharing options...
Michael 4 Odesláno: 14. Srpen, 2011 Share Odesláno: 14. Srpen, 2011 Ok dík Link to comment Share on other sites More sharing options...
Lax. 28 Odesláno: 21. Říjen, 2011 Author Share Odesláno: 21. Říjen, 2011 Update - pridaný DIALOG_STYLE_PASSWORD Link to comment Share on other sites More sharing options...
VoDnIk168 0 Odesláno: 21. Říjen, 2011 Share Odesláno: 21. Říjen, 2011 nice :thumbup: Link to comment Share on other sites More sharing options...
Lax. 28 Odesláno: 1. Listopad, 2011 Author Share Odesláno: 1. Listopad, 2011 Update: - opravené chyby - upravený celý popis.. Link to comment Share on other sites More sharing options...
EmbinaCZ 0 Odesláno: 1. Listopad, 2011 Share Odesláno: 1. Listopad, 2011 Pěknej tut 10/10 Link to comment Share on other sites More sharing options...
GAMELASTERツ 73 Odesláno: 26. Listopad, 2011 Share Odesláno: 26. Listopad, 2011 DIALOG_PASSWORD v 0.3c nejede vsak? Link to comment Share on other sites More sharing options...
Lax. 28 Odesláno: 26. Listopad, 2011 Author Share Odesláno: 26. Listopad, 2011 DIALOG_PASSWORD v 0.3c nejede vsak? je tam napísané že: - Tento štýl dialógu bol pridaný vo verzii 0.3d Link to comment Share on other sites More sharing options...
GAMELASTERツ 73 Odesláno: 26. Listopad, 2011 Share Odesláno: 26. Listopad, 2011 DIALOG_PASSWORD v 0.3c nejede vsak? je tam napísané že: - Tento štýl dialógu bol pridaný vo verzii 0.3d ach jo, nevsiml sem si... Link to comment Share on other sites More sharing options...
LuK3Z 3 Odesláno: 2. Březen, 2012 Share Odesláno: 2. Březen, 2012 good tut 10/10 Link to comment Share on other sites More sharing options...
TheKid 16 Odesláno: 11. Červen, 2012 Share Odesláno: 11. Červen, 2012 Nachapu kam to mam napsat . Chci udělat dialog v kterym bude text (příkazy) a nevim kam mam napsat toto: ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"Příkazy","/blabla\n/aaa\nRiadok 3","Tlačidlo 1","Tlačidlo 2"); (jestli jako do ongamemode int pod return nebo kam proste) Link to comment Share on other sites More sharing options...
--AndrEe 0 Odesláno: 11. Červen, 2012 Share Odesláno: 11. Červen, 2012 Hici kde do modu #define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1 public OnPlayerCommandText(playerid, cmdtext[]) { dcmd(prikazy,7,cmdtext); } hockde do modu dcmd_prikazy(playerid,params[]){ #pragma unused params ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"Příkazy","/blabla\n/aaa\nRiadok 3","Tlačidlo 1","Tlačidlo 2"); } Link to comment Share on other sites More sharing options...
Jamo 0 Odesláno: 18. Červen, 2012 Share Odesláno: 18. Červen, 2012 diky dost mi to pomohlo. 10/10 Link to comment Share on other sites More sharing options...
Jamo 0 Odesláno: 21. Červen, 2012 Share Odesláno: 21. Červen, 2012 musi tam byt aj to "/" ked davam novy riadok ? Link to comment Share on other sites More sharing options...
FiZZy 12 Odesláno: 21. Červen, 2012 Share Odesláno: 21. Červen, 2012 musi tam byt aj to "/" ked davam novy riadok ? Musí tam být \n ne /n... to \ děláš = pravy alt + q. Link to comment Share on other sites More sharing options...
Pribinak 0 Odesláno: 14. Červenec, 2012 Share Odesláno: 14. Červenec, 2012 Parádny TuT vďaka tomuto tutu som porozumel dialogov díky Link to comment Share on other sites More sharing options...
htomas101 0 Odesláno: 29. Srpen, 2012 Share Odesláno: 29. Srpen, 2012 Děkuji moc jsi mi pomohl. Link to comment Share on other sites More sharing options...
TGC_Łukáš 4 Odesláno: 30. Srpen, 2012 Share Odesláno: 30. Srpen, 2012 Comment is deleted ! Link to comment Share on other sites More sharing options...
Sparko 0 Odesláno: 15. Září, 2012 Share Odesláno: 15. Září, 2012 Čawte mám taký problém v pawne mi nehádže žiadny error no keď to dám na server nechce mi to ukázať dialog ... hovorím o tom prehadzovaní položiek ... v pawne mám aj new , stock aj v OnDialogResponse mám tie veci ShowedPlayerDialog[playerid]=false; za každým ShowPlayerDialog Link to comment Share on other sites More sharing options...
ElKebab 2 Odesláno: 28. Září, 2012 Share Odesláno: 28. Září, 2012 Good vyuzijem v mojom dalsom FS Link to comment Share on other sites More sharing options...
SounD 0 Odesláno: 1. Listopad, 2013 Share Odesláno: 1. Listopad, 2013 10/10 Super!! Link to comment Share on other sites More sharing options...
Norhy 0 Odesláno: 1. Listopad, 2013 Share Odesláno: 1. Listopad, 2013 10/10 Super!! ... Link to comment Share on other sites More sharing options...
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