So I am trying to make a plugin that displays who is capping the point and I made this.
Code:
public OnPluginStart()
{
HookEvent("teamplay_point_startcapture", Event_Point_Captured);
}
public Action:Event_Point_Captured(Handle:Event, const String:name[], bool:dontBroadcast)
{
new String:Buffer[32];
GetEventString(Event, "cappers", Buffer, 32);
PrintCenterTextAll( "%s: %s", "Cappers", Buffer[1]);
}
It compiles fine, only problem is that all it does is display "Cappers:" and thats it.
I'm really new to sourcepawn and ANY help would be greatly appreciated.
__________________