Skocz do zawartości

Arekadiusz

Użytkownicy
  • Postów

    475
  • Dołączył

  • Ostatnia wizyta

Treść opublikowana przez Arekadiusz

  1. Mam taki banalny problem: Jak napisać tekst i dodać do niego wyświetlanie jakiś danych gdy napisze tak: GML show_message("Masz na imie: "+string(name) "#I zdobyłeś punktów: "+string(score)) wyświetla się błąd a jeśli tak: GML show_message("Masz na imie: +string(name) #I zdobyłeś punktów: +string(score)") to nie będzie podanych punktów tylko to całe będzie napisane Czyli: Jak zrobić aby można było napisać pare razy jakiś tekst i wyświetlać jakieś zmienne??
  2. Ta zamiana też nic nie daje. Dam link do tego: https://gmclan.org/up6066_12_problem.html Obiekt w którym sie wpisuje hasło to sprawdz
  3. Wyświetliło się że hasło to jest a. Więc gdy wpisuje hasło a i tak pojawia się że to źle A co do tego drugiego: Ta funkcja program directory nie działa Zapis gry nie tworzy się wogóle!
  4. Teraz to odszyfrowywanie działa tylko,że nawet jak wpisze dobre hasło to wyświetla że źle! Co jeszcze jest źle?
  5. Oj przepraszam niezauważyłem... A co z tym drugim pytaniem: Gdy zrobie gre,następnie utworze do niej instalator,zainstaluje,uruchomie ją ze skrutu na pulpicie i zapisze gre za pomocą funkcji save_game to zapis pojawia się na pulpicie.Co zrobić aby zapis pojawiał się w katalogu instalacji?? Pisałem o tym już w poprzednim moim temacie i dostałem odpowiedź: working_directory* Working directory for the game. (Not including the final backslash.) program_directory* Directory in which the game executable is stored. (Not including the final backslash.) When you run a standalone game this is normally the same as the working directory unless the game e.g. opens a file using the file selector. Note that when testing a game you are creating the program and working directory will be different. In that case the working directory is the place where the editable version is stored while the program directory is a temporary directory for testing. temp_directory* Temporary directory created for the game. (Not including the final backslash.) You can store temporary files here. They will be removed at the end of the game. Lecz nie wiem jak się posłużyc tymi funkcjami! Proszę o pomoc
  6. Jak jej użyc? Skrypt odszyfruj wygląda tak: GML text=argument0; pos=0; len=string_count('$',text); //zamień to $ przy zamianie innych! szyfr='';for (i=1; i<len+1; i+=1;) { pos=string_pos('x',text); szyfr+=chr(real(string_copy(text,1,pos-1)) ); /*pos - 1 -> pobiera text do pozycji o 1 mniejszej od pozycji znaku 'x' */ len2=string_length(text); pos=string_pos('$',text); text=string_delete(text,1,pos); /*pos - 1 -> kasuje text z pozycja znaku '$' */ szyfr+=chr(real(string_copy(text,1,pos-1))/10051900); } return szyfr;
  7. Tak,posłużyłem się twoim artykułem. Jak naprawic ten błąd? Mam jeszcze jeden problem: Gdy zrobie gre,następnie utworze do niej instalator,zainstaluje,uruchomie ją ze skrutu na pulpicie i zapisze gre za pomocą funkcji save_game to zapis pojawia się na pulpicie.Co zrobić aby zapis pojawiał się w katalogu instalacji?? Pisałem o tym już w poprzednim moim temacie i dostałem odpowiedź: working_directory* Working directory for the game. (Not including the final backslash.) program_directory* Directory in which the game executable is stored. (Not including the final backslash.) When you run a standalone game this is normally the same as the working directory unless the game e.g. opens a file using the file selector. Note that when testing a game you are creating the program and working directory will be different. In that case the working directory is the place where the editable version is stored while the program directory is a temporary directory for testing. temp_directory* Temporary directory created for the game. (Not including the final backslash.) You can store temporary files here. They will be removed at the end of the game. Lecz nie wiem jak się posłużyc tymi funkcjami! Proszę o pomoc
  8. Teraz działa tylko że po wpisaniu nicku wyświetla się błąd: Co jeszcze jest źle?? Edit:W tym obiekcie jest tylko ten kod
  9. Mam taki kod w evencie create: GML var nick,nickpo,nicki; nick=get_string('Haslo','') ini_open('konto.ini'); ini_read_string('Konto','login',nicki) nickpo=odszyfruj(nicki) if nick=nicki { show_message('ok!') } else { show_message('źle!') } Co jest tu źle? Dziękuje za wszystkie odpowiedzi.
  10. Zrobiłem tak i po wpisaniu hasła wyświetla się błąd taki jak na screenie:
  11. Mam problem z odszyfrowaniem Co tu jest źle?? Skrypt zaszyfruj: GML text=argument0; len=string_length(text); szyfr='';for(i=1; i<len+1; i+=1) { szyfr+=string(ord(string_char_at(text,i))) szyfr+=string(ord(string_char_at(text,i))*1000) +'x'+string(100+round(random(99))) +'$'; } return szyfr; Skrypt odszyfruj: GML text=argument0; pos=0; len=string_count('$',text);//zamień to $ przy zamianie innych! for (i=1; i<len+1; i+=1;) { pos=string_pos('x',text); szyfr+=chr(real(string_copy(text,1,pos-1)) ); szyfr+=chr(real(string_copy(text,1,pos-1))/1000); len2=string_length(text); pos=string_pos('$',text); text=string_delete(text,1,pos); } Obiekt szyfr,w evencie create: GML var login;login=get_string( "Ustal swój nowy login:",argument0 ); txt=login; txt2=zaszyfruj(txt); txt3=odszyfruj(txt2); ini_open('login.ini'); ini_write_string('login','login22',txt2) Obiekt logowanie,w evencie create: GML ini_open( 'login.ini' ) var pas1;pas1=ini_write_string('login','login22',0); pas7=odszyfruj(pas1) pas = get_string("Hasło:", ""); if(pas == pas7) { execute_shell("aa.exe",0); game_end() } else { show_message("Źle!"); room_goto(rwybierzjezyk) }
  12. Bedi: A co jak ktoś zmieni domyślnom ścieżke instalacji??
  13. Dzięki mam nadzieje że sobie poradze Mam jeszcze jedno pytanie: Gdy zrobie gre,następnie utworze do niej instalator,zainstaluje,uruchomie ją ze skrutu na pulpicie i zapisze gre za pomocą funkcji save_game to zapis pojawia się na pulpicie.Co zrobić aby zapis pojawiał się w katalogu instalacji?? I jeszcze jedno pytanie z tym ini: Jak ten plik sie stworzy to każdy może go odczytać.Czy jest jakiś sposób żeby to zaszyfrować?
  14. A jakaś opcja żeby przy pierwszym uruchominiu gracz mógł sam je wpisać,a dopiero następnym razem wpisywał takie jak podał na początku?
  15. Jak zrobić,że gdy użytkownik piewszy raz uruchomi gre będzie musiał ustalić hasło i login i za każdym kolejnym uruchomieniem podawać ten login i hasło? Czy jest to możliwe? Z góry dziękuje za wszystkie odpowiedzi.
×
×
  • Dodaj nową pozycję...