Raised This Month: $ Target: $400
 0% 

Little problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
usaexelent
Senior Member
Join Date: Nov 2009
Location: Lithuania
Old 06-20-2011 , 03:56   Little problem
Reply With Quote #1

Hi everyone i'm a noob plugin scripter and my home language is lithunian but i will try to explain it. So here we go, the problem is that my plugin doesn't work when i include cstrike module , i tried to reinstall amxmodx 1.8.1 but it still gives me shit, Plz help me . And i noticed that the plugin compiles but doesn't work and every other plugins with cstrke module doesn't work too when i compile

Heres my code:
Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <fun>
#include <cstrike>
#define PLUGIN "My first plugin"
#define VERSION "1.0"
#define AUTHOR "-=3rn1s=-"
new kaina

public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	register_clcmd("say /test", "Boost")
	kaina = register_cvar("amx_boost_price", "800")
}


public Boost(id)
{
	new pinigai = cs_get_user_money(id)
	if(pinigai >= get_pcvar_num(kaina))
	{
	set_hudmessage(50, 255, 75, -1.0, -1.0)
	show_hudmessage(id, "Tu nusipirkai Boost'a")
	set_user_health(id, 150)
	set_user_gravity(id,0.7)
	}
	else
	{
	set_hudmessage(0, 255, 0, -1.0, -1.0)
	show_hudmessage(id, "Tau neuztenka pinigu, Boost kainuoja 800$")
	}
	
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1049\\ f0\\ fs16 \n\\ par }
*/

Last edited by usaexelent; 06-20-2011 at 04:00. Reason: forgot to include code
usaexelent is offline
Send a message via Skype™ to usaexelent
DjOptimuS
Senior Member
Join Date: Jan 2009
Old 06-20-2011 , 05:54   Re: Little problem
Reply With Quote #2

the plugin compiles without any problem

First make sure that you have the cstrike addon installed on your server from here

Counter-Strike Addon
Then use the Get Plugin link in this post
Attached Files
File Type: sma Get Plugin or Get Source (compiled_cstrike_test.sma - 580 views - 1.1 KB)
DjOptimuS is offline
usaexelent
Senior Member
Join Date: Nov 2009
Location: Lithuania
Old 06-20-2011 , 05:57   Re: Little problem
Reply With Quote #3

Still the plugin doesn't work and i already had cstrike addon installed from there.
usaexelent is offline
Send a message via Skype™ to usaexelent
DjOptimuS
Senior Member
Join Date: Jan 2009
Old 06-20-2011 , 06:05   Re: Little problem
Reply With Quote #4

What isn't working ? You have error logs ? If so, post them here to help you.
DjOptimuS is offline
usaexelent
Senior Member
Join Date: Nov 2009
Location: Lithuania
Old 06-20-2011 , 06:22   Re: Little problem
Reply With Quote #5

Thanks for the last post i fixed it it seems that i didin't had cstrike_amxx.dll module. I fought that when i install amx mod x 1.8.1 it will already be there. But thanks a milijon man, you realy helped me.
usaexelent is offline
Send a message via Skype™ to usaexelent
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 23:23.


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