26 errors please help
#1

Here are the errors

PHP Code:
C:\Users\Trottsworth\Desktop\maxadmin\filterscripts\MaxAdmin.pwn(136) : error 017undefined symbol "SaveToFile"
C:\Users\Trottsworth\Desktop\maxadmin\filterscripts\MaxAdmin.pwn(252) : error 017undefined symbol "dcmd_admins"
C:\Users\Trottsworth\Desktop\maxadmin\filterscripts\MaxAdmin.pwn(253) : error 017undefined symbol "dcmd_pm"
C:\Users\Trottsworth\Desktop\maxadmin\filterscripts\MaxAdmin.pwn(254) : error 017undefined symbol "dcmd_ask"
C:\Users\Trottsworth\Desktop\maxadmin\filterscripts\MaxAdmin.pwn(256) : error 017undefined symbol "dcmd_report"
C:\Users\Trottsworth\Desktop\maxadmin\filterscripts\MaxAdmin.pwn(257) : error 017undefined symbol "dcmd_mute"
C:\Users\Trottsworth\Desktop\maxadmin\filterscripts\MaxAdmin.pwn(258) : error 017undefined symbol "dcmd_unmute"
C:\Users\Trottsworth\Desktop\maxadmin\filterscripts\MaxAdmin.pwn(259) : error 017undefined symbol "dcmd_jail"
C:\Users\Trottsworth\Desktop\maxadmin\filterscripts\MaxAdmin.pwn(260) : error 017undefined symbol "dcmd_unjail"
C:\Users\Trottsworth\Desktop\maxadmin\filterscripts\MaxAdmin.pwn(261) : error 017undefined symbol "dcmd_kick"
C:\Users\Trottsworth\Desktop\maxadmin\filterscripts\MaxAdmin.pwn(262) : error 017undefined symbol "dcmd_ban"
C:\Users\Trottsworth\Desktop\maxadmin\filterscripts\MaxAdmin.pwn(263) : error 017undefined symbol "dcmd_asay"
C:\Users\Trottsworth\Desktop\maxadmin\filterscripts\MaxAdmin.pwn(264) : error 017undefined symbol "dcmd_goto"
C:\Users\Trottsworth\Desktop\maxadmin\filterscripts\MaxAdmin.pwn(265) : error 017undefined symbol "dcmd_setlevel"
C:\Users\Trottsworth\Desktop\maxadmin\filterscripts\MaxAdmin.pwn(266) : error 017undefined symbol "dcmd_freeze"
C:\Users\Trottsworth\Desktop\maxadmin\filterscripts\MaxAdmin.pwn(267) : error 017undefined symbol "dcmd_unfreeze"
C:\Users\Trottsworth\Desktop\maxadmin\filterscripts\MaxAdmin.pwn(268) : error 017undefined symbol "dcmd_setscore"
C:\Users\Trottsworth\Desktop\maxadmin\filterscripts\MaxAdmin.pwn(269) : error 017undefined symbol "dcmd_givecash"
C:\Users\Trottsworth\Desktop\maxadmin\filterscripts\MaxAdmin.pwn(270) : error 017undefined symbol "dcmd_giveweapon"
C:\Users\Trottsworth\Desktop\maxadmin\filterscripts\MaxAdmin.pwn(271) : error 017undefined symbol "dcmd_explode"
C:\Users\Trottsworth\Desktop\maxadmin\filterscripts\MaxAdmin.pwn(272) : error 017undefined symbol "dcmd_gethere"
C:\Users\Trottsworth\Desktop\maxadmin\filterscripts\MaxAdmin.pwn(273) : error 017undefined symbol "dcmd_setskin"
C:\Users\Trottsworth\Desktop\maxadmin\filterscripts\MaxAdmin.pwn(274) : error 017undefined symbol "dcmd_sethealth"
C:\Users\Trottsworth\Desktop\maxadmin\filterscripts\MaxAdmin.pwn(275) : error 017undefined symbol "dcmd_takeweaps"
C:\Users\Trottsworth\Desktop\maxadmin\filterscripts\MaxAdmin.pwn(276) : error 017undefined symbol "dcmd_veh"
C:\Users\Trottsworth\Desktop\maxadmin\filterscripts\MaxAdmin.pwn(277) : error 017undefined symbol "dcmd_spec"
Compilation aborted.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
26 Errors

