Skocz do zawartości

Rekomendowane odpowiedzi

Opublikowano

Witajcie!

 

Mam taki kod

GML
lives="Z:\root\ThunderStorm\TSVM\usr\local\bin\tsvmdiskcreate.sh";

show_message("Welcome in ThunderStorm Virtual Disk Maker!");

score=get_string("How many you required for Virtual Drive?[1GigaBytes=1024MegaBytes']","2048");

execute_shell(lives,score);

game_end();

 

I on dochodząc do execute_shell, pada ;/ nie idzie dalej

 

Co robić? ;]

 

Fęrvi Prąsi

Opublikowano

daj get_integer zamiast get_string, możesz sobie napisać score = 'ala' ale i tak score będzie miało wartość 0.

czyli ten kod

GML
score=get_string("How many you required for Virtual Drive?[1GigaBytes=1024MegaBytes']","2048");
jest bezużyteczny w sumie - zawsze będzie 0.
Opublikowano

Zamiast lives użyj innej zmiennej SWOJEJ.

GML
score=real(get_string("How many you required for Virtual Drive?[1GigaBytes=1024MegaBytes']","2048"));

albo

GML
score=get_integer("How many you required for Virtual Drive?[1GigaBytes=1024MegaBytes']",2048);
Opublikowano

GML
show_message("Welcome in ThunderStorm Virtual Disk Maker!");

execute_shell("Z:\root\ThunderStorm\TSVM\usr\local\bin\tsvmdiskcreate.sh",string(get_integer("How many you required for Virtual Drive?[1GigaBytes=1024MegaBytes']",2048)));

game_end();

Eee.
Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...