Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Błąd z FileLoader
#1
Otóż na windowsowym file loaderze działa wszystko okej. A w linuxowym występuje błąd :

[Squirrel] Error runtime: (sq_fileRead) invalid argument at index 0, expecting 'userpointer'
[Squirrel] Stack Dump:
[1]: In function 'LoadItems()' ./server-scripts/player.nut line [90]
[2]: In function 'createPlayerGame()' ./server-scripts/main.nut line [341]
[3]: In function 'checkPlayerSaverFile()' ./server-scripts/main.nut line [195]
[Squirrel] Locals:
- buffer ("")
- file (NULL)
- pid (0)
- this (TABLE)
- pid (0)
- this (TABLE)
- file (NULL)
- pid (0)
- this (TABLE)
[Squirrel] Cannot finish call callback: checkPlayerSaverFile, expected params count 1

Tyczy się to :

    local file = fileOpen("Items/"+getPlayerName(pid), "r+");
local buffer = "";
while(fileRead(file, buffer)) .// Błąd tyczy sie tej linijki.
{
// Jakiś tam
}
fileClose(file);

Wie ktoś o co come on?
#2
"- file (NULL)"
#3
rzeczywiście nie zauważyłem.


Possibly Related Threads…
Thread Author Replies Views Last Post
  błąd na vpsie Darkes 5 5,286 27.09.2018, 14:26
Last Post: Darkes
  Po "zainstalowaniu" g2o na vpsie mam taki błąd Darkes 3 3,593 18.10.2017, 15:55
Last Post: Darkes
  Błąd podczas wchodzenia na serwer. Baku 5 4,838 22.07.2017, 18:25
Last Post: Baku
  błąd przy odpalaniu GaroK 6 5,129 30.08.2016, 15:09
Last Post: GaroK
  Błąd przy wbiciu na server Leo 2 3,354 27.07.2016, 21:07
Last Post: Leo
  Dziwny błąd przy próbie wbicia na serwer Vanarius 6 5,277 23.07.2016, 02:00
Last Post: Hades
  Błąd przy odpaleniu serwera Krousainte 4 4,190 09.03.2016, 17:30
Last Post: Krousainte
  Błąd w modyfikacji ,,Kryjówka Korysarzy". Trevor 4 4,257 31.01.2016, 13:52
Last Post: Son Goku
  Błąd przy włączaniu Dejv 17 11,859 18.10.2015, 20:55
Last Post: Dejv

Forum Jump:


Users browsing this thread: 1 Guest(s)