Here is the script
pawn Code:
/*
|||||||||||||||||||||||||||||
|| Creator: [MKD]Max       ||
|| Data Realse: 21/10/2010 ||
|| Data Uptaded: 22/10/2010||
|| © All Right Reserved By ||
||         [MKD]Max        ||
|||||||||||||||||||||||||||||
*/

#include <a_samp>
#include <dini>
#include <maxadmin>
#include <dudb>

#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 COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_RED 0xFB0000FF
#define COLOR_BLUE 0x0000BBAA
#define COLOR_ERROR 0xD2691EAA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_DARKRED 0x660000AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_YELLOW 0xF1FE01FF
#define COLOR_PURPLE 0x9E18E7FF
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_BROWN 0xA52A2AAA
#define COLOR_PINK 0xFF66FFAA
#define red 0xE21F1FFF
#define yellow 0xFFFF00FF
#define blue 0x1229FAFF
#define orange 0xF97804FF
#define grey 0xCECECEFF
#define gold 0xB8860BAA

#define ADMIN_SPEC_TYPE_NONE    0
#define ADMIN_SPEC_TYPE_PLAYER  1
#define MAX_WARNINGS        3

#define mustlogin

#define SERVER_USER_FILE "maxadmin/users/%s.ini"

new Jailed[MAX_PLAYERS];
new Muted[MAX_PLAYERS];
new SendedMess[MAX_PLAYERS];
new logged[MAX_PLAYERS];
new registered[MAX_PLAYERS];
new IfSpecing[MAX_PLAYERS];

enum Player_daten
{
    Registered,
    LoggedIn,
    IsWatching,
    Spawned,
    Warnings,
    Locked,
    admin,
    Deaths,
    Kills,
}

enum SpecInfo
{
    IsWatching,
    LastInterior
}

new Player[MAX_PLAYERS][Player_daten];
//----
forward StatsTimer();
//----

#pragma unused strtok
#pragma unused ret_memcpy

public OnFilterScriptInit()
{
    new year, month, day; getdate(year, month, day);
    new hour, minute, second; gettime(hour, minute, second);
    if(fexist("maxadmin/users/"))
    {
        printf("==================================================");
        printf("|        Loaded on: %d/%d/%d at %d:%d:%d         |", year, month, day, hour, minute, second);
        printf("==================================================");
        printf("| MaxAdmin [V 3.5] by [MKD]Max has been loaded.  |");
        printf("==================================================");
    }

    if(!fexist("maxadmin/users/"))
    {
        printf("==================================================");
        printf("|   Attempting to load on: %d/%d/%d at %d:%d:%d  |", year, month, day, hour, minute, second);
        printf("* Folder 'users' not found in scriptfiles.");
        printf("* Unload the filterscript and create the folder 'users' in scriptfiles.");
        printf("==================================================");
    }

    if(!fexist("maxadmin/logs/"))
    {
        printf("==================================================");
        printf("|   Attempting to load on: %d/%d/%d at %d:%d:%d  |", year, month, day, hour, minute, second);
        printf("* Folder 'logs' not found in scriptfiles.");
        printf("* Unload the filterscript and create the folder 'logs' in scriptfiles.");
        printf("==================================================");
        return 1;
    }
    return 1;
}
//------------------------------------------------------------------------------
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
    return 1;
}
public OnPlayerConnect(playerid)
{
    new pname[MAX_PLAYER_NAME];
    new pID;
    new string[180];
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "%s(%d) Has Join Macedonian Roleplay Server.",pname,pID);
    SendClientMessageToAll(COLOR_GREY, string);

    new playerfile[100];
    GetPlayerName(playerid, pname, sizeof(pname));
    format(playerfile, sizeof(playerfile), "maxadmin/users/%s.ini",pname);
    if(dini_Int(playerfile, "Banned") == 1)
    {
    new string1[126];
    format(string1, sizeof(string1), "**(AUTO BAN)** %s(%d) Playername - Ban Eavde",pname,playerid);
    SendClientMessageToAll(COLOR_RED, string1);
    SaveToFile("BanEvade",string);  Kick(playerid);
    }
    return 1;
}
public OnPlayerRequestSpawn(playerid)
{
    #if defined mustlogin
    if(logged[playerid] == 0)
    {
    new playerfile[100], pname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pname, sizeof(pname));
    format(playerfile, sizeof(playerfile), "/maxadmin/users/%s.ini",pname);
    #if defined autologin
    if(dini_Exists(playerfile))
    {
        new playerid;
        level[playerid]= dini_Int(playerfile, "level");
        logged[playerid] = 0;
        GivePlayerMoney(playerid, dini_Int(playerfile, "Cash"));
        SetPlayerScore(playerid, dini_Int(playerfile, "Score"));
        SpawnPlayer(playerid);
        return 1;
    }
    }
    #endif
    if(dini_Exists(playerfile)) SendClientMessage(playerid, COLOR_GREEN, "This playername is registered! Please type /login to login or change your name");
    else SendClientMessage(playerid, COLOR_ORANGE, "This playername is not registered! Please type /register to create account");
    return 0;
    }
    #endif
    return 1;
}

