[Bug]One bug in squirrel module

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

Previous topic - Next topic


The squirrel function GetShowOnlyTeamMarkers throws error on calling.
[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

.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)


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