[PName] - should be used?
#4

1: Yes, I should, that's right. In fact, it is done in an include but I did not release it yet.

2: I don't want to redefine GetPlayerName, because that would cause problems in existing scripts, which still uses GetPlayerName(playerid, name[], len)

3: This was just a test. Altough I don't know, is this a correct ALS for callback:
pawn Code:
public OnPlayerConnect(playerid)
{
    GetPlayerName(playerid, playernames[playerid], MAX_PLAYER_NAME);
    return CallLocalFunction("PName_OnPlayerConnect", "i", playerid);
}

#if defined _ALS_OnPlayerConnect
    #undef OnPlayerConnect
#else
    #define _ALS_OnPlayerConnect
#endif
#define OnPlayerConnect PName_OnPlayerConnect
?
Reply


Messages In This Thread
[PName] - should be used? - by KoczkaHUN - 20.08.2011, 11:25
Re: [PName] - should be used? - by Hurdehack - 20.08.2011, 11:34
Re: [PName] - should be used? - by Hiddos - 20.08.2011, 11:35
Re: [PName] - should be used? - by KoczkaHUN - 07.09.2011, 16:47

Forum Jump:


Users browsing this thread: 1 Guest(s)