GetPlayerNetworkStats doesn't display anything
#1

Hello.
When i run this code, nothing shows up.
Not even an empty SendClientMessage.

halp??

PHP код:
/* ============================================================================= */
COMMAND:testing(playerid,params[])
{
    new 
stats[400+1];
    
GetPlayerNetworkStats(playeridstatssizeof(stats));
    
SendClientMessage(playerid,-1,stats);
    return 
1;
}
/* ============================================================================= */ 
EDIT: it has to be in a dialog.
my bad hehe
Reply
#2

Change this line

PHP код:
SendClientMessage(playerid,-1,stats); 
to

PHP код:
ShowPlayerDialog(playerid0DIALOG_STYLE_MSGBOX"My NetworkStats"stats"Okay"""); 
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)