09.02.2015, 10:18
Hello, I need help with this command.
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
Код:
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; }
How do i make "pFps" for TargetID. Help me