HELP - instead of name shows 68
#7

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:

Код:
public OnPlayerConnect(playerid) {
	GetPlayerName(playerid, savedplayerdata[playerid][pName], sizeof(savedplayerdata[playerid][pName]));
	strreplace(savedplayerdata[playerid][pName], "_", " ");
	return savedplayerdata[playerid][pName];
}
and

Код:
public OnPlayerText(playerid, text[]) {
	new string[128];
	format(string, sizeof(string), "%s says: %s", savedplayerdata[playerid][pName], text);
	SendClientMessage(playerid, L_RED_COLOR, string);
}
I received the expected token ";' type of errors. can't quote as I'm not home at the moment.
Reply


Messages In This Thread
HELP - instead of name shows 68 - by Denis1 - 15.03.2015, 12:19
Re: HELP - instead of name shows 68 - by HY - 15.03.2015, 12:20
Re: HELP - instead of name shows 68 - by DeitY - 15.03.2015, 12:21
Re: HELP - instead of name shows 68 - by Denis1 - 15.03.2015, 12:21
Re: HELP - instead of name shows 68 - by HazardouS - 15.03.2015, 12:42
Re: HELP - instead of name shows 68 - by Vince - 15.03.2015, 12:42
Re: HELP - instead of name shows 68 - by Denis1 - 15.03.2015, 14:02
Re: HELP - instead of name shows 68 - by Denis1 - 15.03.2015, 15:32
Respuesta: HELP - instead of name shows 68 - by admantis - 15.03.2015, 15:50

Forum Jump:


Users browsing this thread: 5 Guest(s)