undefined symbol "PlayerName"
#4

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
Reply


Messages In This Thread
undefined symbol "PlayerName" - by Team_PRO - 15.07.2014, 13:32
Re: undefined symbol "PlayerName" - by Konstantinos - 15.07.2014, 13:39
Re: undefined symbol "PlayerName" - by rockhopper - 15.07.2014, 13:40
Re: undefined symbol "PlayerName" - by Team_PRO - 15.07.2014, 13:45

Forum Jump:


Users browsing this thread: 1 Guest(s)