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_szStrings, charsmax(g_szStrings), "zmd94!")
}
public Function2(id)
{
client_print(id, print_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_szStrings, charsmax(g_szStrings), "zmd94!")
client_print(id, print_chat, "[ZP] %s!", g_szStrings)
}
I also updated the code with the optimizations you have suggested