PerfectScrash / ZP-Special-Final

Current Version of Zombie Plague Special
15 stars 5 forks source link

When someone disconnected,the base sma will trigger a bug #3

Closed cyxnzb closed 1 year ago

cyxnzb commented 2 years ago

That's copy from the error log: L 07/20/2022 - 17:28:24: Invalid player id 0 L 07/20/2022 - 17:28:24: [AMXX] Displaying debug trace (plugin "zpsp_main/zombie_plague_special_45.amxx", version "45") L 07/20/2022 - 17:28:24: [AMXX] Run time error 10: native error (native "get_user_origin") L 07/20/2022 - 17:28:24: [AMXX] [0] zombie_plague_special_45.sma::Flame_Think (line 12688)

In the code : static origin[3]; get_user_origin(victim, origin)

How can i fix this bug?