YSI\y_hooks doesn`t work.
#1

Hi, everyone, I've got a simple pawno file with this code:
Код:
hook OnPlayerConnect(playerid) {
	GetPlayerName(playerid, names[playerid], MAX_PLAYER_NAME);
	if(!_HasPlayedBefore(playerid)) {
		// registration
	} else {
		// login
	}
	return SUCCESS;
}
The compiler says everything is correct, unless the y_hooks unique name:
Quote:

player.pwn:150 (error) symbol already defined: "@yH_OnPlayerConnect@005"

And it is weird that there isn't public's with name "OnPlayerConnect", there isn't even any hook, with the same type.
I've also got an #if !defined check. Though it still doesn't work.
And I don't know how to fix it. Any ideas?
Reply


Messages In This Thread
YSI\y_hooks doesn`t work. - by Weline - 22.09.2018, 15:42
Re: YSI\y_hooks doesn`t work. - by VVWVV - 22.09.2018, 16:16
Re: YSI\y_hooks doesn`t work. - by Weline - 22.09.2018, 16:23
Re: YSI\y_hooks doesn`t work. - by VVWVV - 22.09.2018, 16:28
Re: YSI\y_hooks doesn`t work. - by Weline - 22.09.2018, 16:32
Re: YSI\y_hooks doesn`t work. - by VVWVV - 22.09.2018, 16:34

Forum Jump:


Users browsing this thread: 1 Guest(s)