HELP - instead of name shows 68
#1

Here's my code:

Код:
stock GetPlayerNameEx(playerid) {
	new pName[MAX_PLAYER_NAME];
	GetPlayerName(playerid, pName, sizeof(pName));
	if(strfind(pName, "_", true)) {
		strreplace(pName, "_", " ");
	}
	return pName;
}



public OnPlayerText(playerid, text[]) {
	new string[128];
	format(string, sizeof(string), "%d says: %s", GetPlayerNameEx(playerid), text);
	SendClientMessage(playerid, L_RED_COLOR, string);
}
Whenever I go in-game, instead of my name which was "Denis_Test" at that time, it showed 68. Might I know what is the problem here?
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: 2 Guest(s)