undefined symbol "PlayerName"
#2

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.
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)