SA-MP Forums Archive
Help me, IMPORTANT plz read - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help me, IMPORTANT plz read (/showthread.php?tid=226594)



Help me, IMPORTANT plz read - MBX97 - 15.02.2011

HELP ME

please help me in /report zcmd, i want to switch it to strcmpor even dcmd plz

thanks for ready
PasteBin For The report zmcd
regards MBX97


Re: Help me, IMPORTANT plz read - admantis - 15.02.2011

No you don't want to Strcmp sucks.


Re: Help me, IMPORTANT plz read - MBX97 - 15.02.2011

i need it please, write it to me in pastebin or
pawn Код:
HERE



Re: Help me, IMPORTANT plz read - AlExAlExAlEx - 16.02.2011

pawn Код:
dcmd_report(playerid, params[])
{
    new pName[MAX_PLAYER_NAME], aName[MAX_PLAYER_NAME], str[128], reason, iD;
    if (sscanf(params, "dz", iD, reason)) return SendClientMessage(playerid, 0xAA3333AA, "Usage: /report [id] [reason]");
    if (iD == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xAA3333AA, "Invalid ID.");
    if (playerid == iD) return SendClientMessage(playerid, 0xAA3333AA, "You can't report yourself.");
    GetPlayerName(playerid, pName, sizeof(pName));
    GetPlayerName(iD, aName, sizeof(aName));
    for (new i = 0; i < MAX_PLAYERS; i++)
    {
        if (IsPlayerConnected(i))
        {
            new zName[MAX_PLAYER_NAME], pFile[256];
            GetPlayerName(i, zName, sizeof(zName));
            format(pFile, sizeof(pFile), "Users\%s.ini", zName);
            if (IsPlayerAdmin(i) || dini_Int(pFile, "AdminLevel") >= 1)
            {
                format(str, sizeof(str), "%s(%d) has reported %s(%d) for: %s", pName, playerid, aName, iD, reason);
                SendClientMessage(i, 0xFFFFFFFF, str);
            }
        }
    }
    return 1;
}
Not tested.


Re: Help me, IMPORTANT plz read - MBX97 - 16.02.2011

no strcmp , gimme strcmp plz


Re: Help me, IMPORTANT plz read - Zack9764 - 16.02.2011

It's simple. Just make a message that displays the ID and message they typed and have it send to admins only.


Re: Help me, IMPORTANT plz read - MBX97 - 16.02.2011

thats not my problem, my problem is that i wantit without sscanf and by strcmp, so please just do it