Quote:
Originally Posted by Chaosxk
You have a mix between old/new syntax, should be something like this for new:
PHP Code:
public Action Event_PlayerConnect(Event event, const char[] name, bool dontBroadcast) { int index = event.GetInt("index"); int client = GetClientOfUserId(event.GetInt("userid")); //do something }
|
I apologize, I am not actually using the old format, I directly copy/pasted that from someone else's old plugin source, after searching around for some examples of
player_connect event hooks :/ But thank you for making sure I was on the right track!
Also, regarding the last two arguments, what exactly are they used for? The API is great and all for
finding the correct functions and syntaxes, but it has fairly poor descriptions of what the function is used for or what it even does. It also has no examples, just definitions for mostly everything :/
Quote:
Originally Posted by Chaosxk
Well try it out and adjust if your missing something.
|
I haven't even begun to set up a SQL database yet, so I can't really test it. I have zero experience with it, but some nice people have posted some examples and links to get me started. It'll be slow progress since I'll be busy this weekend.