Forum

> > CS2D > Scripts > About Save/Load script...
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch About Save/Load script...

2 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt About Save/Load script...

Rainoth
Moderator Off Offline

Zitieren
I tried asking many people and they gave me advice but no matter how I do it, stuff doesn't work.

The Code >

Everything is saved and "hatss" appears as "0,0,0,0,0..." which is fine, but loading doesn't do anything. Can anyone tell me what I'm doing wrong ? Please pay attention to "line[1]" cause I'm not sure if it's correct. It was desperate guess. Hope you can help me.

alt Re: About Save/Load script...

Starkkz
Moderator Off Offline

Zitieren
I'm not sure if this will make big changes but you can try file:lines() instead of io.lines, and define the local variable i to 1 instead of 0.

Edit: Just before the end of the if file then condition you should put file:close(), so you will be able to overwrite in that file when using your save function.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht