Little Help Needed with (/fps [id]) Command
#1

Hello, I need help with this command.

Код:
COMMAND:fps(playerid,params[])
{
	    new targetid=playerid;
	    sscanf(params,"u",targetid);
            if(!IsPlayerConnected(targetid))
            return SendClientMessage(playerid, ADMIN_RED, "That Player is not Connected!");
	    FpsShow(playerid,targetid);
   	    return 1;
}
stock FpsShow(playerid, targetid)
{
        new string[256];
	new TargetName[MAX_PLAYER_NAME];
	GetPlayerName(targetid,TargetName,sizeof(TargetName));


	format(string, sizeof(string), "%s's (%d) Current Fps is: %d.", PlayerName(targetid), targetid, pFPS);
        SendClientMessage(playerid, LIGHTGREEN, string);
	return 1;
}
My problem is that, this command doesn't shows the fps of target player, it only shows fps of "playerid"

How do i make "pFps" for TargetID. Help me
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)