SA-MP Forums Archive
GetPlayerNetworkStats doesn't display anything - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: GetPlayerNetworkStats doesn't display anything (/showthread.php?tid=620713)



GetPlayerNetworkStats doesn't display anything - justjamie - 02.11.2016

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


Re: GetPlayerNetworkStats doesn't display anything - JaKe Elite - 02.11.2016

Change this line

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

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