Two warning I cant get rid of...HELP
#1

pawn Код:
CMD:clearallreports(playerid, params[])
{
    if (PlayerInfo[playerid][pAdmin] >= 5)
    {
        new string[128];
        ClearReports();
        SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have cleared all the active reports.");
        format(string, sizeof(string), "AdmCmd: %s has cleared all the pending reports.", GetPlayerName(playerid)); // 2805
        ABroadCast(COLOR_LIGHTRED, string, 1);
    }
    else
    {
        SendClientMessage(playerid, COLOR_WHITE, "You are not authorized to use this command!");
    }
    return 1;
}
Код:
hrp.pwn(2805) : warning 202: number of arguments does not match definition
hrp.pwn(2805) : warning 202: number of arguments does not match definition
Reply
#2

pawn Код:
CMD:clearallreports(playerid, params[])
{
    if (PlayerInfo[playerid][pAdmin] >= 5)
    {
        new string[128], lsName[MAX_PLAYER_NAME];
        ClearReports();
        SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have cleared all the active reports.");
        GetPlayerName(playerid, lsName, MAX_PLAYER_NAME);
        format(string, sizeof(string), "AdmCmd: %s has cleared all the pending reports.", lsName);
        ABroadCast(COLOR_LIGHTRED, string, 1);
    }
    else
    {
        SendClientMessage(playerid, COLOR_WHITE, "You are not authorized to use this command!");
    }
    return 1;
}
https://sampwiki.blast.hk/wiki/GetPlayerName
Reply
#3

Also, do you know how I can add a timer for the /report. For 20 seconds
Reply
#4

There's no need for a timer: https://sampwiki.blast.hk/wiki/GetTickCount
Reply
#5

https://sampforum.blast.hk/showthread.php?tid=448401 I answered about report timer
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)