Raised This Month: $51 Target: $400
 12% 

Problems with natives


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HuhHuhXd
Junior Member
Join Date: Jul 2023
Old 07-28-2023 , 16:30   Problems with natives
Reply With Quote #1

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 - 211:46: [AMXX] Displaying debug trace (plugin "SexEngine.amxx", version "1.0")
L 07/28/2023 - 211: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

Last edited by HuhHuhXd; 07-28-2023 at 16:32.
HuhHuhXd is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-28-2023 , 20:34   Re: Problems with natives
Reply With Quote #2

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).
__________________

Last edited by fysiks; 07-28-2023 at 20:35.
fysiks is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 07-29-2023 , 19:44   Re: Problems with natives
Reply With Quote #3

Youre missing a parameter. I'm assuming it should be "i" and also inside of the loop.
__________________
Black Rose is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:08.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode