Raised This Month: $ Target: $400
 0% 

Subplugin Submission [ZP] Game Stats Hud Information.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
happy_2012
Senior Member
Join Date: Aug 2012
Old 12-18-2014 , 22:11   Re: [ZP] Game Stats Hud Information.
Reply With Quote #6

Hello,
zmd94 Thanks for the optimizing suggestions, and I am glad that this plugin somehow helped you figuring new thing out.

But actually, you got the idea wrong. I will explain why!

This block of code:
PHP Code:
new g_szStrings[32];

public Function(
id)
{
    
formatex(g_szStringscharsmax(g_szStrings), "zmd94!")
}

public 
Function2(id)
{
    
client_print(idprint_chat"[ZP] %s!"g_szStrings)

Should actually be like the following block to get it working as intended
PHP Code:
new g_szStrings[32];

public Function(
id)
{
    
formatex(g_szStringscharsmax(g_szStrings), "zmd94!")
    
client_print(idprint_chat"[ZP] %s!"g_szStrings)

I also updated the code with the optimizations you have suggested
Attached Files
File Type: sma Get Plugin or Get Source (zp50_sub_gamestats.sma - 991 views - 2.5 KB)
__________________
Discord contacts:
I rarely look at private messages here, but I am very active on Discord!

Last edited by happy_2012; 12-18-2014 at 22:14.
happy_2012 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:02.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode