Raised This Month: $ Target: $400
 0% 

Can't compile this plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MacL
Member
Join Date: May 2021
Old 06-16-2021 , 16:48   Re: Can't compile this plugin
Reply With Quote #1

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
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 11:31.


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