Quote:
Originally Posted by Konstantinos
pawn Код:
// global: new gPlayer_Name[MAX_PLAYERS][MAX_PLAYER_NAME];
#define PlayerName(%0) gPlayer_Name[%0]
// OnPlayerConnect: GetPlayerName(playerid, gPlayer_Name[playerid], MAX_PLAYER_NAME);
instead of calling the GetPlayerName function over and over again (with a function).
Oh and make sure that the player is connected before using it otherwise it'll cause run time error 4: Array index out of bounds.
|
Quote:
Originally Posted by rockhopper
Код:
IRCCMD:pm(botid, channel[], user[], host[], params[])
{
new PlayerName[MAX_PLAYER_NAME];
if (IRC_IsVoice(botid, channel, user))
{
if (!isnull(params))
{......
|
Thanks to both of you it worked