Vice City: Multiplayer

VC:MP Discussion => Support => Bugs and Crashes => Topic started by: habi on Apr 08, 2022, 05:04 PM

Title: [Bug]One bug in squirrel module
Post by: habi on Apr 08, 2022, 05:04 PM
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)
Title: Re: [Bug]One bug in squirrel module
Post by: PSL on Mar 05, 2024, 11:35 AM
GetShowOnlyTeamMarkers()
This function gets an error every time it is called.
Hopefully the developers can fix it.