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

[HELP] knife_kill_money.sma


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Shadowless
Senior Member
Join Date: May 2018
Location: Republic Of Georgia
Old 05-17-2018 , 13:05   [HELP] knife_kill_money.sma
Reply With Quote #1

please help me i just changed in sma msg and cvar, and it does not want to recompile, i already have original version of .amxx which is working


Code:
#include <amxmodx>
#include <cstrike>

#define PLUGIN "kill_knife_money"
#define VERSION "1.0"
#define AUTHOR "IntelCom"

new g_money

public plugin_init()
{
	register_plugin(PLUGIN, VERSION, AUTHOR)
	register_event("DeathMsg", "DeathMsg", "a")
	g_money = register_cvar ("g_money", "500");
}
public DeathMsg()
{
	new kkiller = read_data(1);
	new kkilled = read_data(2);
	new weapon[32];
	read_data(4,weapon,31);
	if (kkilled != kkiller && kkiller)
	{
		return 0;
	}
	if(kkiller == kkilled || kkiller == 0)
	{
		return 0;
	}
	if(containi(weapon, "knife") == -1)
	{
		return 0;
	}
	if(!is_user_connected(kkiller) || !is_user_alive(kkiller))
	{
		return 0;
	}
	new name_kkiller[32];
	new name_kkilled[32];
	get_user_name(kkiller, name_kkiller, 31);
	get_user_name(kkilled, name_kkilled, 31);
	set_hudmessage(255, 0, 0, -1.0, 0.3, 1, 5.0, 6.0)
	show_hudmessage(0, "%s DANIT ACHEXVA %s", name_kkiller, name_kkilled)
	client_print(kkiller,print_chat, "Sagol ! tqven miiget 500$ danit achexistvis",g_money);
	cs_set_user_money(kkiller, cs_get_user_money(kkiller)+get_pcvar_num(g_money), 1);
	return 0;
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1049\\ f0\\ fs16 \n\\ par }
*/
PHP Code:
//// knife_kill_money.sma
// C:\Games\Counter-Strike_1.6\cstrike\addons\amxmodx\scripting\knife_kill_money.sma(0) : error 075: input line too long (after substitutions)
// C:\Games\Counter-Strike_1.6\cstrike\addons\amxmodx\scripting\knife_kill_money.sma(2) : error 075: input line too long (after substitutions)
// C:\Games\Counter-Strike_1.6\cstrike\addons\amxmodx\scripting\knife_kill_money.sma(3) : error 075: input line too long (after substitutions)
// C:\Games\Counter-Strike_1.6\cstrike\addons\amxmodx\scripting\knife_kill_money.sma(4) : error 075: input line too long (after substitutions)
// C:\Games\Counter-Strike_1.6\cstrike\addons\amxmodx\scripting\knife_kill_money.sma(5) : error 075: input line too long (after substitutions)
// C:\Games\Counter-Strike_1.6\cstrike\addons\amxmodx\scripting\knife_kill_money.sma(6) : error 075: input line too long (after substitutions)
// C:\Games\Counter-Strike_1.6\cstrike\addons\amxmodx\scripting\knife_kill_money.sma(7) : error 075: input line too long (after substitutions)
// C:\Games\Counter-Strike_1.6\cstrike\addons\amxmodx\scripting\knife_kill_money.sma(8) : error 075: input line too long (after substitutions)
// C:\Games\Counter-Strike_1.6\cstrike\addons\amxmodx\scripting\knife_kill_money.sma(9) : error 075: input line too long (after substitutions)
// C:\Games\Counter-Strike_1.6\cstrike\addons\amxmodx\scripting\knife_kill_money.sma(10) : error 075: input line too long (after substitutions)
// C:\Games\Counter-Strike_1.6\cstrike\addons\amxmodx\scripting\knife_kill_money.sma(11) : error 075: input line too long (after substitutions)
// C:\Games\Counter-Strike_1.6\cstrike\addons\amxmodx\scripting\knife_kill_money.sma(12) : error 075: input line too long (after substitutions)
// C:\Games\Counter-Strike_1.6\cstrike\addons\amxmodx\scripting\knife_kill_money.sma(13) : error 075: input line too long (after substitutions)
// C:\Games\Counter-Strike_1.6\cstrike\addons\amxmodx\scripting\knife_kill_money.sma(14) : error 075: input line too long (after substitutions)
// C:\Games\Counter-Strike_1.6\cstrike\addons\amxmodx\scripting\knife_kill_money.sma(15) : error 075: input line too long (after substitutions)
// C:\Games\Counter-Strike_1.6\cstrike\addons\amxmodx\scripting\knife_kill_money.sma(16) : error 075: input line too long (after substitutions)
// C:\Games\Counter-Strike_1.6\cstrike\addons\amxmodx\scripting\knife_kill_money.sma(17) : error 075: input line too long (after substitutions)
// C:\Games\Counter-Strike_1.6\cstrike\addons\amxmodx\scripting\knife_kill_money.sma(18) : error 075: input line too long (after substitutions)
// C:\Games\Counter-Strike_1.6\cstrike\addons\amxmodx\scripting\knife_kill_money.sma(19) : error 075: input line too long (after substitutions)
// C:\Games\Counter-Strike_1.6\cstrike\addons\amxmodx\scripting\knife_kill_money.sma(20) : error 075: input line too long (after substitutions)
// C:\Games\Counter-Strike_1.6\cstrike\addons\amxmodx\scripting\knife_kill_money.sma(21) : error 075: input line too long (after substitutions)
// C:\Games\Counter-Strike_1.6\cstrike\addons\amxmodx\scripting\knife_kill_money.sma(22) : error 075: input line too long (after substitutions)
// C:\Games\Counter-Strike_1.6\cstrike\addons\amxmodx\scripting\knife_kill_money.sma(23) : error 075: input line too long (after substitutions)
// C:\Games\Counter-Strike_1.6\cstrike\addons\amxmodx\scripting\knife_kill_money.sma(24) : error 075: input line too long (after substitutions)
// C:\Games\Counter-Strike_1.6\cstrike\addons\amxmodx\scripting\knife_kill_money.sma(25) : error 075: input line too long (after substitutions)
// C:\Games\Counter-Strike_1.6\cstrike\addons\amxmodx\scripting\knife_kill_money.sma(26) : error 075: input line too long (after substitutions)
//
// Compilation aborted.
// 26 Errors.
// Could not locate output file compiled\knife_kill_money.amx (compile failed).
//
// Compilation Time: 0,48 sec
// ---------------------------------------- 
LINK - https://amxx.pl/topic/144000-kill-knife-money/
__________________
CS 1.6 80.241.245.230-3030 .::WLG::.

