SweS 0 Odesláno: 3. Říjen, 2010 Share Odesláno: 3. Říjen, 2010 Potřebuji helpnout s povoláni cez dialog, všechno sem udelal správne přídu na to místo kde mám pickup mám tam že - Zaměstnát a Nic ale pak když dám příklad Zaměstnat hned potém se mi ukáže dialog z registraci že se mám přihlásit xD co stím? tady vám dávam celý DialogResponse: public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 1) { if(response == 1) { if(Job[playerid] == 1) return SendClientMessage(playerid, FARBA_CERVENA, "Tu si už zamestnaný!"); SendClientMessage(playerid,FARBA_CERVENA, "Odteraz si policajt!"); SetPlayerSkin(playerid, 280); Job[playerid] = 1; } } if(dialogid == 1) { if(response == 1) { if (udb_Exists(PlayerName(playerid))) return ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Registracia","Prihlás sa ! napíš heslo","Použíť","Odpojiť"); if (strlen(inputtext)==0) return ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Registracia","Musíš napísať heslo !","Použíť","Odpojiť"); if (udb_Create(PlayerName(playerid),inputtext)) return ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Registracia","Výborne, teraz napíš heslo znova !","Použíť","Odpojiť"); } if(response == 2) { Kick(playerid); } } //============================================================================== if(dialogid == 2) { if(response == 1) { if (strlen(inputtext)==0) return ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Registrace","Musíš zadat heslo !\nNapiš heslo !","Použít","Odpojiť"); if (udb_CheckLogin(PlayerName(playerid),inputtext)) { GivePlayerMoney(playerid,dUserINT(PlayerName(playerid)).("money")-GetPlayerMoney(playerid)); PLAYERLIST_authed[playerid] = true; return SendClientMessage(playerid, FARBA_ZLTA, "Úspešne prihlásený !"); } return ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Registracia","Nesprávne heslo !","Použíť","Odpojiť"); } if(response == 2) { Kick(playerid); } } return 1; } Link to comment Share on other sites More sharing options...
0 Kuba5 0 Odesláno: 3. Říjen, 2010 Share Odesláno: 3. Říjen, 2010 Stejný dialogid.. musíš je mít jiný.. Link to comment Share on other sites More sharing options...
0 SweS 0 Odesláno: 3. Říjen, 2010 Author Share Odesláno: 3. Říjen, 2010 Stejný dialogid.. musíš je mít jiný.. to není kvoli tomu.. myslím xD Link to comment Share on other sites More sharing options...
0 Kuba5 0 Odesláno: 3. Říjen, 2010 Share Odesláno: 3. Říjen, 2010 SwAmPerT":1m5467je]Stejný dialogid.. musíš je mít jiný.. to není kvoli tomu.. myslím xD Je omg... Tak se na to podívej.. máš dva dialogy se stejným dialogID!! Místo toho aby si to zkusil tak budeš řikat, že to tim není, přitom nemůžeš vědět ejstli mam nebo nemám pravdu.. Link to comment Share on other sites More sharing options...
0 Guest Punkevník Odesláno: 3. Říjen, 2010 Share Odesláno: 3. Říjen, 2010 public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 1) { if(response == 1) { if(Job[playerid] == 1) return SendClientMessage(playerid, FARBA_CERVENA, "Tu si už zamestnaný!"); SendClientMessage(playerid,FARBA_CERVENA, "Odteraz si policajt!"); SetPlayerSkin(playerid, 280); Job[playerid] = 1; } } if(dialogid == 2) { if(response == 1) { if (udb_Exists(PlayerName(playerid))) return ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Registracia","Prihlás sa ! napíš heslo","Použíť","Odpojiť"); if (strlen(inputtext)==0) return ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Registracia","Musíš napísať heslo !","Použíť","Odpojiť"); if (udb_Create(PlayerName(playerid),inputtext)) return ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Registracia","Výborne, teraz napíš heslo znova !","Použíť","Odpojiť"); } if(response == 2) { Kick(playerid); } } //============================================================================== if(dialogid == 2) { if(response == 1) { if (strlen(inputtext)==0) return ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Registrace","Musíš zadat heslo !\nNapiš heslo !","Použít","Odpojiť"); if (udb_CheckLogin(PlayerName(playerid),inputtext)) { GivePlayerMoney(playerid,dUserINT(PlayerName(playerid)).("money")-GetPlayerMoney(playerid)); PLAYERLIST_authed[playerid] = true; return SendClientMessage(playerid, FARBA_ZLTA, "Úspešne prihlásený !"); } return ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Registracia","Nesprávne heslo !","Použíť","Odpojiť"); } if(response == 2) { Kick(playerid); } } return 1; } Skús Link to comment Share on other sites More sharing options...
0 Kuba5 0 Odesláno: 3. Říjen, 2010 Share Odesláno: 3. Říjen, 2010 public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 1) { if(response == 1) { if(Job[playerid] == 1) return SendClientMessage(playerid, FARBA_CERVENA, "Tu si už zamestnaný!"); SendClientMessage(playerid,FARBA_CERVENA, "Odteraz si policajt!"); SetPlayerSkin(playerid, 280); Job[playerid] = 1; } } if(dialogid == 2) { if(response == 1) { if (udb_Exists(PlayerName(playerid))) return ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Registracia","Prihlás sa ! napíš heslo","Použíť","Odpojiť"); if (strlen(inputtext)==0) return ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Registracia","Musíš napísať heslo !","Použíť","Odpojiť"); if (udb_Create(PlayerName(playerid),inputtext)) return ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Registracia","Výborne, teraz napíš heslo znova !","Použíť","Odpojiť"); } if(response == 2) { Kick(playerid); } } //============================================================================== if(dialogid == 2) { if(response == 1) { if (strlen(inputtext)==0) return ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Registrace","Musíš zadat heslo !\nNapiš heslo !","Použít","Odpojiť"); if (udb_CheckLogin(PlayerName(playerid),inputtext)) { GivePlayerMoney(playerid,dUserINT(PlayerName(playerid)).("money")-GetPlayerMoney(playerid)); PLAYERLIST_authed[playerid] = true; return SendClientMessage(playerid, FARBA_ZLTA, "Úspešne prihlásený !"); } return ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Registracia","Nesprávne heslo !","Použíť","Odpojiť"); } if(response == 2) { Kick(playerid); } } return 1; } Skús Ehm, chtěl jsi napsat 3..? Co takhle se podívat na všechny dialogy? A přestan si nahánět příspěvky.. Pokud vím tak já už jsem mu napsal, že je to tim.. a myslim, že opravit to dokáže.. Link to comment Share on other sites More sharing options...
0 Mischino19 2 Odesláno: 3. Říjen, 2010 Share Odesláno: 3. Říjen, 2010 styler a potom 3. dialog nic? tam ma dialogid 2 takze tam ma 2x to iste takze si mu vobec nepomohol... Link to comment Share on other sites More sharing options...
0 Guest Odesláno: 3. Říjen, 2010 Share Odesláno: 3. Říjen, 2010 nj a to sa nemení len tam ale aj pri funkcii ShowPlayerDialog či ako sa volá takže :prdel: Link to comment Share on other sites More sharing options...
0 Mischino19 2 Odesláno: 3. Říjen, 2010 Share Odesláno: 3. Říjen, 2010 ocujes choj na ten skype tu mapu uz mam hodime to dakde... Link to comment Share on other sites More sharing options...
Dotaz
SweS 0
Potřebuji helpnout s povoláni cez dialog, všechno sem udelal správne přídu na to místo kde mám pickup mám tam že - Zaměstnát a Nic ale pak když dám příklad Zaměstnat hned potém se mi ukáže dialog z registraci že se mám přihlásit xD co stím?
tady vám dávam celý DialogResponse:
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