RSSy MYGO.pl Opublikowano Luty 24, 2022 o 22:10 RSSy Udostępnij Opublikowano Luty 24, 2022 o 22:10 i posted this problem in scripting help and someone pointed out to me that the code wasn't compatible with multiplayer which is why i get this error when it try it in test server but not with bots while playing offline Code: L 02/23/2022 - 22:12:50: Invalid CVAR pointer L 02/23/2022 - 22:12:50: [AMXX] Displaying debug trace (plugin "zp_knife_menu3v4.amxx") L 02/23/2022 - 22:12:50: [AMXX] Run time error 10: native error (native "get_pcvar_num") L 02/23/2022 - 22:12:50: [AMXX] [0] zp_knife_menu3v4.sma::client_PostThink (line 2229) PHP Code: 1 - g_cvar_lefthand = get_cvar_pointer("cl_righthand") 2 - isRight = get_pcvar_num(g_cvar_lefthand) ( this is from the client post-think one) 2 other errors same as one above just in diffrent functions the problem is the cvar cl_righthand is retrieved from server confing not according to player id . my request is a way that would allow to retrieve that cvar by each player id if possible . if that can't be done that at least a way to Force value 1 to that cvar on all players so i can simply remove it from knife menu plugin . i will attach the .sma down below in case someone needs the full code but please note that i shoved knives from external plugins in there kind of randomly so it is quite a mess there and probably has a lot of cringe code ( and repetitive stuff ) so bear with it for now since i plan to polish it in the future. i have included the custom .inc for this sma down below so you can compile it but if you want to test the gameplay you're gonna need orpheu and boneposfix modules (i'll try to regroup everything about this plugin in one file in the future sorry for the mess ) Attached Files Get Plugin or Get Source (zp_knife_menu3v4.sma - 190.5 KB) zmpremium.inc (2.2 KB) zmboss.inc (2.2 KB) zmvip.inc (2.2 KB) boneposfix.inc (118 Bytes) orpheu.inc (9.2 KB) zombie_plague_advance.inc (17.7 KB) Przeczytaj cały wpis Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi