22.09.2015, 10:45
i need help in /admins cmd i need this cmd show online admin's
PHP код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
#include <PointToPoint>
#include <streamer>
#include <dutils>
#include <Dini>
#include <clothes>
#include <zones>
#include <utils>
#include <vehicles>
#include <diners>
#define COLOR_WHITE 0xFFFFFFFF
#define COLOR_YELLOW 0xFFFF00FF
#define COLOR_RED 0xFF0000FF
#define COLOR_LRED 0xFF4747FF
#define COLOR_GREEN 0x00FF00FF
#define COLOR_BLUE 0x0000FFFF
#define COLOR_LBLUE 0x99FFFFFF
#define COLOR_ORANGE 0xFF9900FF
#define COLOR_PURPLE 0xCC00DDFF
#define COLOR_PEACH 0xFFCC66FF
#define COLOR_SILVER 0xDDDDDDFF
#define COLOR_WANTEDBLUE 0x0055CCFF
#define COLOR_DARK_VIOLET 0x9400D3FF
#define COLOR_SUPPORT 0x00E5EEFF
#define COLOR_ADMIN 0x0066FFFF
#define COLOR_PLAYER 0xFFFF33FF
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Admin command");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" Admins command");
print("----------------------------------\n");
}
#endif
if (strcmp(string, "/admins", true) == 0)
{
if (playedtime[playerid][0] < 10)
return SendClientMessage2(playerid, COLOR_SILVER, "Your playing time must be more than 10 hours to check the admin list.");
SendClientMessage(playerid, COLOR_GREEN "Server Owner -.");
SendClientMessage(playerid, COLOR_RED "Head Administrators -.");
SendClientMessage(playerid, COLOR_ADMIN "Lead Administrators -.");
SendClientMessage(playerid, COLOR_LBLUE "Senior Administrator -.");
SendClientMessage(playerid, COLOR_ORANGE "Administrator -.");
return 1;
}
PHP код:
E:\Download (1)\samp03z_svr_R1_win32 (4)\pawno\admin2.pwn(59) : error 010: invalid function or declaration
E:\Download (1)\samp03z_svr_R1_win32 (4)\pawno\admin2.pwn(61) : error 010: invalid function or declaration
E:\Download (1)\samp03z_svr_R1_win32 (4)\pawno\admin2.pwn(62) : error 010: invalid function or declaration
E:\Download (1)\samp03z_svr_R1_win32 (4)\pawno\admin2.pwn(68) : error 010: invalid function or declaration
E:\Download (1)\samp03z_svr_R1_win32 (4)\pawno\admin2.pwn(70) : warning 203: symbol is never used: "bandanas"
E:\Download (1)\samp03z_svr_R1_win32 (4)\pawno\admin2.pwn(70) : warning 203: symbol is never used: "bandanatext"
E:\Download (1)\samp03z_svr_R1_win32 (4)\pawno\admin2.pwn(70) : warning 203: symbol is never used: "caps"
E:\Download (1)\samp03z_svr_R1_win32 (4)\pawno\admin2.pwn(70) : warning 203: symbol is never used: "captext"
E:\Download (1)\samp03z_svr_R1_win32 (4)\pawno\admin2.pwn(70) : warning 203: symbol is never used: "glasses"
E:\Download (1)\samp03z_svr_R1_win32 (4)\pawno\admin2.pwn(70) : warning 203: symbol is never used: "glassestext"
E:\Download (1)\samp03z_svr_R1_win32 (4)\pawno\admin2.pwn(70) : warning 203: symbol is never used: "hats"
E:\Download (1)\samp03z_svr_R1_win32 (4)\pawno\admin2.pwn(70) : warning 203: symbol is never used: "hattext"
E:\Download (1)\samp03z_svr_R1_win32 (4)\pawno\admin2.pwn(70) : warning 203: symbol is never used: "helmets"
E:\Download (1)\samp03z_svr_R1_win32 (4)\pawno\admin2.pwn(70) : warning 203: symbol is never used: "helmettext"
E:\Download (1)\samp03z_svr_R1_win32 (4)\pawno\admin2.pwn(70) : warning 203: symbol is never used: "masks"
E:\Download (1)\samp03z_svr_R1_win32 (4)\pawno\admin2.pwn(70) : warning 203: symbol is never used: "masktext"
E:\Download (1)\samp03z_svr_R1_win32 (4)\pawno\admin2.pwn(70) : warning 203: symbol is never used: "watches"
E:\Download (1)\samp03z_svr_R1_win32 (4)\pawno\admin2.pwn(70) : warning 203: symbol is never used: "watchtext"
E:\Download (1)\samp03z_svr_R1_win32 (4)\pawno\admin2.pwn(70) : warning 203: symbol is never used: "zonenames"
E:\Download (1)\samp03z_svr_R1_win32 (4)\pawno\admin2.pwn(70) : warning 203: symbol is never used: "zonetype"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.