04.06.2011, 12:41
im using tutorial on wiki and it says i shouldnt have a error but i do
C:\Users\Trottsworth\Desktop\Freeroam Server\filterscripts\Admin.pwn(44) : error 001: expected token: "}", but found "new"
and here is code from the includes to the OnFilterScriptExit() callback
C:\Users\Trottsworth\Desktop\Freeroam Server\filterscripts\Admin.pwn(44) : error 001: expected token: "}", but found "new"
and here is code from the includes to the OnFilterScriptExit() callback
PHP код:
#include <a_samp>
#include <dini>
#include <dutils>
#define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
#define COLOUR_GREEN 0x33AA33AA
#define COLOUR_RED 0xAA3333AA
#define COLOUR_YELLOW 0xFFFF00AA
#define COLOUR_LIGHTBLUE 0x33CCFFAA
#define COLOUR_ORANGE 0xFF9900AA
#define PlayerFile "AdminScript/Users/%s.ini"
#define SettingFile "AdminScript/Settings/MainSettings.ini"
#define CommandFile "AdminScript/Settings/Commands.ini"
#pragma unused ret_memcpy
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Administration Script By Trotty");
print("--------------------------------------\n");
return 1;
}
#endif
enum PLAYER_MAIN {
PLAYER_NAME[MAX_PLAYER_NAME],
PLAYER_IP[16],
PLAYER_REGGED,
PLAYER_PASS,
PLAYER_LOGGED,
PLAYER_LEVEL,
PLAYER_WIRED,
PLAYER_JAILED
new gPlayerInfo[MAX_PLAYERS][PLAYER_MAIN];
public OnFilterScriptExit()
{
return 1;
}