Hi, i'm trying to remove the text which says a player joins. When I try and run "return plugin_handled", I get a warning error, does not occur if i just use "return" (but obviously still prints the message).
Code:
HookEvent("player_connect",PlayerCon,EventHookMode_Pre);
public PlayerCon(Handle:event,const String:name[],bool:dontBroadcast)
{
if (!GetConVarInt(g_hConnectAnnounce))
return;
new String:playername[35]
GetEventString(event,"name",playername,35);
PrintToChatAll("My Version: %s connected",playername)
return;
}
It reports the following warning on the return lines if i use "return Plugin_Handled":
warning 213: tag mismatch
I'm very new to this.
Thanks
Lee