Public feed #726918

Something

public php v1 · immutable
Raw Edit
·published 2007-10-05 16:30 UTC
rendered paste body
#include <a_samp>#define cmd#define playernamepublic OnFilterScriptInit() {	print("\n----------------------------------");	print("Filterscript Blah sucessfully loaded");	print("----------------------------------\n");}public OnFilterScriptExit() {	print("\n----------------------------------");	print("Filterscript Blah sucessfully un-loaded");	print("----------------------------------\n");}public OnPlayerCommandText(playerid, cmdtext[]) {if (strcmp(cmd, "/report") == 0);{if (strlen(cmdtext) > 8){    GetPlayerName(playerid, playername, sizeof(playername));    format(string, sizeof(string), "Report from %s(%d): %s", playername, playerid, cmdtext[8]);    SendMessageToAdmins(string);format(string, sizeof(string), "Report sent to currently online admins.");SendMessage(playerid, string);}else {        format(string, sizeof(string), "Usage: /report <ID> <Reason>");        SendMessage(playerid, string);}    return 1;}SendMessageToAdmins(const str[]){for (new i = 0; i < MAX_PLAYERS; i++){    if (IsPlayerConnected(i)) {        if (IsPlayerAdmin(i)) {            SendClientMessage(i, 0xFF9900AA, str);        }    }}}SendMessage(playerid, const str[]){SendClientMessage(playerid, 0xFF9900AA, str);}ERRORS---------D:\Documents and Settings\Private\Desktop\report.pwn(28) : error 029: invalid expression, assumed zeroD:\Documents and Settings\Private\Desktop\report.pwn(28) : warning 215: expression has no effectD:\Documents and Settings\Private\Desktop\report.pwn(28) : error 001: expected token: ";", but found ")"D:\Documents and Settings\Private\Desktop\report.pwn(28) : error 029: invalid expression, assumed zeroD:\Documents and Settings\Private\Desktop\report.pwn(28) : fatal error 107: too many error messages on one lineCompilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase4 Errors.