24.08.2013, 22:54
With this code:
I'm getting this: /imageshack/img843/7093/xrpj.png
pawn Код:
// Top of script
#include <YSI\y_amx>
// Somewhere
stock GetAllZCMDCommands()
{
static szBuffer[1024],
szPublic[32],
idx;
szBuffer[0] = '\0';
szPublic[0] = '\0';
idx = 0;
while ((idx = AMX_GetPublicNamePrefix(idx, szPublic, _A<cmd_>)))
{
format(szBuffer, sizeof (szBuffer), "%s/%s\n", szBuffer, szPublic);
}
return szBuffer;
}
// OnGameModeInit
{
.................
printf("%s", GetAllZCMDCommands());
}

