SA-MP Forums Archive
Report command warning! - 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: Report command warning! (/showthread.php?tid=226077)



Report command warning! - Freght - 14.02.2011

Hi guys i have found a kind of report command that it begins so:

CMD:report(playerid, params[])
{

ECC...ECC... But when i compile appear this:

C:\Documents and Settings\casa\Documenti\Downloads\server files\R-Made In Italy\filterscripts\ReportS.pwn(55) : warning 203: symbol is never used: "report"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.

It needs a definition?
If yes, How do i make?
Please, somebody help me....


Re: Report command warning! - Stunt_Guy - 14.02.2011

Please Post The Whole CMD So We Can Know What's Wrong With It .... Ok ?


Re: Report command warning! - Freght - 14.02.2011

#include <a_samp>

public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Report System");
print("--------------------------------------\n");
return 1;
}

public OnFilterScriptExit()
{
print("\n--------------------------------------");
print(" Report System Unloaded");
print("--------------------------------------\n");
return 1;
}

CMD: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;
}


Re: Report command warning! - AlExAlExAlEx - 14.02.2011

Is it just me or he should of had:
pawn Код:
#include <zcmd>
#include <sscanf>



Re: Report command warning! - Freght - 14.02.2011

Done! miss #include <dini>, et voilа! I have done guys, ty so much!


Re: Report command warning! - Freght - 15.02.2011

ehm guys, with dini doesnt work, cuz it says "cannot read from file dini_int".
thats another include file?