mam pomysł na kodowanie skryptu ale nie jestem pewien jak raz znalazłem na jakimś forum ale zapomniałem gdzie i teraz nie mogę tego znaleźć
ale niestety ten poniżej co wykombinowałem z pomocy nie działa, ma ktoś morze inny??
to wyglądało około tak:
ini_open('aaa.ini');
inix = ini_read_string('OPCJE','x','');
iniy = ini_read_string('OPCJE','y','');
ini_close();
inix = string_replace_all(inix,'q','1')
iniy = string_replace_all(iniy,'q','1')
inix = string_replace_all(inix,'p','2')
iniy = string_replace_all(iniy,'p','2')
inix = string_replace_all(inix,'z','3')
iniy = string_replace_all(iniy,'z','3')
inix = string_replace_all(inix,'c','4')
iniy = string_replace_all(iniy,'c','4')
inix = string_replace_all(inix,'l','5')
iniy = string_replace_all(iniy,'l','5')
i potem zapis tak:
a_x = x;
a_y = y;
a_x = string_replace_all(a_x,'1','q')
a_y = string_replace_all(a_y,'1','q')
a_x = string_replace_all(a_x,'2','p')
a_y = string_replace_all(a_y,'2','p')
a_x = string_replace_all(a_x,'3','z')
a_y = string_replace_all(a_y,'3','z')
a_x = string_replace_all(a_x,'4','c')
a_y = string_replace_all(a_y,'4','c')
a_x = string_replace_all(a_x,'5','l')
a_y = string_replace_all(a_y,'5','l')
ini_open('aaa.ini');
ini_write_string('OPCJE','x',string(a_x));
ini_write_string('OPCJE','y',string(a_y));
ini_close();
gra działa ale jak załącze te skrypty to nie zapisuje(nic sie nie wyświetla)
tylko potem plik wydląda tak:
[OPCJE]
x=
y=
a ma wyglądać tak
[OPCJE]
x=lc8.q6
y=qql.98