a small problem
#1

When I wrote this command, me show just my stats. And the other players do not show.

Код:
dcmd_rank( playerid, params[] )
{
	new id;
	if (strlen(params))
	{
	    id = strval(params);
	    if(IsPlayerConnected(id))
	    {
			new str[256];

			SendClientMessage(playerid,COLOR_YELLOW,"[FunZoneLT]>> Dabartinis lygis:");
			GetPlayerRank(playerid);
			format(str,sizeof(str),"[FunZoneLT]>> Nuzudymai: %d  Mirtys: %d ",GetPlayerKills(playerid),GetPlayerDeaths(playerid));
			SendClientMessage(playerid,0x00FF00AA,str);


	    }
	    else
	    {
	        SendClientMessage(playerid,0x00FF00AA, "[FunZoneLT]>> Tokio zaidejo nera.");
	    }
	}
	else
	{
	SendClientMessage(playerid,0x00FF00AA, "[FunZoneLT]>> /rank [zaidejoid]");

	}
	return 1;
}
Reply


Messages In This Thread
a small problem - by V4at - 24.10.2011, 16:02
Re: a small problem - by LetsOWN[PL] - 24.10.2011, 16:37
Re : a small problem - by V4at - 24.10.2011, 18:49
Re: a small problem - by [MWR]Blood - 24.10.2011, 18:55
Re : a small problem - by V4at - 25.10.2011, 13:35
Re: a small problem - by SuperViper - 25.10.2011, 13:43
Re : a small problem - by V4at - 25.10.2011, 13:58
Re : a small problem - by V4at - 25.10.2011, 14:35

Forum Jump:


Users browsing this thread: 1 Guest(s)