Help Warning
#8

GetPlayerNameEx only has one parameter, and that is 'playerid', it is mostly for use in strings.

Example:
pawn Код:
new string[50];
format(string,sizeof(string),"My name is %s.",GetPlayerNameEx(playerid));
SendClientMessageToAll(0xFFFF00FF, string);
However, GetPlayerName is different and requires saving to a destination/variable.
pawn Код:
new name[MAX_PLAYER_NAME], string[50];
GetPlayerName(playerid, name, sizeof(name));
format(string,sizeof(string),"My name is %s.",name);
SendClientMessageToAll(0xFFFF00FF, string);
Simply just remove the GetPlayerNameEx line if it is giving you errors.
Reply


Messages In This Thread
Help Warning - by imnoob - 22.09.2012, 11:12
Re: Help Warning - by xMCx - 22.09.2012, 11:30
Re: Help Warning - by imnoob - 22.09.2012, 11:42
Re: Help Warning - by Red_Dragon. - 22.09.2012, 11:42
Re: Help Warning - by imnoob - 22.09.2012, 11:44
Re: Help Warning - by Red_Dragon. - 22.09.2012, 11:45
Re: Help Warning - by imnoob - 22.09.2012, 13:03
Re: Help Warning - by clarencecuzz - 22.09.2012, 13:09

Forum Jump:


Users browsing this thread: 1 Guest(s)