Posts: 31
Threads: 7
Joined: Jul 2010
Reputation:
0
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....
Posts: 91
Threads: 7
Joined: Oct 2009
Reputation:
0
Please Post The Whole CMD So We Can Know What's Wrong With It .... Ok ?
Posts: 31
Threads: 7
Joined: Jul 2010
Reputation:
0
#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;
}
Posts: 31
Threads: 7
Joined: Jul 2010
Reputation:
0
Done! miss #include <dini>, et voilа! I have done guys, ty so much!
Posts: 31
Threads: 7
Joined: Jul 2010
Reputation:
0
ehm guys, with dini doesnt work, cuz it says "cannot read from file dini_int".
thats another include file?