Problems with natives
hi, i have problem after starting the function with public Release Zombies(), a problem pops up I don't know what's going on I tried in different ways it's hard for me to do
Errors from console: L 07/28/2023 - 21:31:46: [AMXX] Displaying debug trace (plugin "SexEngine.amxx", version "1.0") L 07/28/2023 - 21:31:46: [AMXX] Run time error 10: native error (native "otworzmenubroni") Code: Source Plugin: public plugin_natives() { register_native("otworzmenubroni", "otworzmenubroni_native"); } public gunmenu(id) is just public which opens the gun menu eg under /guns public otworzmenubroni_native(id){ gunmenu(id); } Include: #if defined _moneySystem_included #endinput #endif #define _basebuilderxd_included native otworzmenubroni(); Target Plugin: public Release_Zombies() { g_boolCanBuild = false remove_task(TASK_BUILD); g_boolPrepTime = false remove_task(TASK_PREPTIME); new players[32], num, player, szWeapon[32] get_players(players, num, "a") set_pev(g_iEntBarrier,pev_solid,SOLID_NOT) set_pev(g_iEntBarrier,pev_renderamt,Float:{ 0.0 }) //se_hudmessage(255, 255, 255, -1.0, 0.45, 0, 1.0, 10.0, 0.1, 0.2, 1) //show_hudmessage(0, "%L", LANG_SERVER, "RELEASE_ANNOUNCE"); client_cmd(0, "spk %s", g_szRoundStart[ random( sizeof g_szRoundStart ) ] ) otworzmenubroni(); << THIS THIS NATIVE ExecuteForward(g_fwRoundStart, g_fwDummyResult); for(new i = 1; i < 33; i ++){ if( !is_user_connected(i) || is_user_hltv(i) || is_user_bot(i) || get_user_team(i) != 2) continue; } } Attention - << THIS THIS NATIVE I tried similarly with other natives for something else and it also doesn't work for me, I'm sorry that everything is so shitty here but I don't understand this forum, I translate everything xd |
Re: Problems with natives
If the plugin that has an issue exists on this forum, provide a link to it. If it's not on the site, attach the .sma file. Also, you should post the WHOLE error output, you're missing at least one or two lines (one before and one after what you currently have posted I think).
|
Re: Problems with natives
Youre missing a parameter. I'm assuming it should be "i" and also inside of the loop.
|
| All times are GMT -4. The time now is 02:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.