Raised This Month: $ Target: $400
 0% 

Run time error 3: stack error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kaju
New Member
Join Date: Aug 2014
Old 08-16-2014 , 08:57   Run time error 3: stack error
Reply With Quote #1

Code:
L 08/15/2014 - 16:13:32: [AMXX] Displaying debug trace (plugin "QTM_CodMod.amxx")
L 08/15/2014 - 16:13:32: [AMXX] Run time error 3: stack error 
L 08/15/2014 - 16:13:32: [AMXX]    [0] QTM_CodMod.sma::Item_Deploy_Post (line 1349)
Code:
public Item_Deploy_Post(ent)
{
	static id; id = get_pdata_cbase(ent, 41, 4);
	if(!is_user_alive(id))
		return;
	
	static team; team = get_user_team(id);
	if(team > 2)
		return;
	
	cs_get_weaponbox_type(ent);
	
	static bron; bron = cs_get_weapon_id(ent);
	if(!((1<<bron) & (bronie_klasy[klasa_gracza[id]] | bonusowe_bronie_gracza[id] | bronie_druzyny[team] | bronie_dozwolone)))
	{
		new weaponname[24];      //<========= line 1349
		get_weaponname(bron, weaponname, 23);
		engclient_cmd(id, "drop", weaponname);
	}
	if(cs_get_user_shield(id) && !gracz_ma_tarcze[id])
		engclient_cmd(id, "drop", "weapon_shield");
}
Kaju is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 08-16-2014 , 09:46   Re: Run time error 3: stack error
Reply With Quote #2

Make it static/global instead of new and you're fine.
__________________
Black Rose is offline
Reply


Thread Tools
Display Modes

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 13:15.


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