Wazarr94 / haxball_bot_headless

Ready-to-go scripts and functions for the HaxBall Headless API !
MIT License
46 stars 74 forks source link

0 #58

Closed Joao-Vitaca closed 1 year ago

Joao-Vitaca commented 1 year ago

0

Wazarr94 commented 1 year ago

The script was updated with the fix, update the getXPlayer functions in your script. With this fix, the room should work properly all the time

Wazarr94 commented 1 year ago

This shouldn't happen at all. There is now a check that is being done in every getXPlayer. For instance at line 2915 of the script: if (pComp == null) return 0;

If that error is still present for you, then it must mean that you are missing this line as it guarantees you can't encounter the error of pComp being null.