Print all ZCDM Commands
#9

With this code:

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());
}
I'm getting this: /imageshack/img843/7093/xrpj.png
Reply


Messages In This Thread
Print all ZCDM Commands - by saamp - 23.08.2013, 12:11
Re: Print all ZCDM Commands - by doreto - 23.08.2013, 12:24
Re: Print all ZCDM Commands - by RedJohn - 23.08.2013, 12:36
Re: Print all ZCDM Commands - by RajatPawar - 23.08.2013, 12:48
Re: Print all ZCDM Commands - by RedJohn - 23.08.2013, 12:50
Re: Print all ZCDM Commands - by RedJohn - 23.08.2013, 13:10
Re: Print all ZCDM Commands - by RedJohn - 23.08.2013, 13:31
Re: Print all ZCDM Commands - by saamp - 24.08.2013, 22:29
Re: Print all ZCDM Commands - by saamp - 24.08.2013, 22:54

Forum Jump:


Users browsing this thread: 1 Guest(s)