ThreS 0 Odesláno: 9. Květen, 2015 Share Odesláno: 9. Květen, 2015 Ahoj,potřeboval bych pomoct/poradit stahl jsem si tento system http://forum.sa-mp.com/showthread.php?t=283501PPC_Housing vytvořím dum vejdu dovnitř dam /Housemenu kliknu třeba na uprgade house a nic to neudělá v tom dialogu co naskočí tak ani exit nende Link to comment Share on other sites More sharing options...
SeaS 1 Odesláno: 9. Květen, 2015 Share Odesláno: 9. Květen, 2015 V tématu máš napsáno: Also, make sure ALL your other filterscripts and gamemode use "return 0;" under OnDialogResponse. Končí tvůj OnDialogResponse v GM i všech FS return 0;? Link to comment Share on other sites More sharing options...
ThreS 0 Odesláno: 9. Květen, 2015 Author Share Odesláno: 9. Květen, 2015 ja kto myslíš ?? je to fs Link to comment Share on other sites More sharing options...
SeaS 1 Odesláno: 9. Květen, 2015 Share Odesláno: 9. Květen, 2015 Myslím to tak, jak to píšu.Končí všechny public OnDialogResponse returnem 0? Ve všech tvých filterscriptech, které máš na serveru + v módu. Link to comment Share on other sites More sharing options...
ThreS 0 Odesláno: 9. Květen, 2015 Author Share Odesláno: 9. Květen, 2015 jak poznam že to končí ? radio končí returnem 1 vadí ? Link to comment Share on other sites More sharing options...
SeaS 1 Odesláno: 9. Květen, 2015 Share Odesláno: 9. Květen, 2015 Podívej se na screen. Dialogy nemusí končit na 0, pouze ten public OnDialogResponse. Link to comment Share on other sites More sharing options...
ThreS 0 Odesláno: 9. Květen, 2015 Author Share Odesláno: 9. Květen, 2015 ok zapinam server zkusím to ) hele ? ted jsem zapl server a nejede to ted vubec Link to comment Share on other sites More sharing options...
SeaS 1 Odesláno: 9. Květen, 2015 Share Odesláno: 9. Květen, 2015 Bohužel, nemám křišťálovou kouli. Nemůžu vidět, co jsi kde upravil. Opravdu jsi upravil pouze return u OnDialogResponse v módu a ve VŠECH FilterSciptech? Nebo jsi změnil ještě něco jiného? Link to comment Share on other sites More sharing options...
ThreS 0 Odesláno: 9. Květen, 2015 Author Share Odesláno: 9. Květen, 2015 Jen to co jsi řikal toto jsem jen změnil { if(strlen(inputtext) > 0) { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid,inputtext);// URL Adresa Radia GameTextForPlayer(playerid, "~y~URL Adresa ~g~ Zadana", 5000, 1); if(Pocuvaradio[playerid]==0) { Pocetpocuvajucich ++; Pocuvaradio[playerid]=1; } } } } return 0;} Link to comment Share on other sites More sharing options...
SeaS 1 Odesláno: 9. Květen, 2015 Share Odesláno: 9. Květen, 2015 Pošli do dalšího příspěvku tvůj celý OnDialogResponse. Link to comment Share on other sites More sharing options...
ThreS 0 Odesláno: 9. Květen, 2015 Author Share Odesláno: 9. Květen, 2015 ted jsem zjistil že mně nende jen přikaz housecreate jakto ? Link to comment Share on other sites More sharing options...
SeaS 1 Odesláno: 9. Květen, 2015 Share Odesláno: 9. Květen, 2015 Jak to mám vědět? Link to comment Share on other sites More sharing options...
ThreS 0 Odesláno: 9. Květen, 2015 Author Share Odesláno: 9. Květen, 2015 prostě všechny přikazy toho fs jedou kromně createhouse Link to comment Share on other sites More sharing options...
SeaS 1 Odesláno: 9. Květen, 2015 Share Odesláno: 9. Květen, 2015 Můžeš mi sem dát ten public OnDialogResponse? Link to comment Share on other sites More sharing options...
ThreS 0 Odesláno: 9. Květen, 2015 Author Share Odesláno: 9. Květen, 2015 a ješte je dvné že na mém test serveru to jde normalně Link to comment Share on other sites More sharing options...
SeaS 1 Odesláno: 9. Květen, 2015 Share Odesláno: 9. Květen, 2015 Vzdávám to. Absolutně nereaguješ na moje příspěvky. Link to comment Share on other sites More sharing options...
ThreS 0 Odesláno: 9. Květen, 2015 Author Share Odesláno: 9. Květen, 2015 ani poslat to nende jak je to dlohy chapeš že to nende poslat ? jen gamemode public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { switch( dialogid ) { case DIALOG_REG: { if ( response ) { if ( sscanf( inputtext, "s", inputtext[ 0 ] || strlen( inputtext[ 0 ] ) == 0 ) ) return ShowPlayerDialog( playerid, DIALOG_REG, DIALOG_STYLE_INPUT, "{FFFFFF}Password", ""COL_RED"Error!\n\ {FFFFFF}Please write your desired password.\n", ">>>", "Exit"); if ( strlen( inputtext[ 0 ] ) < 3 || strlen( inputtext[ 0 ] ) > 20 ) return ShowPlayerDialog( playerid, DIALOG_REG, DIALOG_STYLE_INPUT, "{FFFFFF}Password", ""COL_RED"Error!\n\ {FFFFFF}Please write your desired password.\n\ "COL_RED"#{FFFFFF}Min. 3 Char. Max. 20 Char.", ">>>", "Exit"); new PlayerFile[ 13 + MAX_PLAYER_NAME ], pDate[ 8 + 15 ], //HH:MM:SS + DD.MM.YYYY = 18 pYear, pMonth, pDay, pHour, pMinute, pSecond, pIP[ 20 ], InfBox[ 512 ] ; getdate(pYear, pMonth, pDay ),gettime(pHour, pMinute, pSecond ); GetPlayerIp( playerid, pIP, 20 ); format( PlayerFile , sizeof PlayerFile, "Accounts/%s.ini", Encode( pName( playerid ) ) ); format( pDate, sizeof pDate, "%d:%d:%d %d/%d/%d",pHour, pMinute, pSecond , pDay, pMonth, pYear ); format( InfBox, sizeof InfBox, "{FFFFFF}Registrace probehla uspesne!\n\n\ "COL_LIGHTBLUE"Ucet: {FFFFFF}%s\n\ "COL_LIGHTBLUE"Heslo: {FFFFFF}%s\n\n\ Ziskate "COL_GREEN"$5000{FFFFFF} za registraci.\n\ Chcete se prihlasit?", pName( playerid ), inputtext ); ShowPlayerDialog( playerid, DIALOG_LOG, DIALOG_STYLE_MSGBOX, "Login", InfBox, "Ano", "Ne" ); new INI:file = INI_Open(Path(playerid)); new INI:PlayerAcc = INI_Open( PlayerFile ); INI_WriteString( PlayerAcc, "NAME", pName( playerid ) ); INI_WriteString( PlayerAcc, "PASSWORD", inputtext ); INI_WriteString( PlayerAcc, "REG_DATE", pDate ); INI_WriteString( PlayerAcc, "LAST_ON", "First connection" ); INI_WriteInt( PlayerAcc, "MONEYS", 5000 ); INI_WriteInt( PlayerAcc, "SCORE", 15 ); INI_WriteInt( PlayerAcc, "KILLS", 0 ); INI_WriteInt( PlayerAcc, "DEATHS", 0 ); INI_WriteInt( PlayerAcc, "VIP_LEVEL", 0 ); INI_WriteInt( PlayerAcc, "LEVEL", 0 ); INI_WriteInt( PlayerAcc, "MY_SKIN", 0 ); INI_WriteInt( PlayerAcc, "MY_TIME", 12 ); INI_WriteInt( PlayerAcc, "MY_WEATHER", 1 ); INI_WriteInt(file, "Money", 0 ); INI_WriteInt(file, "Scores", 0 ); INI_Close( PlayerAcc ); SetPVarString( playerid, "Date", pDate ); SetPVarInt( playerid, "Logged", 0 ); GivePlayerMoney( playerid, 5000 ); SetPlayerScore( playerid, GetPlayerScore( playerid ) + 15 ); } } case DIALOG_REG_REQ: { if ( response ) cmd_register( playerid, ""); if ( !response ) return 0; } case DIALOG_LOGIN: ShowPlayerDialog( playerid, DIALOG_LOGIN2, DIALOG_STYLE_INPUT, "{FFFFFF}xRealLife", "{FFFFFF}Prosím napiste vase heslo.", "Login", "Kick"); case DIALOG_LOG: { if ( response ) ShowPlayerDialog( playerid, DIALOG_LOGIN2, DIALOG_STYLE_INPUT, "{FFFFFF}xRealLife", "{FFFFFF}Prosim napiste vase heslo.","Login","Kick"); } case DIALOG_LOGIN2: { if ( !response ) return Kick( playerid ); if ( response ) { if ( strlen( inputtext ) == 0 ) return ShowPlayerDialog( playerid, DIALOG_LOGIN2, DIALOG_STYLE_INPUT, "{FFFFFF}Password", ""COL_RED"Error!\n\ {FFFFFF}Prosím napiste vase heslo.", "Login", "Kick"); new PlayerFile[ 13 + MAX_PLAYER_NAME ], Password[ 20 + 1 ] ; format( PlayerFile , sizeof PlayerFile, "Accounts/%s.ini", Encode( pName( playerid ) ) ); INI_ParseFile( PlayerFile, "ParsePlayerPass", false, true, playerid ); GetPVarString( playerid, "pPass", Password, sizeof Password ); if ( !strcmp ( inputtext, Password, false ) ) { new sTitle[ 21 + MAX_PLAYER_NAME + 25 ], sBoxInfo[ 512 ], Pdata[ 8 + 15 ] ; SetPVarInt( playerid, "Logged", 1 ); format( PlayerFile , sizeof PlayerFile, "Accounts/%s.ini", Encode( pName( playerid ) ) ); INI_ParseFile( PlayerFile, "LoadUser", false, true, playerid, true, false ); INI_ParseFile(Path(playerid),"loadaccount_%s",.bExtra = true, .extra = playerid); SetPlayerScore(playerid,pInfo[playerid][scores]); GivePlayerMoney(playerid,pInfo[playerid][Money]); GetPVarString( playerid, "Date", Pdata, 8 + 10 ); if ( GetPVarInt( playerid, "CGod" ) == 1 ) { SetPVarInt( playerid, "CGod", 1); CGod[ playerid ] = SetTimerEx( "CarGodTimer", 200, true, "i", playerid ); } if ( GetPVarInt( playerid, "God" ) == 1 ) { SetPVarInt( playerid, "God", 1); God[ playerid ] = SetTimerEx( "GodTimer", 200, true, "i", playerid ); } format( sTitle, sizeof sTitle, "{FFFFFF}Vitej zpatky, "COL_LIGHTBLUE"%s{FFFFFF}!", pName( playerid ) ); if ( GetPVarInt( playerid, "Level" ) == 0 ) { format( sBoxInfo, sizeof sBoxInfo, "{FFFFFF}Toto jsou vase staty:\n\n\ {FFFFFF}Rank: "COL_LIGHTBLUE"%s\n\ {FFFFFF}VIP Level: "COL_LIGHTBLUE"%d\n\ {FFFFFF}Score: "COL_LIGHTBLUE"%d\n\ {FFFFFF}Registrovani v: "COL_LIGHTBLUE"%s\n\n\ {FFFFFF}Jestli chcete videt vase staty napište "COL_LIGHTBLUE"/stats\n\ {FFFFFF}Napis "COL_LIGHTBLUE"/mycmds{FFFFFF} na podivani na prikazy.", GetPlayerLevelName( playerid ), GetPlayerVLevel( playerid ), GetPVarInt( playerid, "Score" ), Pdata ); } if ( GetPVarInt( playerid, "Level" ) > 1 ) { format( sBoxInfo, sizeof sBoxInfo, "{FFFFFF}Toto jsou vase staty:\n\n\ {FFFFFF}Level: "COL_LIGHTBLUE"%s\n\ {FFFFFF}VIP Level: "COL_LIGHTBLUE"%d\n\ {FFFFFF}Score: "COL_LIGHTBLUE"%d\n\ {FFFFFF}Registrovani v: "COL_LIGHTBLUE"%s\n\n", GetPlayerLevelName( playerid ), GetPlayerVLevel( playerid ), GetPVarInt( playerid, "Score" ), Pdata ); format( sBoxInfo, sizeof sBoxInfo, "%s{FFFFFF}Pro podivani na vase vsechny staty napiste "COL_LIGHTBLUE"/stats\n\ {FFFFFF}Type "COL_LIGHTBLUE"/mycmds{FFFFFF} to view your current commands.\n\ "COL_RED"Admin note:{FFFFFF}Use "COL_LIGHTBLUE"/acmds {FFFFFF}and "COL_LIGHTBLUE"/arules {FFFFFF}for commands and Admin rules.",sBoxInfo); } ShowPlayerDialog(playerid, DIALOG_LOG_DONE, DIALOG_STYLE_MSGBOX, sTitle, sBoxInfo, "Ok", ""); } else ShowPlayerDialog(playerid, DIALOG_LOGIN2, DIALOG_STYLE_INPUT, ""COL_RED"Wrong password...", ""COL_RED"Spatné heslo!\n{FFFFFF}Prosim zkuste to znovu.", "Login", "Kick"); } } } return 0; } Link to comment Share on other sites More sharing options...
SeaS 1 Odesláno: 9. Květen, 2015 Share Odesláno: 9. Květen, 2015 Dej to do spoileru. Link to comment Share on other sites More sharing options...
SeaS 1 Odesláno: 9. Květen, 2015 Share Odesláno: 9. Květen, 2015 Za tím return 0;, podle toho, co jsi napsal, ti chybí }. Link to comment Share on other sites More sharing options...
ThreS 0 Odesláno: 9. Květen, 2015 Author Share Odesláno: 9. Květen, 2015 jaj to tam je jen jsem ho nezkopčil byl to asi bug ) už to jde ) a hele nevíš proč se mně neuložuje skore ? když se odhlasím a přihlasim tak h onemam :_( Link to comment Share on other sites More sharing options...
SeaS 1 Odesláno: 9. Květen, 2015 Share Odesláno: 9. Květen, 2015 Ukládáš ho někde do databáze nebo do souboru? Link to comment Share on other sites More sharing options...
ThreS 0 Odesláno: 9. Květen, 2015 Author Share Odesláno: 9. Květen, 2015 mnělo by se to ukladat do scriptfiles a tam accounts ale nějak se tomu tam nechce Link to comment Share on other sites More sharing options...
SeaS 1 Odesláno: 9. Květen, 2015 Share Odesláno: 9. Květen, 2015 Nějak se tomu nechce. Nechceš sem napsat kód a říct, co to dělá nebo nedělá a co by to mělo dělat a nedělá? Link to comment Share on other sites More sharing options...
Administrátor Ewwe 434 Odesláno: 10. Květen, 2015 Administrátor Share Odesláno: 10. Květen, 2015 Kdybys tu snahu kterou věnuješ do shánění scriptů na netu a otravováním ostatních s tím aby ti je pomohli rozjet věnoval k učení PAWN už včera by jsi měl HS hotový vlastní 3 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