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

Can't compile this plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
strangeguy
Senior Member
Join Date: Mar 2019
Old 06-16-2021 , 15:34   Can't compile this plugin
Reply With Quote #1

When I'm compiling this plugin it says me this: error 017: undefined symbol "id"


Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fakemeta>
#include <hamsandwich>
#include <xs>
#include <csx>

#define PLUGIN "Godzina"
#define VERSION "1.0"
#define AUTHOR "Sn!ff3r"
#define FLAGA ADMIN_LEVEL_G
native get_user_kills(id)

public plugin_init() 
{
	register_plugin(PLUGIN, VERSION, AUTHOR)
	set_task(1.0,"timer",_,_,_,"b")
}

public timer()
{	
	new Time[9]
	get_time("%H:%M:%S",Time,8)
	set_hudmessage(0, 255, 0, 0.7, 0.06, 0, 0.0, 1.2, 0.0, 0.0, 3)
	ShowSyncHudMsg(0,CreateHudSyncObj(),"[Forum: Hades-Zone.eu] ^n[Godzina: %s] ^n[Koniec mapy za: %d:%02d] ^n[Zabojstw: %d]",Time,(get_timeleft() / 60), (get_timeleft() % 60),get_user_kills(id))
}
strangeguy is offline
MacL
Member
Join Date: May 2021
Old 06-16-2021 , 16:48   Re: Can't compile this plugin
Reply With Quote #2

Quote:
Originally Posted by strangeguy View Post
When I'm compiling this plugin it says me this: error 017: undefined symbol "id"


Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fakemeta>
#include <hamsandwich>
#include <xs>
#include <csx>

#define PLUGIN "Godzina"
#define VERSION "1.0"
#define AUTHOR "Sn!ff3r"
#define FLAGA ADMIN_LEVEL_G
native get_user_kills(id)

public plugin_init() 
{
	register_plugin(PLUGIN, VERSION, AUTHOR)
	set_task(1.0,"timer",_,_,_,"b")
}

public timer()
{	
	new Time[9]
	get_time("%H:%M:%S",Time,8)
	set_hudmessage(0, 255, 0, 0.7, 0.06, 0, 0.0, 1.2, 0.0, 0.0, 3)
	ShowSyncHudMsg(0,CreateHudSyncObj(),"[Forum: Hades-Zone.eu] ^n[Godzina: %s] ^n[Koniec mapy za: %d:%02d] ^n[Zabojstw: %d]",Time,(get_timeleft() / 60), (get_timeleft() % 60),get_user_kills(id))
}
Quote:
Originally Posted by fysiks View Post
it's a global event so there is no "id" passed, afaik.

You'll have to use some kind of loop to execute the LOL code on all players present on the server.
MacL is offline
deprale
Senior Member
Join Date: Oct 2018
Location: Leeds
Old 06-18-2021 , 00:19   Re: Can't compile this plugin
Reply With Quote #3

Quote:
Originally Posted by strangeguy View Post
When I'm compiling this plugin it says me this: error 017: undefined symbol "id"


Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fakemeta>
#include <hamsandwich>
#include <xs>
#include <csx>

#define PLUGIN "Godzina"
#define VERSION "1.0"
#define AUTHOR "Sn!ff3r"
#define FLAGA ADMIN_LEVEL_G
native get_user_kills(id)

public plugin_init() 
{
	register_plugin(PLUGIN, VERSION, AUTHOR)
	set_task(1.0,"timer",_,_,_,"b")
}

public timer(id)
{	
	new Time[9]
	get_time("%H:%M:%S",Time,8)
	set_hudmessage(0, 255, 0, 0.7, 0.06, 0, 0.0, 1.2, 0.0, 0.0, 3)
	ShowSyncHudMsg(0,CreateHudSyncObj(),"[Forum: Hades-Zone.eu] ^n[Godzina: %s] ^n[Koniec mapy za: %d:%02d] ^n[Zabojstw: %d]",Time,(get_timeleft() / 60), (get_timeleft() % 60),get_user_kills(id))
}
You don't need all these includes, and there's unused definition of FLAGA.

