15.03.2015, 14:02
I've tried to follow your words but I received a few errors. Here's what I did:
I've created a variable (pName) into an enumerator (pInfo).
I added the following lines inside the OnPlayerConnect callback:
and
I received the expected token ";' type of errors. can't quote as I'm not home at the moment.
I've created a variable (pName) into an enumerator (pInfo).
I added the following lines inside the OnPlayerConnect callback:
Код:
public OnPlayerConnect(playerid) { GetPlayerName(playerid, savedplayerdata[playerid][pName], sizeof(savedplayerdata[playerid][pName])); strreplace(savedplayerdata[playerid][pName], "_", " "); return savedplayerdata[playerid][pName]; }
Код:
public OnPlayerText(playerid, text[]) { new string[128]; format(string, sizeof(string), "%s says: %s", savedplayerdata[playerid][pName], text); SendClientMessage(playerid, L_RED_COLOR, string); }