|
Author
|
Message
|
|
Member
|

06-16-2021
, 16:48
Re: Can't compile this plugin
|
#1
|
Quote:
Originally Posted by strangeguy
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
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.
|
|
|
|
|