//Account Commands
dcmd_login(playerid, params[])
{
    #pragma unused params
    if(logged[playerid] == 1) return SendClientMessage(playerid, red, "You are already logged in.");
    ShowPlayerDialog(playerid,200,DIALOG_STYLE_INPUT,"Login","Please enter a password to login to this account!","Login","Quit");
    return 1;
}

dcmd_register(playerid, params[])
{
    #pragma unused params
    ShowPlayerDialog(playerid,201,DIALOG_STYLE_INPUT,"Registration","Please enter a password to register this account!","Register","Quit");
    return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 201)
    {
        if(!strlen(inputtext)) return ShowPlayerDialog(playerid,201,DIALOG_STYLE_INPUT,"Registration","ERROR: You did not enter a password.\nPlease enter a password to register this account!","Register","Quit");
        if(strlen(inputtext) < 4) return SendClientMessage(playerid,red,"ACCOUNT: Password must be than 4 characters");
        if(response==0) Kick(playerid);
        new playerfile[128], pname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, pname, sizeof(pname));
        format(playerfile, sizeof(playerfile), "/maxadmin/users/%s.ini",pname);
        if(dini_Exists(playerfile)) return SendClientMessage(playerid, COLOR_YELLOW, "You are already registered!");
        new playerip[20];
        GetPlayerIp(playerid, playerip, sizeof(playerip));
        dini_Create(playerfile);
        dini_IntSet(playerfile, "Password", udb_hash(inputtext));
        dini_Set(playerfile, "Ip", playerip);
        dini_IntSet(playerfile, "Level", 0);
        dini_IntSet(playerfile, "Cash", 0);
        dini_IntSet(playerfile, "Score", 0);
        logged[playerid] = 0;
        SendClientMessage(playerid, COLOR_GREEN, "You have created your account! Please type /login to login.");
    }
    if(dialogid == 200)
    {
        if(!strlen(inputtext)) return ShowPlayerDialog(playerid,200,DIALOG_STYLE_INPUT,"Login","ERROR: You did not enter a password.\nPlease enter a password to login to this account!","Login","Quit");
        if(response==0) Kick(playerid);
        new playerfile[100], pname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, pname, sizeof(pname));
        format(playerfile, sizeof(playerfile), "/maxadmin/users/%s.ini",pname);
        if(!dini_Exists(playerfile)) return SendClientMessage(playerid, COLOR_ORANGE, "This playername not registered! please type /register to create account.");
        new tmp[256];
        tmp = dini_Get(playerfile, "Password");
        if(udb_hash(inputtext) == strval(tmp))
        {
        new playerip[20];
        GetPlayerIp(playerid, playerip, sizeof(playerip));
        logged[playerid] = 1;
        Player[playerid][admin] = dini_Int(playerfile, "level");
        dini_Set(playerfile, "Ip", playerip);
        GivePlayerMoney(playerid, dini_Int(playerfile, "Cash"));
        SetPlayerScore(playerid, dini_Int(playerfile, "Score"));
        logged[playerid] = 1;
        SendClientMessage(playerid, yellow, "You have logged in!");
        registered[playerid] = 1;
        SendClientMessage(playerid, COLOR_GREEN, "You are already registered!");
        } else return ShowPlayerDialog(playerid,200,DIALOG_STYLE_INPUT,"Login","ERROR: Invalid Password.\nPlease enter a password to login to this account!","Login","Quit");
    }
    return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
    new PlayerName[24], string[256];
    GetPlayerName(playerid, PlayerName, sizeof(PlayerName));

    switch (reason)
    {
      case 0: { format(string, 256, "* %s(%d) has left Macedonian Roleplay server (Timeout)", PlayerName, playerid);     SendClientMessageToAll(COLOR_GREY, string);    }
      case 1: { format(string, 256, "* %s(%d) has left Macedonian Roleplay server (Leaving)", PlayerName, playerid);     SendClientMessageToAll(COLOR_GREY, string);    }
      case 2: { format(string, 256, "* %s(%d) has left Macedonian Roleplay server (Kicked/Banned)", PlayerName, playerid);      SendClientMessageToAll(COLOR_GREY, string);    }
    }
    return 1;
}
//-------------------DCMD`s Begin---------------------------------------------------------
public OnPlayerCommandText(playerid, cmdtext[])
{
    dcmd(register, 8,cmdtext);
    dcmd(login, 5,cmdtext);
    dcmd(admins, 6,cmdtext);
    dcmd(pm, 2,cmdtext);
    dcmd(ask, 3,cmdtext);
    dcmd(help, 4,cmdtext);
    dcmd(report, 6,cmdtext);
    dcmd(mute, 4,cmdtext);
    dcmd(unmute, 6,cmdtext);
    dcmd(jail, 4,cmdtext);
    dcmd(unjail, 6,cmdtext);
    dcmd(kick, 4,cmdtext);
    dcmd(ban, 3,cmdtext);
    dcmd(asay, 4,cmdtext);
    dcmd(goto, 4,cmdtext);
    dcmd(setlevel, 8,cmdtext);
    dcmd(freeze, 6,cmdtext);
    dcmd(unfreeze, 8,cmdtext);
    dcmd(setscore, 8,cmdtext);
    dcmd(givecash, 8,cmdtext);
    dcmd(giveweapon, 10,cmdtext);
    dcmd(explode, 7,cmdtext);
    dcmd(gethere, 7,cmdtext);
    dcmd(setskin, 7,cmdtext);
    dcmd(sethealth, 9,cmdtext);
    dcmd(takeweaps, 9,cmdtext);
    dcmd(veh, 3,cmdtext);
    dcmd(spec, 4,cmdtext);
    dcmd(specoff, 7,cmdtext);
    dcmd(akill, 5,cmdtext);
    dcmd(warn, 4,cmdtext);
    dcmd(unban, 5,cmdtext);
    dcmd(ann, 3, cmdtext);
    dcmd(ann2, 4,cmdtext);
//------------------------------------------------------------------------------

    if(strcmp("/commands",cmdtext,true,10)==0){
    SendClientMessage(playerid,COLOR_RED,"/register /login /stats /pm /admins /report /ask, /animlist");
    SendClientMessage(playerid,COLOR_RED,"Dont Forget To Join Our Website And Register Its ----> MKD-RP.TK <----");
    return 1;
    }

    if (strcmp("/clear", cmdtext, true, 10) == 0)
    {
    if(Player[playerid][admin] < 1)
    {
    SendClientMessage(playerid, COLOR_RED,"You Dont Have Right To Use This Command");
    }
    for(new i=0;i<100;i++){
    SendClientMessageToAll(COLOR_RED," ");
    }
    new name[MAX_PLAYER_NAME],string[128];
    GetPlayerName(playerid,name,sizeof(name));
    format(string,sizeof(string),"**(ADMIN CLEARCHAT)**");
    SendClientMessageToAll(COLOR_RED,string);
    return 1;
    }


    if (strcmp("/acmds", cmdtext, true, 10) == 0)
    {
    if(Player[playerid][admin] == 0)
    {
    SendClientMessage(playerid, COLOR_RED,"You Dont Have Right To Use This Command");
    }
    if(Player[playerid][admin] >= 1)
    {
    SendClientMessage(playerid, COLOR_WHITE,"----------------|| Trial Moderator Commands ||------------------");
    SendClientMessage(playerid, COLOR_WHITE,"/asay, /akill /warn /mute, /unmute, /freeze, /unfreeze");
    }
    if(Player[playerid][admin] >= 2)
    {
    SendClientMessage(playerid, COLOR_GREEN,"---------------|| Moderator Commands ||------------------");
    SendClientMessage(playerid, COLOR_GREEN,"/ann 1/2, /giveweapon, /spec (off),/goto, /get");
    SendClientMessage(playerid, COLOR_GREEN,"Rember You Can Use Levels 1 & 2 Commands");
    }
    if(Player[playerid][admin] >= 3)
    {
    SendClientMessage(playerid, COLOR_YELLOW,"---------------|| Administrator Commands ||------------------");
    SendClientMessage(playerid, COLOR_YELLOW,"/ban, /setskin, /sethealth, /kick, /veh, /jail, /unjail");
    SendClientMessage(playerid, COLOR_YELLOW,"Rember You Can Use Level 1 & 2 & 3 Commands");
    }
    if(Player[playerid][admin] >= 4)
    {
    SendClientMessage(playerid, COLOR_BLUE,"---------------|| Head Administrator Commands ||------------------");
    SendClientMessage(playerid, COLOR_BLUE,"/setscore, /givecash, /explode, /clear");
    SendClientMessage(playerid, COLOR_BLUE,"Rember That You Can Use Level 1 & 2 & 3 & 4 Commands");
    }
    if(Player[playerid][admin] >= 5)
    {
    SendClientMessage(playerid, COLOR_RED,"---------------|| Server Owner Commands ||------------------");
    SendClientMessage(playerid, COLOR_RED,"/gmx, /setlevel, /unban");
    SendClientMessage(playerid, COLOR_RED,"Rember That You Can Use All Levels Commands");
    }
    return 1;
    }
    if (strcmp("/stats", cmdtext, true, 10) == 0)
    {
    new name[MAX_PLAYER_NAME], string[256], string2[256],string3[256];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "| Stats of[%s] |", name);
    format(string2, sizeof(string2), "[Kills: %d] [Deaths: %d]",Player[playerid][Kills], Player[playerid][Deaths],Float:Player[playerid][Kills]/Float:Player[playerid][Deaths]);
    format(string3, sizeof(string3), "[Cash: %d] [Score: %d] [Adminlevel: %d]",GetPlayerMoney(playerid),GetPlayerScore(playerid),Player[playerid][admin]);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    SendClientMessage(playerid, COLOR_WHITE, string2);
    SendClientMessage(playerid, COLOR_WHITE, string3);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "|__________________________________________|");
    return 1;
    }
    if (strcmp("/gmx",cmdtext,true,10) == 0)
    {
    if(Player[playerid][admin] < 5){
        return SendClientMessage(playerid,COLOR_RED,"You Dont Have Right To Use This Command");
    }
    new
        name[MAX_PLAYER_NAME],
        string[128];
    logged[playerid] = 0;
    GetPlayerName(playerid,name,sizeof(name));
    format(string,sizeof(string),"**(SERVER RESTART)**");
    SendClientMessageToAll(COLOR_RED,string);
    SendRconCommand("gmx");
    return 1;
    }
    return 0;
}
dcmd_ann(playerid, params[])
{
        new text;
        if(Player[playerid][admin] < 2)
            return SendClientMessage(playerid, COLOR_RED,"You Dont Have Right To Use This Command");
        if (sscanf( params,"s",text))
            return SendClientMessage( playerid, COLOR_RED, "|| USAGE: /ann [text] ||");

        GameTextForAll(params, 4000, 5);
        return 1;
}
dcmd_ann2(playerid, params[])
{
        new text;
        if(Player[playerid][admin] < 2)
            return SendClientMessage(playerid, COLOR_RED,"You Dont Have Right To Use This Command");
        if (sscanf( params,"s",text) )
            return SendClientMessage( playerid, COLOR_RED, "|| USAGE: /ann2 [text] ||");

        GameTextForAll(params, 4000, 6);
        return 1;
}
dcmd_help(playerid,params[])
{
    #pragma unused params
    new string[256], string2[256], string3[256], string4[256], string5[256];
    format(string,sizeof(string), "**Hello And Welcome To Our Server Please Read /Rules**");
    format(string2,sizeof(string2), "**If You Folow The Rules Maby You Get Admin**");
    format(string3,sizeof(string3), "**If You Want AnyHelp You Can Use /ask To Ask Any Online Admin**");
    format(string3,sizeof(string4), "**Use /commands if you need some help!~~**");
    format(string4,sizeof(string5), "**Enjoy In Server And Dont Forget To Register In Forum >> MKD-RP.TK <<**");
    SendClientMessage(playerid,COLOR_GREEN,string);
    SendClientMessage(playerid,COLOR_GREEN,string2);
    SendClientMessage(playerid,COLOR_GREEN,string3);
    SendClientMessage(playerid,COLOR_GREEN,string4);
    SendClientMessage(playerid,COLOR_GREEN,string5);
    return 1;
}
dcmd_unban(playerid, params[])
{
    new pName[24], pFile[50], str[256], playerIP[256];
    if(Player[playerid][admin] < 5)
    {
        SendClientMessage(playerid, COLOR_RED, "You Dont Have Right To Use This Command");
        return 1;
    }
    GetPlayerName(playerid, pName, sizeof(pName));
    format(pFile, sizeof(pFile), "maxadmin/users/%s.ini", params);
    playerIP = dini_Get(pFile, "PlayerIP");
    if(!strlen(params))
    {
        SendClientMessage(playerid, red, "|| Usage: /unban [playername] ||");
        return 1;
    }
    if(!dini_Exists(pFile))
    {
        SendClientMessage(playerid, red, "This player is not in our files");
        return 1;
    }
    format(str, sizeof str, "unbanip %s", playerIP);
    Player[playerid][Locked] = 0;

    format(str, sizeof str, "Admin unbanned %s %s", pName, playerIP);
    SaveToFile("Unbans",str);
    return 1;
}
Reply


Messages In This Thread
26 errors please help - by Kidemo - 06.12.2010, 06:42
Re: 26 errors please help - by Kidemo - 06.12.2010, 07:00
Re: 26 errors please help - by [UG]Scripter - 06.12.2010, 07:11
Re: 26 errors please help - by Kidemo - 06.12.2010, 15:29
Re: 26 errors please help - by Jochemd - 06.12.2010, 15:55
Re: 26 errors please help - by Kidemo - 06.12.2010, 16:15
Re: 26 errors please help - by SkizzoTrick - 06.12.2010, 16:26
Re: 26 errors please help - by Jochemd - 06.12.2010, 16:32
Re: 26 errors please help - by Ash. - 06.12.2010, 16:45
Re: 26 errors please help - by Kidemo - 06.12.2010, 16:47

Forum Jump:


Users browsing this thread: 2 Guest(s)