AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Little problem (https://forums.alliedmods.net/showthread.php?t=159667)

usaexelent 06-20-2011 03:56

Little problem
 
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 :cry:. 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 }
*/


DjOptimuS 06-20-2011 05:54

Re: Little problem
 
1 Attachment(s)
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

usaexelent 06-20-2011 05:57

Re: Little problem
 
Still the plugin doesn't work and i already had cstrike addon installed from there.

DjOptimuS 06-20-2011 06:05

Re: Little problem
 
What isn't working ? You have error logs ? If so, post them here to help you.

usaexelent 06-20-2011 06:22

Re: Little problem
 
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.


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

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