06.01.2016, 22:09
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?
[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?