Last edited by Shadowless; 05-20-2018 at 06:36.
Shadowless is offline
Send a message via ICQ to Shadowless Send a message via MSN to Shadowless Send a message via Yahoo to Shadowless Send a message via Skype™ to Shadowless
WhiteFang1319
Senior Member
Join Date: Jan 2017
Location: India
Old 05-17-2018 , 14:16   Re: [HELP] knife_kill_money.sma
Reply With Quote #2

I tried copy pasting your code on web compiler. It compiles without any errors, just 2 indentation warning which isn't a problem
WhiteFang1319 is offline
sekac
Senior Member
Join Date: Nov 2016
Old 05-17-2018 , 16:02   Re: [HELP] knife_kill_money.sma
Reply With Quote #3

Quote:
Originally Posted by Shadowless View Post
C:\Games\Counter-Strike_1.6
No steam...
sekac is offline
Relaxing
Veteran Member
Join Date: Jun 2016
Location: Catlands
Old 05-17-2018 , 17:13   Re: [HELP] knife_kill_money.sma
Reply With Quote #4

Quote:
Originally Posted by sekac View Post
No steam...
Steam lets you choose the destination to download games.
__________________
Have A Relaxing Day | Wiki
aim_relaxing
Relaxing is offline
sekac
Senior Member
Join Date: Nov 2016
Old 05-17-2018 , 17:20   Re: [HELP] knife_kill_money.sma
Reply With Quote #5

Quote:
Originally Posted by Relaxing View Post
Steam lets you choose the destination to download games.
But wouldn't the game be in Half-Life/cstrike
sekac is offline
Relaxing
Veteran Member
Join Date: Jun 2016
Location: Catlands
Old 05-17-2018 , 17:31   Re: [HELP] knife_kill_money.sma
Reply With Quote #6

Quote:
Originally Posted by sekac View Post
But wouldn't the game be in Half-Life/cstrike
You might be right here.
__________________
Have A Relaxing Day | Wiki
aim_relaxing
Relaxing is offline
instinctpt1
Senior Member
Join Date: Dec 2016
Location: Rajasthan, India
Old 05-17-2018 , 22:17   Re: [HELP] knife_kill_money.sma
Reply With Quote #7

Quote:
Originally Posted by sekac View Post
No steam...
Good observation xD
But help him ..it will be better
__________________
CSIndia The only Indian Scripters Community
instinctpt1 is offline
Shadowless
Senior Member
Join Date: May 2018
Location: Republic Of Georgia
Old 05-19-2018 , 18:35   Re: [HELP] knife_kill_money.sma
Reply With Quote #8

Code:
#include <amxmodx>
#include <cstrike>

#define PLUGIN "kill_knife_money"
#define VERSION "1.0"
#define AUTHOR "IntelCom"

new g_money

public plugin_init()
{
	register_plugin(PLUGIN, VERSION, AUTHOR)
	register_event("DeathMsg", "DeathMsg", "a")
	g_money = register_cvar ("g_money", "500");
}
public DeathMsg()
{
	new kkiller = read_data(1);
	new kkilled = read_data(2);
	new weapon[32];
	read_data(4,weapon,31);
	if (kkilled != kkiller && kkiller)
	{
		return 0;
	}
	if(kkiller == kkilled || kkiller == 0)
	{
		return 0;
	}
	if(containi(weapon, "knife") == -1)
	{
		return 0;
	}
	if(!is_user_connected(kkiller) || !is_user_alive(kkiller))
	{
		return 0;
	}
	new name_kkiller[32];
	new name_kkilled[32];
	get_user_name(kkiller, name_kkiller, 31);
	get_user_name(kkilled, name_kkilled, 31);
	set_hudmessage(255, 0, 0, -1.0, 0.3, 1, 5.0, 6.0)
	show_hudmessage(0, "%s DANIT ACHEXVA %s", name_kkiller, name_kkilled)
	client_print(kkiller,print_chat, "Sagol ! tqven miiget 500$ danit achexistvis",g_money);
	cs_set_user_money(kkiller, cs_get_user_money(kkiller)+get_pcvar_num(g_money), 1);
	return 0;
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1049\\ f0\\ fs16 \n\\ par }
*/


I compiled this code but it does not work
__________________
CS 1.6 80.241.245.230-3030 .::WLG::.

Last edited by Shadowless; 05-20-2018 at 06:36.
Shadowless is offline
Send a message via ICQ to Shadowless Send a message via MSN to Shadowless Send a message via Yahoo to Shadowless Send a message via Skype™ to Shadowless
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 10:25.


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