Code:
#include <amxmodx>

#define PLUGIN "Godzina"
#define VERSION "1.0"
#define AUTHOR "Sn!ff3r"
native get_user_kills(id)

public plugin_init() 
{
	register_plugin(PLUGIN, VERSION, AUTHOR)
	set_task(1.0,"timer", 0,_,_,"b")
}

public timer(id)
{	
	new Time[9]
	get_time("%H:%M:%S",Time,8)
	set_hudmessage(0, 255, 0, 0.7, 0.06, 0, 0.0, 1.2, 0.0, 0.0, 3)
	ShowSyncHudMsg(0,CreateHudSyncObj(),"[Forum: Hades-Zone.eu] ^n[Godzina: %s] ^n[Koniec mapy za: %d:%02d] ^n[Zabojstw: %d]",Time,(get_timeleft() / 60), (get_timeleft() % 60),get_user_kills(id))
}
__________________
deprale is offline
Barlap
Senior Member
Join Date: Apr 2016
Location: Romania
Old 06-20-2021 , 16:37   Re: Can't compile this plugin
Reply With Quote #4

Try to compile it here: IecGame Compiler
Code:
#include <amxmodx>

#define PLUGIN "Godzina"
#define VERSION "1.0"
#define AUTHOR "Sn!ff3r"
native get_user_kills(id)

public plugin_init() 
{
	register_plugin(PLUGIN, VERSION, AUTHOR)
	set_task(1.0,"timer", 0,_,_,"b")
}

public timer(id)
{	
	new Time[9]
	get_time("%H:%M:%S",Time,8)
	set_hudmessage(0, 255, 0, 0.7, 0.06, 0, 0.0, 1.2, 0.0, 0.0, 3)
	ShowSyncHudMsg(0,CreateHudSyncObj(),"[Forum: Hades-Zone.eu] ^n[Godzina: %s] ^n[Koniec mapy za: %d:%02d] ^n[Zabojstw: %d]",Time,(get_timeleft() / 60), (get_timeleft() % 60),get_user_kills(id))
}
Barlap is offline
Send a message via ICQ to Barlap Send a message via Skype™ to Barlap
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-20-2021 , 18:34   Re: Can't compile this plugin
Reply With Quote #5

Quote:
Originally Posted by Barlap View Post
Try to compile it here: IecGame Compiler
Code:
#include <amxmodx>

#define PLUGIN "Godzina"
#define VERSION "1.0"
#define AUTHOR "Sn!ff3r"
native get_user_kills(id)

public plugin_init() 
{
	register_plugin(PLUGIN, VERSION, AUTHOR)
	set_task(1.0,"timer", 0,_,_,"b")
}

public timer(id)
{	
	new Time[9]
	get_time("%H:%M:%S",Time,8)
	set_hudmessage(0, 255, 0, 0.7, 0.06, 0, 0.0, 1.2, 0.0, 0.0, 3)
	ShowSyncHudMsg(0,CreateHudSyncObj(),"[Forum: Hades-Zone.eu] ^n[Godzina: %s] ^n[Koniec mapy za: %d:%02d] ^n[Zabojstw: %d]",Time,(get_timeleft() / 60), (get_timeleft() % 60),get_user_kills(id))
}
Completely irrelevant, unnecessary, and people should never use random web compilers.
__________________
fysiks is offline
deprale
Senior Member
Join Date: Oct 2018
Location: Leeds
Old 06-21-2021 , 21:47   Re: Can't compile this plugin
Reply With Quote #6

Quote:
Originally Posted by fysiks View Post
Completely irrelevant, unnecessary, and people should never use random web compilers.
+ why the hell did he just copy paste the same thing I WROTE? Is he blind or pretending...
__________________
deprale 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 04:19.


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