Two warning I cant get rid of...HELP - 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)
+--- Thread: Two warning I cant get rid of...HELP (
/showthread.php?tid=448391)
Two warning I cant get rid of...HELP -
TranquiliZed - 04.07.2013
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
Re: Two warning I cant get rid of...HELP -
IstuntmanI - 04.07.2013
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
Re: Two warning I cant get rid of...HELP -
TranquiliZed - 04.07.2013
Also, do you know how I can add a timer for the /report. For 20 seconds
Re: Two warning I cant get rid of...HELP -
IstuntmanI - 04.07.2013
There's no need for a timer:
https://sampwiki.blast.hk/wiki/GetTickCount
Re: Two warning I cant get rid of...HELP -
feartonyb - 04.07.2013
https://sampforum.blast.hk/showthread.php?tid=448401 I answered about report timer