GetPlayerName error
#1

Код:
new pname[MAX_PLAYER_NAME];
CMD:credits(playerid, params[])
{
	ShowPlayerDialog(playerid, creditdialog, DIALOG_STYLE_MSGBOX, "Credits", ""cgreen">"cred"Elvis"cblue" server main scripter\n"cgreen">"cred"RaiN_HawK"cblue" server founder", "Ok", "");
	SendAdminCMD(playerid, "credits");
	return 1;
}

stock SendAdminCMD(playerid, command[])
{
	for(new i = 0; i <= MAX_PLAYERS; i++)
	{
		if(IsPlayerConnected(i) && pdata[i][admin] > 0)
		format(String, sizeof(String), "%s has used command %s", GetPlayerName(playerid, pname, sizeof(pname)), command);
		SendClientMessage(i, blue, String);
	}
}
Can anyone tell what is error in this it shows only has used command credits and it happens everywhere except in dialog register and login
Reply


Messages In This Thread
GetPlayerName error - by sarab_singh - 06.08.2013, 12:37
Re: GetPlayerName error - by Konstantinos - 06.08.2013, 13:03
Re: GetPlayerName error - by sarab_singh - 06.08.2013, 13:09
Re: GetPlayerName error - by Konstantinos - 06.08.2013, 13:12
Re: GetPlayerName error - by sarab_singh - 06.08.2013, 13:15

Forum Jump:


Users browsing this thread: 1 Guest(s)