SF-lua / SF.lua

SA:MP functions for MoonLoader.
MIT License
14 stars 5 forks source link

sampGetLocalPlayerNickname crashes script #5

Closed Akionka closed 4 years ago

Akionka commented 4 years ago

Calling sampGetLocalPlayerNickname crashes script Error

[ML] (error) main.lua: cannot resume non-suspended coroutine
stack traceback:
    [C]: in function 'string'
    ...86)\GTA San Andreas\moonloader\lib\SFlua\037-r1\init.lua:409: in function 'sampGetLocalPlayerNickname'
    ...A San Andreas\moonloader\scripts\sf_lua_example\main.lua:7: in function <...A San Andreas\moonloader\scripts\sf_lua_example\main.lua:3>
[ML] (error) main.lua: Script died due to an error. (id:46)

Code

print(sampGetLocalPlayerNickname())
imring commented 4 years ago

Fixed https://github.com/imring/SF.lua/commit/1a4e3b2c9777c4e1548f2a325b6766c70f122a97