[Bug]One bug in squirrel module

Started by habi, Apr 08, 2022, 05:04 PM

Previous topic - Next topic

habi

The squirrel function GetShowOnlyTeamMarkers throws error on calling.
GetShowOnlyTeamMarkers()
[SCRIPT]  Error: wrong number of parameters

Reason: I found myself in squirrel module source
.Func(_SC("GetShowOnlyTeamMarkers"), EnabledShowOnlyTeamMarkers, 2, _SC("tb"))
It is set to pass one 'b' bool as argument.

Accidently came upon it. noting it otherwise i will forget

Also,
.Func(_SC("PlaySoundForPlayer"), PlayGameSoundForPlayer)
.Func(_SC("PlaySoundForWorld"), PlayGameSoundForWorld)
params checking is not made in these two functions. Calling it with no arguments shut down the server.( happened to me yesterday, when i was making something else)

PSL

GetShowOnlyTeamMarkers()
This function gets an error every time it is called.
Hopefully the developers can fix it.