22.09.2018, 15:42
Hi, everyone, I've got a simple pawno file with this code:
The compiler says everything is correct, unless the y_hooks unique name:
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?
Код:
hook OnPlayerConnect(playerid) { GetPlayerName(playerid, names[playerid], MAX_PLAYER_NAME); if(!_HasPlayedBefore(playerid)) { // registration } else { // login } return SUCCESS; }
Quote:
player.pwn:150 (error) symbol already defined: "@yH_OnPlayerConnect@005" |
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?