22.09.2012, 13:09
GetPlayerNameEx only has one parameter, and that is 'playerid', it is mostly for use in strings.
Example:
However, GetPlayerName is different and requires saving to a destination/variable.
Simply just remove the GetPlayerNameEx line if it is giving you errors.
Example:
pawn Код:
new string[50];
format(string,sizeof(string),"My name is %s.",GetPlayerNameEx(playerid));
SendClientMessageToAll(0xFFFF00FF, string);
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);

