samp-streamer-plugin icon indicating copy to clipboard operation
samp-streamer-plugin copied to clipboard

IsPlayerInDynamicCP Returns Incorrect Values

Open kylesmith0 opened this issue 3 years ago • 4 comments

IsPlayerInDynamicCP returns true when the checkpointid specified is invalid / not created.

kylesmith0 avatar Jul 08 '20 17:07 kylesmith0

Use IsValidDynamicCP?

madgenius0 avatar Jul 08 '20 19:07 madgenius0

Use IsValidDynamicCP?

Don't be silly. I shouldn't have to use this everywhere.

kylesmith0 avatar Jul 08 '20 19:07 kylesmith0

Make sure that the variable's default value is INVALID_STREAMER_ID.

AliLogic avatar Sep 02 '20 10:09 AliLogic

Seems more silly to be checking if a player is somewhere that doesn't exist, construct your checks properly.

Regardless, I do agree that if encountering a problem the native should return false.

markski1 avatar Nov 22 '20 16:11 markski1