Pawn compiler stops working.
#1

Well, I'm slowly changing my Stunt Game-Mode into a TDM / Deathmatch gamemode.

I'm doing it by removing all the Stunt stuff etc.
But when i try to compile it, the Compiler stops working
--
Here's the current one(In which the Compiler stops working)

https://www.mediafire.com/?jaobzo6k2p1x314

And here's my backup(Stunt one)

https://www.mediafire.com/?k4z9kqes8a9q6g7

NOTE:Here is the whole gamemode(Includes, plugins ..)
https://www.mediafire.com/?4dy9fnopqok371a

--

I know that i could just copy-paste everything from the old one, but I've spent too much work on the stunt-gamemode, so i actually want just to remove the Stunt features ..

Well, i hope that you could help me D:
Reply
#2

It could be that you are missing a { or }, Use this tool and take a look
TOOL
Reply
#3

Well, The same happened for me. It keeps saying " Pawn Compiler ( Not Responding )
Solution : Get a new package of pawno and place it on some other directory. And copy paste the includes ONLY.
This should help you.
Reply
#4

you missing a { } find the part you edited check around it.
Reply
#5

Quote:
Originally Posted by Yves
Посмотреть сообщение
you missing a { } find the part you edited check around it.
Eh, I've removed some commands, and removed some stuff at the Dialogs.

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    switch(dialogid)
    {
        case DIALOG_REGISTER:
        {
            if (!response) Kick(playerid);
            else
            {
                if(!strlen(inputtext)) ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, "Registration","You have entered an invalid password.\nType your password below to register a new account.","Register","Quit");
                else
                {
                    new plrIP[16];
                    GetPlayerIp(playerid, plrIP, sizeof(plrIP));
                    new INI:File = INI_Open(UserPath(playerid));
                    INI_SetTag(File,"data");
                    INI_WriteInt(File,"Password",udb_hash(inputtext));
                    INI_WriteInt(File,"Cash",0);
                    INI_WriteInt(File,"Admin",0);
                    INI_WriteInt(File,"Kills",0);
                    INI_WriteInt(File,"Deaths",0);
                    INI_WriteInt(File,"Score",0);
                    INI_WriteInt(File,"Muted",0);
                    INI_WriteInt(File,"VIP",0);
                    INI_WriteInt(File,"Reward",0);
                    INI_WriteInt(File,"TempAdmin",0);
                    INI_WriteInt(File,"IP",GetPlayerIp(playerid, plrIP, sizeof(plrIP)));
                    INI_WriteInt(File,"LoggedIn",0);
                    INI_Close(File);

                    SpawnPlayer(playerid);
                }
            }
        }
        case DIALOG_LOGIN:
        {
            if ( !response ) Kick ( playerid );
            else
            {
                if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
                {
                   
                    INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
                    GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
                    SetPlayerScore(playerid, PlayerInfo[playerid][pScore]);
                    PlayerInfo[playerid][pLoggedIn] = 1;
                    ShowPlayerDialog(playerid, DIALOG_SUCCESS_1, DIALOG_STYLE_MSGBOX,"Success!","You have successfully logged in!","Ok","");
                }
                else ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,"Login","{FFFFFF}You have entered an {FF9933}incorrect {FFFFFF}password.\nType your password below to login.","Login","Quit");
            }
        }
        case DIALOG_RULES:
        {
            if( response )
            {
                new name[MAX_PLAYER_NAME];
                new string[128];
                GetPlayerName(playerid, name, sizeof(name));
                SendClientMessage(playerid, COLOR_GREEN, "[RULES] - Since you've read and hopefully understood the rules, admins will be able to take actions against you!");
                SendClientMessage(playerid, COLOR_GREEN, "[RULES] - If you will constantly breaking rules, you may end up getting banned!");
                SendClientMessage(playerid, COLOR_GREEN, "[RULES] - Now, if you have any questions, use /helpme or /pm an admin.");//checkpoint3
                format(string, sizeof(string), "[RULES] - %s has read the rules, you may award him, and/or make sure that he follows them", name);
                SendMessageToAdmins(string);
            }
        }
        case DIALOG_CREDITS:
        {
            if( response ) SendClientMessage(playerid, COLOR_GREEN,"[CREDITS] - In-case you have any questions/suggestions, you can add Kyance on skype - patriksfr");
        }
        case DIALOG_VEHICLES:
        {
            if( response )
            {
                switch(listitem)
                {
                    case 0: ShowModelSelectionMenu(playerid, bikelist , "Bikes");
                    case 1: ShowModelSelectionMenu(playerid, boatlist, "Boats");
                    case 2: ShowModelSelectionMenu(playerid, convertibleslist, "Converibles");
                    case 3: ShowModelSelectionMenu(playerid, helicopterlist, "Helicopters");
                    case 4: ShowModelSelectionMenu(playerid, industriallist, "Industrial Vehicles");
                    case 5: ShowModelSelectionMenu(playerid, lowriderlist, "Low-Riders");
                    case 6: ShowModelSelectionMenu(playerid, offroadlist, "Off-road Vehicles");
                    case 7: ShowModelSelectionMenu(playerid, planelist, "Planes");
                    case 8: ShowModelSelectionMenu(playerid, publicservicelist, "Public Services");
                    case 9: ShowModelSelectionMenu(playerid, saloonlist, "Saloons");
                    case 10: ShowModelSelectionMenu(playerid, stationwagonlist, "Station Wagons");
                    case 11: ShowModelSelectionMenu(playerid, sportvehiclelist, "Sport Vehicles");
                    case 12: ShowModelSelectionMenu(playerid, trailerlist, "Trailers");
                    case 13: ShowModelSelectionMenu(playerid, uniquevehiclelist, "Unique Vehicles");
                }
            }
        }
        case DIALOG_PANEL:
        {
            if ( !response ) ShowPlayerDialog(playerid, DIALOG_PANEL2, DIALOG_STYLE_LIST, "{FF0000} Kyance's {FFFFFF}admin panel (Page 2/2)", "{FFFFFF}Kick all players{FF9933} - {FF0000}(Kick)", "Select", "Prev. Page");
            else
            {
                switch(listitem)
                {
                    case 0:
                    {
                        new pName[MAX_PLAYER_NAME], string[94];
                        GetPlayerName(playerid, pName, sizeof(pName)); // retrieve the player name
                        format(string, sizeof(string), "[ADMIN-PANEL] - %s[%d] has restarted the server!", pName, playerid);
                        SendMessageToAdmins(string);
                        SendRconCommand("gmx");
                        printf("%s[%d] has restarted the server from the Admin-Panel!", pName, playerid);
                    }
                    case 1:
                    {
                        new pName[MAX_PLAYER_NAME], string[94];
                        GetPlayerName(playerid, pName, sizeof(pName)); // retrieve the player name
                        format(string, sizeof(string), "[ADMIN-PANEL] - %s[%d] has reloaded the bans!", pName, playerid);
                        SendMessageToAdmins(string);
                        SendRconCommand("reloadbans");
                        printf("%s[%d] has reloaded the bans!", pName, playerid);
                    }
                    case 2:
                    {
                        new pName[MAX_PLAYER_NAME], string[94];
                        GetPlayerName(playerid, pName, sizeof(pName)); // retrieve the player name
                        format(string, sizeof(string), "[ADMIN-PANEL] - %s[%d] has checked the (RCON)players list!", pName, playerid);
                        SendMessageToAdmins(string);
                        SendRconCommand("players");
                    }
                    case 3:
                    {
                        ShowPlayerDialog(playerid, DIALOG_RELOADFS, DIALOG_STYLE_INPUT, "{FF0000}Re-load {FFFFFF}filterscript", "{FFFFFF}Enter the {FF0000}filterscripts {FFFFFF}name", "Done", "Back");
                    }
                    case 4:
                    {
                        ShowPlayerDialog(playerid, DIALOG_UNLOADFS, DIALOG_STYLE_INPUT, "{FF0000}Un-load {FFFFFF}filterscript", "{FFFFFF}Enter the {FF0000}filterscripts {FFFFFF}name", "Done", "Back");
                    }
                    case 5:
                    {
                        ShowPlayerDialog(playerid, -1, DIALOG_STYLE_LIST, "Close", "Close", "", "Close");
                    }
                }
            }
        }
        case DIALOG_RELOADFS:
            {
                if ( !response ) ShowPlayerDialog(playerid, DIALOG_PANEL, DIALOG_STYLE_LIST, "{FF0000}Kyance's {FFFFFF}admin panel (Page 1/2)", "{FFFFFF}Restart Server {FF9933} - {FF0000}(GMX)\n{FFFFFF}Reload Bans {FF9933} - {FF0000}(reloadbans)\n{FFFFFF}Players List {FF9933} - {FF0000}(players)\n{FFFFFF}Re-load filterscript {FF9933} - {FF0000}(reloadfs)\n{FFFFFF}Un-load filterscript {FF9933} - {FF0000}(unloadfs)\n{FFFFFF} Close this dialog.", "Select", "Next Page");
                else
                {
                    new pName[MAX_PLAYER_NAME], string[94];
                    GetPlayerName(playerid, pName, sizeof(pName)); // retrieve the player name
                    new reloadfs[100];
                    format(reloadfs, sizeof(reloadfs), "reloadfs %s", inputtext);
                    SendRconCommand(reloadfs);
                    format(string, sizeof(string), "[ADMIN-PANEL] - %s[%d] has reloaded the filterscript - %s!", pName, playerid, inputtext);
                    SendMessageToAdmins(string);
                    format(string, sizeof(string), "~g~Filterscript ~b~%s ~w~has been ~r~re-loaded!", inputtext);
                    GameTextForPlayer(playerid, string, 4000, 5);
                    printf("%s[%d] has re-loaded the filterscript %s via the Admin-Panel!", pName, playerid, inputtext);
                }
            }
        case DIALOG_UNLOADFS:
        {
            if ( !response ) ShowPlayerDialog(playerid, DIALOG_PANEL, DIALOG_STYLE_LIST, "{FF0000}Kyance's {FFFFFF}admin panel (Page 1/2)", "{FFFFFF}Restart Server {FF9933} - {FF0000}(GMX)\n{FFFFFF}Reload Bans {FF9933} - {FF0000}(reloadbans)\n{FFFFFF}Players List {FF9933} - {FF0000}(players)\n{FFFFFF}Re-load filterscript {FF9933} - {FF0000}(reloadfs)\n{FFFFFF}Un-load filterscript {FF9933} - {FF0000}(unloadfs)\n{FFFFFF} Close this dialog.", "Select", "Next Page");
            else
                {
                    new pName[MAX_PLAYER_NAME], string[94];
                    GetPlayerName(playerid, pName, sizeof(pName)); // retrieve the player name
                    new unloadfs[100];
                    format(unloadfs, sizeof(unloadfs), "unloadfs %s", inputtext);
                    SendRconCommand(unloadfs);
                    format(string, sizeof(string), "[ADMIN-PANEL] - %s[%d] has un-loaded the filterscript - %s!", pName, playerid, inputtext);
                    SendMessageToAdmins(string);
                    format(string, sizeof(string), "~g~Filterscript ~b~%s ~w~has been ~r~un-loaded!", inputtext);
                    GameTextForPlayer(playerid, string, 4000, 5);
                    printf("%s[%d] has un-loaded the filterscript %s via the Admin-Panel!", pName, playerid, inputtext);
                }
            }
        case DIALOG_PANEL2:
        {
            if ( !response ) ShowPlayerDialog(playerid, DIALOG_PANEL, DIALOG_STYLE_LIST, "{FF0000}Kyance's {FFFFFF}admin panel (Page 1/2)", "{FFFFFF}Restart Server {FF9933} - {FF0000}(GMX)\n{FFFFFF}Reload Bans {FF9933} - {FF0000}(reloadbans)\n{FFFFFF}Players List {FF9933} - {FF0000}(players)\n{FFFFFF}Re-load filterscript {FF9933} - {FF0000}(reloadfs)\n{FFFFFF}Un-load filterscript {FF9933} - {FF0000}(unloadfs)\n{FFFFFF} Close this dialog.", "Select", "Next Page");
            else
            {
                new pName[MAX_PLAYER_NAME], string[104];
                GetPlayerName(playerid, pName, sizeof(pName)); // retrieve the player name
                format(string, sizeof(string), "[KICK-ALL] - %s[%d] has kicked everyone on the server!", pName, playerid);
                SendClientMessageToAll(COLOR_RED, string);
                format(string, sizeof(string), "[ADMIN-PANE] - %s[%d] has kicked everyone on the server(Admins have an exception)", pName, playerid);
                SendMessageToAdmins(string);
                for(new i = 0; i < MAX_PLAYERS; i ++)
                {
                    if(IsPlayerConnected(i))
                    {
                      if(PlayerInfo[i][pAdmin] == 0)
                        {
                            new name[MAX_PLAYER_NAME];
                            GetPlayerName(i, name, sizeof(name));
                            SetTimerEx("KickTimer", 1000, false, "i", i);
                            }
                        }
                    }
                }
            }
        case DIALOG_WEAPONS:
        {
            if( response )
            {
                switch(listitem)
                {
                    case 0:
                    {
                        ShowPlayerDialog(playerid, DIALOG_MEELE, DIALOG_STYLE_LIST, "{FF0000} [NFG] {FF9933}- Meele Weapons", "Brass Knuckle\nNight Stick\nKnife\nKatana\nFlowers", "Select", "Close");
                    }
                    case 1:
                    {
                        ShowPlayerDialog(playerid, DIALOG_PISTOLS, DIALOG_STYLE_LIST, "{FF0000} [NFG] {FF9933}- Pistols", "9mm (Colt)\nSilenced 9mm (Silenced colt)\nDesert Eagle (Deagle)", "Select", "Close");
                    }
                    case 2:
                    {
                        ShowPlayerDialog(playerid, DIALOG_SHOTGUNS, DIALOG_STYLE_LIST, "{FF0000} [NFG] {FF9933}- Shotguns", "Shotgun (Pump-Action)\nSawn-Off (Sawn off Shotgun)\nCombat Shotgun (Combat)", "Select", "Close");
                    }
                    case 3:
                    {
                        ShowPlayerDialog(playerid, DIALOG_SMG, DIALOG_STYLE_LIST, "{FF0000} [NFG] {FF9933}- Sub Machine Guns", "Uzi (Micro SMG)\nTec-9 (Micro SMG)\nMP5 (SMG)", "Select", "Close");
                    }
                    case 4:
                    {
                        ShowPlayerDialog(playerid, DIALOG_AUTORIFLE, DIALOG_STYLE_LIST, "{FF0000} [NFG] {FF9933}- Automatic Rifles", "M4 (M4A1)\nAK-47 (AK-47)", "Select", "Close");
                    }
                    case 5:
                    {
                        ShowPlayerDialog(playerid, DIALOG_SNIPERS, DIALOG_STYLE_LIST, "{FF0000} [NFG] {FF9933}- Snipers", "Sniper Rifle (Scout)\n Country Rifle (M336)", "Select", "Close");
                    }
                    case 6:
                    {
                        ShowPlayerDialog(playerid, DIALOG_EXPLOSIVES, DIALOG_STYLE_LIST, "{FF0000} [NFG] {FF9933}- Explosives/Fire-arms", "RPG (RPG-7)\nFlamethrower (Flame thrower)", "Select", "Okay");
                    }
                }
            }
        }
        case DIALOG_MEELE:
        {
            if( response )
            {
                switch(listitem)
                {
                    case 0:
                    {
                        GivePlayerWeapon(playerid, 1, 1);
                    }
                    case 1:
                    {
                        GivePlayerWeapon(playerid, 3, 1);
                    }
                    case 2:
                    {
                        GivePlayerWeapon(playerid, 4, 1);
                    }
                    case 3:
                    {
                        GivePlayerWeapon(playerid, 8, 1);
                    }
                    case 4:
                    {
                        GivePlayerWeapon(playerid, 14, 1);
                    }
                }
            }
        }
        case DIALOG_PISTOLS:
        {
            if( response )
            {
                switch(listitem)
                {
                    case 0:
                    {
                        GivePlayerWeapon(playerid, 22, 99999);
                    }
                    case 1:
                    {
                        GivePlayerWeapon(playerid, 23, 99999);
                    }
                    case 2:
                    {
                        GivePlayerWeapon(playerid, 24, 99999);
                    }
                }
            }
        }
        case DIALOG_SHOTGUNS:
        {
            if( response )
            {
                switch(listitem)
                {
                    case 0:
                    {
                        GivePlayerWeapon(playerid, 25, 99999);
                    }
                    case 1:
                    {
                        GivePlayerWeapon(playerid, 26, 99999);
                    }
                    case 2:
                    {
                        GivePlayerWeapon(playerid, 27, 99999);
                    }
                }
            }
        }
        case DIALOG_SMG:
        {
            if( response )
            {
                switch(listitem)
                {
                    case 0:
                    {
                        GivePlayerWeapon(playerid, 28, 99999);
                    }
                    case 1:
                    {
                        GivePlayerWeapon(playerid, 32, 99999);
                    }
                    case 2:
                    {
                        GivePlayerWeapon(playerid, 29, 99999);
                    }
                }
            }
        }
        case DIALOG_AUTORIFLE:
        {
            if( response )
            {
                switch(listitem)
                {
                    case 0:
                    {
                        GivePlayerWeapon(playerid, 31, 99999);
                    }
                    case 1:
                    {
                        GivePlayerWeapon(playerid, 30, 99999);
                    }
                }
            }
        }
        case DIALOG_SNIPERS:
        {
            if( response )
            {
                switch(listitem)
                {
                    case 0:
                    {
                        GivePlayerWeapon(playerid, 34, 99999);
                    }
                    case 1:
                    {
                        GivePlayerWeapon(playerid, 33, 99999);
                    }
                }
            }
        }
        case DIALOG_EXPLOSIVES:
        {
            if( response )
            {
                switch(listitem)
                {
                    case 0:
                    {
                        GivePlayerWeapon(playerid, 35, 99999);
                    }
                    case 1:
                    {
                        GivePlayerWeapon(playerid, 37, 99999);
                    }
                }
            }
        }
        case DIALOG_AVEHICLES:
        {
            if( response )
            {
                switch(listitem)
                {
                    case 0:
                    {
                        new Float:X, Float:Y, Float:Z;
                        GetPlayerPos(playerid, X,Y,Z);
                        new string[74];
                        new pname[MAX_PLAYER_NAME];
                        new av;
                        GetPlayerName(playerid,pname,sizeof(pname));
                        av = CreateVehicle(520, X,Y,Z, 90, random(128), random(128), 120);
                        format(string, sizeof(string), "[ADMIN] - %s[%d] has spawned a Hydra", pname, playerid);
                        SendMessageToAdmins(string);
                        PutPlayerInVehicle(playerid, av, 0);
                    }
                    case 1:
                    {
                        new Float:X, Float:Y, Float:Z;
                        GetPlayerPos(playerid, X,Y,Z);
                        new string[74];
                        new pname[MAX_PLAYER_NAME];
                        new av;
                        GetPlayerName(playerid,pname,sizeof(pname));
                        av = CreateVehicle(425, X,Y,Z, 90, random(128), random(128), 120);
                        format(string, sizeof(string), "[ADMIN] - %s[%d] has spawned a Hunter", pname, playerid);
                        SendMessageToAdmins(string);
                        PutPlayerInVehicle(playerid, av, 0);
                    }
                    case 2:
                    {
                        new Float:X, Float:Y, Float:Z;
                        GetPlayerPos(playerid, X,Y,Z);
                        new string[74];
                        new pname[MAX_PLAYER_NAME];
                        new av;
                        GetPlayerName(playerid,pname,sizeof(pname));
                        av = CreateVehicle(432, X,Y,Z, 90, random(128), random(128), 120);
                        format(string, sizeof(string), "[ADMIN] - %s[%d] has spawned a Tank", pname, playerid);
                        SendMessageToAdmins(string);
                        PutPlayerInVehicle(playerid, av, 0);
                    }
                    case 3:
                    {
                        new Float:X, Float:Y, Float:Z;
                        GetPlayerPos(playerid, X,Y,Z);
                        new string[74];
                        new pname[MAX_PLAYER_NAME];
                        new av;
                        GetPlayerName(playerid,pname,sizeof(pname));
                        av = CreateVehicle(430, X,Y,Z, 90, random(128), random(128), 120);
                        format(string, sizeof(string), "[ADMIN] - %s[%d] has spawned a Predator", pname, playerid);
                        SendMessageToAdmins(string);
                        PutPlayerInVehicle(playerid, av, 0);
                    }
                    case 4:
                    {
                        new Float:X, Float:Y, Float:Z;
                        GetPlayerPos(playerid, X,Y,Z);
                        new string[74];
                        new pname[MAX_PLAYER_NAME];
                        new av;
                        GetPlayerName(playerid,pname,sizeof(pname));
                        av = CreateVehicle(513, X,Y,Z, 90, random(128), random(128), 120);
                        format(string, sizeof(string), "[ADMIN] - %s[%d] has spawned a Stunt-Plane", pname, playerid);
                        SendMessageToAdmins(string);
                        PutPlayerInVehicle(playerid, av, 0);
                    }
                }
            }
        }
    }
    return 1;
}
;d




EDIT(IMPORTANT)
I pasted the script in "http://codegenerators.pl/"
The bracket count was even (658 on both sides)
But it said this:

Код:
    Error between line 744 and 763
    Error between line 763 and 1497
    Error between line 2688 and 2771
    Error between line 2771 and 3144
    Error between line 3158 and 3256
    Error between line 3256 and 3330
I checked the lines, but didn't see anything wrong ..
Reply
#6

Quote:
Originally Posted by Kyance
Посмотреть сообщение
Eh, I've removed some commands, and removed some stuff at the Dialogs.

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    switch(dialogid)
    {
        case DIALOG_REGISTER:
        {
            if (!response) Kick(playerid);
            else
            {
                if(!strlen(inputtext)) ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, "Registration","You have entered an invalid password.\nType your password below to register a new account.","Register","Quit");
                else
                {
                    new plrIP[16];
                    GetPlayerIp(playerid, plrIP, sizeof(plrIP));
                    new INI:File = INI_Open(UserPath(playerid));
                    INI_SetTag(File,"data");
                    INI_WriteInt(File,"Password",udb_hash(inputtext));
                    INI_WriteInt(File,"Cash",0);
                    INI_WriteInt(File,"Admin",0);
                    INI_WriteInt(File,"Kills",0);
                    INI_WriteInt(File,"Deaths",0);
                    INI_WriteInt(File,"Score",0);
                    INI_WriteInt(File,"Muted",0);
                    INI_WriteInt(File,"VIP",0);
                    INI_WriteInt(File,"Reward",0);
                    INI_WriteInt(File,"TempAdmin",0);
                    INI_WriteInt(File,"IP",GetPlayerIp(playerid, plrIP, sizeof(plrIP)));
                    INI_WriteInt(File,"LoggedIn",0);
                    INI_Close(File);

                    SpawnPlayer(playerid);
                }
            }
        }
        case DIALOG_LOGIN:
        {
            if ( !response ) Kick ( playerid );
            else
            {
                if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
                {
                   
                    INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
                    GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
                    SetPlayerScore(playerid, PlayerInfo[playerid][pScore]);
                    PlayerInfo[playerid][pLoggedIn] = 1;
                    ShowPlayerDialog(playerid, DIALOG_SUCCESS_1, DIALOG_STYLE_MSGBOX,"Success!","You have successfully logged in!","Ok","");
                }
                else ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,"Login","{FFFFFF}You have entered an {FF9933}incorrect {FFFFFF}password.\nType your password below to login.","Login","Quit");
            }
        }
        case DIALOG_RULES:
        {
            if( response )
            {
                new name[MAX_PLAYER_NAME];
                new string[128];
                GetPlayerName(playerid, name, sizeof(name));
                SendClientMessage(playerid, COLOR_GREEN, "[RULES] - Since you've read and hopefully understood the rules, admins will be able to take actions against you!");
                SendClientMessage(playerid, COLOR_GREEN, "[RULES] - If you will constantly breaking rules, you may end up getting banned!");
                SendClientMessage(playerid, COLOR_GREEN, "[RULES] - Now, if you have any questions, use /helpme or /pm an admin.");//checkpoint3
                format(string, sizeof(string), "[RULES] - %s has read the rules, you may award him, and/or make sure that he follows them", name);
                SendMessageToAdmins(string);
            }
        }
        case DIALOG_CREDITS:
        {
            if( response ) SendClientMessage(playerid, COLOR_GREEN,"[CREDITS] - In-case you have any questions/suggestions, you can add Kyance on skype - patriksfr");
        }
        case DIALOG_VEHICLES:
        {
            if( response )
            {
                switch(listitem)
                {
                    case 0: ShowModelSelectionMenu(playerid, bikelist , "Bikes");
                    case 1: ShowModelSelectionMenu(playerid, boatlist, "Boats");
                    case 2: ShowModelSelectionMenu(playerid, convertibleslist, "Converibles");
                    case 3: ShowModelSelectionMenu(playerid, helicopterlist, "Helicopters");
                    case 4: ShowModelSelectionMenu(playerid, industriallist, "Industrial Vehicles");
                    case 5: ShowModelSelectionMenu(playerid, lowriderlist, "Low-Riders");
                    case 6: ShowModelSelectionMenu(playerid, offroadlist, "Off-road Vehicles");
                    case 7: ShowModelSelectionMenu(playerid, planelist, "Planes");
                    case 8: ShowModelSelectionMenu(playerid, publicservicelist, "Public Services");
                    case 9: ShowModelSelectionMenu(playerid, saloonlist, "Saloons");
                    case 10: ShowModelSelectionMenu(playerid, stationwagonlist, "Station Wagons");
                    case 11: ShowModelSelectionMenu(playerid, sportvehiclelist, "Sport Vehicles");
                    case 12: ShowModelSelectionMenu(playerid, trailerlist, "Trailers");
                    case 13: ShowModelSelectionMenu(playerid, uniquevehiclelist, "Unique Vehicles");
                }
            }
        }
        case DIALOG_PANEL:
        {
            if ( !response ) ShowPlayerDialog(playerid, DIALOG_PANEL2, DIALOG_STYLE_LIST, "{FF0000} Kyance's {FFFFFF}admin panel (Page 2/2)", "{FFFFFF}Kick all players{FF9933} - {FF0000}(Kick)", "Select", "Prev. Page");
            else
            {
                switch(listitem)
                {
                    case 0:
                    {
                        new pName[MAX_PLAYER_NAME], string[94];
                        GetPlayerName(playerid, pName, sizeof(pName)); // retrieve the player name
                        format(string, sizeof(string), "[ADMIN-PANEL] - %s[%d] has restarted the server!", pName, playerid);
                        SendMessageToAdmins(string);
                        SendRconCommand("gmx");
                        printf("%s[%d] has restarted the server from the Admin-Panel!", pName, playerid);
                    }
                    case 1:
                    {
                        new pName[MAX_PLAYER_NAME], string[94];
                        GetPlayerName(playerid, pName, sizeof(pName)); // retrieve the player name
                        format(string, sizeof(string), "[ADMIN-PANEL] - %s[%d] has reloaded the bans!", pName, playerid);
                        SendMessageToAdmins(string);
                        SendRconCommand("reloadbans");
                        printf("%s[%d] has reloaded the bans!", pName, playerid);
                    }
                    case 2:
                    {
                        new pName[MAX_PLAYER_NAME], string[94];
                        GetPlayerName(playerid, pName, sizeof(pName)); // retrieve the player name
                        format(string, sizeof(string), "[ADMIN-PANEL] - %s[%d] has checked the (RCON)players list!", pName, playerid);
                        SendMessageToAdmins(string);
                        SendRconCommand("players");
                    }
                    case 3:
                    {
                        ShowPlayerDialog(playerid, DIALOG_RELOADFS, DIALOG_STYLE_INPUT, "{FF0000}Re-load {FFFFFF}filterscript", "{FFFFFF}Enter the {FF0000}filterscripts {FFFFFF}name", "Done", "Back");
                    }
                    case 4:
                    {
                        ShowPlayerDialog(playerid, DIALOG_UNLOADFS, DIALOG_STYLE_INPUT, "{FF0000}Un-load {FFFFFF}filterscript", "{FFFFFF}Enter the {FF0000}filterscripts {FFFFFF}name", "Done", "Back");
                    }
                    case 5:
                    {
                        ShowPlayerDialog(playerid, -1, DIALOG_STYLE_LIST, "Close", "Close", "", "Close");
                    }
                }
            }
        }
        case DIALOG_RELOADFS:
            {
                if ( !response ) ShowPlayerDialog(playerid, DIALOG_PANEL, DIALOG_STYLE_LIST, "{FF0000}Kyance's {FFFFFF}admin panel (Page 1/2)", "{FFFFFF}Restart Server {FF9933} - {FF0000}(GMX)\n{FFFFFF}Reload Bans {FF9933} - {FF0000}(reloadbans)\n{FFFFFF}Players List {FF9933} - {FF0000}(players)\n{FFFFFF}Re-load filterscript {FF9933} - {FF0000}(reloadfs)\n{FFFFFF}Un-load filterscript {FF9933} - {FF0000}(unloadfs)\n{FFFFFF} Close this dialog.", "Select", "Next Page");
                else
                {
                    new pName[MAX_PLAYER_NAME], string[94];
                    GetPlayerName(playerid, pName, sizeof(pName)); // retrieve the player name
                    new reloadfs[100];
                    format(reloadfs, sizeof(reloadfs), "reloadfs %s", inputtext);
                    SendRconCommand(reloadfs);
                    format(string, sizeof(string), "[ADMIN-PANEL] - %s[%d] has reloaded the filterscript - %s!", pName, playerid, inputtext);
                    SendMessageToAdmins(string);
                    format(string, sizeof(string), "~g~Filterscript ~b~%s ~w~has been ~r~re-loaded!", inputtext);
                    GameTextForPlayer(playerid, string, 4000, 5);
                    printf("%s[%d] has re-loaded the filterscript %s via the Admin-Panel!", pName, playerid, inputtext);
                }
            }
        case DIALOG_UNLOADFS:
        {
            if ( !response ) ShowPlayerDialog(playerid, DIALOG_PANEL, DIALOG_STYLE_LIST, "{FF0000}Kyance's {FFFFFF}admin panel (Page 1/2)", "{FFFFFF}Restart Server {FF9933} - {FF0000}(GMX)\n{FFFFFF}Reload Bans {FF9933} - {FF0000}(reloadbans)\n{FFFFFF}Players List {FF9933} - {FF0000}(players)\n{FFFFFF}Re-load filterscript {FF9933} - {FF0000}(reloadfs)\n{FFFFFF}Un-load filterscript {FF9933} - {FF0000}(unloadfs)\n{FFFFFF} Close this dialog.", "Select", "Next Page");
            else
                {
                    new pName[MAX_PLAYER_NAME], string[94];
                    GetPlayerName(playerid, pName, sizeof(pName)); // retrieve the player name
                    new unloadfs[100];
                    format(unloadfs, sizeof(unloadfs), "unloadfs %s", inputtext);
                    SendRconCommand(unloadfs);
                    format(string, sizeof(string), "[ADMIN-PANEL] - %s[%d] has un-loaded the filterscript - %s!", pName, playerid, inputtext);
                    SendMessageToAdmins(string);
                    format(string, sizeof(string), "~g~Filterscript ~b~%s ~w~has been ~r~un-loaded!", inputtext);
                    GameTextForPlayer(playerid, string, 4000, 5);
                    printf("%s[%d] has un-loaded the filterscript %s via the Admin-Panel!", pName, playerid, inputtext);
                }
            }
        case DIALOG_PANEL2:
        {
            if ( !response ) ShowPlayerDialog(playerid, DIALOG_PANEL, DIALOG_STYLE_LIST, "{FF0000}Kyance's {FFFFFF}admin panel (Page 1/2)", "{FFFFFF}Restart Server {FF9933} - {FF0000}(GMX)\n{FFFFFF}Reload Bans {FF9933} - {FF0000}(reloadbans)\n{FFFFFF}Players List {FF9933} - {FF0000}(players)\n{FFFFFF}Re-load filterscript {FF9933} - {FF0000}(reloadfs)\n{FFFFFF}Un-load filterscript {FF9933} - {FF0000}(unloadfs)\n{FFFFFF} Close this dialog.", "Select", "Next Page");
            else
            {
                new pName[MAX_PLAYER_NAME], string[104];
                GetPlayerName(playerid, pName, sizeof(pName)); // retrieve the player name
                format(string, sizeof(string), "[KICK-ALL] - %s[%d] has kicked everyone on the server!", pName, playerid);
                SendClientMessageToAll(COLOR_RED, string);
                format(string, sizeof(string), "[ADMIN-PANE] - %s[%d] has kicked everyone on the server(Admins have an exception)", pName, playerid);
                SendMessageToAdmins(string);
                for(new i = 0; i < MAX_PLAYERS; i ++)
                {
                    if(IsPlayerConnected(i))
                    {
                      if(PlayerInfo[i][pAdmin] == 0)
                        {
                            new name[MAX_PLAYER_NAME];
                            GetPlayerName(i, name, sizeof(name));
                            SetTimerEx("KickTimer", 1000, false, "i", i);
                            }
                        }
                    }
                }
            }
        case DIALOG_WEAPONS:
        {
            if( response )
            {
                switch(listitem)
                {
                    case 0:
                    {
                        ShowPlayerDialog(playerid, DIALOG_MEELE, DIALOG_STYLE_LIST, "{FF0000} [NFG] {FF9933}- Meele Weapons", "Brass Knuckle\nNight Stick\nKnife\nKatana\nFlowers", "Select", "Close");
                    }
                    case 1:
                    {
                        ShowPlayerDialog(playerid, DIALOG_PISTOLS, DIALOG_STYLE_LIST, "{FF0000} [NFG] {FF9933}- Pistols", "9mm (Colt)\nSilenced 9mm (Silenced colt)\nDesert Eagle (Deagle)", "Select", "Close");
                    }
                    case 2:
                    {
                        ShowPlayerDialog(playerid, DIALOG_SHOTGUNS, DIALOG_STYLE_LIST, "{FF0000} [NFG] {FF9933}- Shotguns", "Shotgun (Pump-Action)\nSawn-Off (Sawn off Shotgun)\nCombat Shotgun (Combat)", "Select", "Close");
                    }
                    case 3:
                    {
                        ShowPlayerDialog(playerid, DIALOG_SMG, DIALOG_STYLE_LIST, "{FF0000} [NFG] {FF9933}- Sub Machine Guns", "Uzi (Micro SMG)\nTec-9 (Micro SMG)\nMP5 (SMG)", "Select", "Close");
                    }
                    case 4:
                    {
                        ShowPlayerDialog(playerid, DIALOG_AUTORIFLE, DIALOG_STYLE_LIST, "{FF0000} [NFG] {FF9933}- Automatic Rifles", "M4 (M4A1)\nAK-47 (AK-47)", "Select", "Close");
                    }
                    case 5:
                    {
                        ShowPlayerDialog(playerid, DIALOG_SNIPERS, DIALOG_STYLE_LIST, "{FF0000} [NFG] {FF9933}- Snipers", "Sniper Rifle (Scout)\n Country Rifle (M336)", "Select", "Close");
                    }
                    case 6:
                    {
                        ShowPlayerDialog(playerid, DIALOG_EXPLOSIVES, DIALOG_STYLE_LIST, "{FF0000} [NFG] {FF9933}- Explosives/Fire-arms", "RPG (RPG-7)\nFlamethrower (Flame thrower)", "Select", "Okay");
                    }
                }
            }
        }
        case DIALOG_MEELE:
        {
            if( response )
            {
                switch(listitem)
                {
                    case 0:
                    {
                        GivePlayerWeapon(playerid, 1, 1);
                    }
                    case 1:
                    {
                        GivePlayerWeapon(playerid, 3, 1);
                    }
                    case 2:
                    {
                        GivePlayerWeapon(playerid, 4, 1);
                    }
                    case 3:
                    {
                        GivePlayerWeapon(playerid, 8, 1);
                    }
                    case 4:
                    {
                        GivePlayerWeapon(playerid, 14, 1);
                    }
                }
            }
        }
        case DIALOG_PISTOLS:
        {
            if( response )
            {
                switch(listitem)
                {
                    case 0:
                    {
                        GivePlayerWeapon(playerid, 22, 99999);
                    }
                    case 1:
                    {
                        GivePlayerWeapon(playerid, 23, 99999);
                    }
                    case 2:
                    {
                        GivePlayerWeapon(playerid, 24, 99999);
                    }
                }
            }
        }
        case DIALOG_SHOTGUNS:
        {
            if( response )
            {
                switch(listitem)
                {
                    case 0:
                    {
                        GivePlayerWeapon(playerid, 25, 99999);
                    }
                    case 1:
                    {
                        GivePlayerWeapon(playerid, 26, 99999);
                    }
                    case 2:
                    {
                        GivePlayerWeapon(playerid, 27, 99999);
                    }
                }
            }
        }
        case DIALOG_SMG:
        {
            if( response )
            {
                switch(listitem)
                {
                    case 0:
                    {
                        GivePlayerWeapon(playerid, 28, 99999);
                    }
                    case 1:
                    {
                        GivePlayerWeapon(playerid, 32, 99999);
                    }
                    case 2:
                    {
                        GivePlayerWeapon(playerid, 29, 99999);
                    }
                }
            }
        }
        case DIALOG_AUTORIFLE:
        {
            if( response )
            {
                switch(listitem)
                {
                    case 0:
                    {
                        GivePlayerWeapon(playerid, 31, 99999);
                    }
                    case 1:
                    {
                        GivePlayerWeapon(playerid, 30, 99999);
                    }
                }
            }
        }
        case DIALOG_SNIPERS:
        {
            if( response )
            {
                switch(listitem)
                {
                    case 0:
                    {
                        GivePlayerWeapon(playerid, 34, 99999);
                    }
                    case 1:
                    {
                        GivePlayerWeapon(playerid, 33, 99999);
                    }
                }
            }
        }
        case DIALOG_EXPLOSIVES:
        {
            if( response )
            {
                switch(listitem)
                {
                    case 0:
                    {
                        GivePlayerWeapon(playerid, 35, 99999);
                    }
                    case 1:
                    {
                        GivePlayerWeapon(playerid, 37, 99999);
                    }
                }
            }
        }
        case DIALOG_AVEHICLES:
        {
            if( response )
            {
                switch(listitem)
                {
                    case 0:
                    {
                        new Float:X, Float:Y, Float:Z;
                        GetPlayerPos(playerid, X,Y,Z);
                        new string[74];
                        new pname[MAX_PLAYER_NAME];
                        new av;
                        GetPlayerName(playerid,pname,sizeof(pname));
                        av = CreateVehicle(520, X,Y,Z, 90, random(128), random(128), 120);
                        format(string, sizeof(string), "[ADMIN] - %s[%d] has spawned a Hydra", pname, playerid);
                        SendMessageToAdmins(string);
                        PutPlayerInVehicle(playerid, av, 0);
                    }
                    case 1:
                    {
                        new Float:X, Float:Y, Float:Z;
                        GetPlayerPos(playerid, X,Y,Z);
                        new string[74];
                        new pname[MAX_PLAYER_NAME];
                        new av;
                        GetPlayerName(playerid,pname,sizeof(pname));
                        av = CreateVehicle(425, X,Y,Z, 90, random(128), random(128), 120);
                        format(string, sizeof(string), "[ADMIN] - %s[%d] has spawned a Hunter", pname, playerid);
                        SendMessageToAdmins(string);
                        PutPlayerInVehicle(playerid, av, 0);
                    }
                    case 2:
                    {
                        new Float:X, Float:Y, Float:Z;
                        GetPlayerPos(playerid, X,Y,Z);
                        new string[74];
                        new pname[MAX_PLAYER_NAME];
                        new av;
                        GetPlayerName(playerid,pname,sizeof(pname));
                        av = CreateVehicle(432, X,Y,Z, 90, random(128), random(128), 120);
                        format(string, sizeof(string), "[ADMIN] - %s[%d] has spawned a Tank", pname, playerid);
                        SendMessageToAdmins(string);
                        PutPlayerInVehicle(playerid, av, 0);
                    }
                    case 3:
                    {
                        new Float:X, Float:Y, Float:Z;
                        GetPlayerPos(playerid, X,Y,Z);
                        new string[74];
                        new pname[MAX_PLAYER_NAME];
                        new av;
                        GetPlayerName(playerid,pname,sizeof(pname));
                        av = CreateVehicle(430, X,Y,Z, 90, random(128), random(128), 120);
                        format(string, sizeof(string), "[ADMIN] - %s[%d] has spawned a Predator", pname, playerid);
                        SendMessageToAdmins(string);
                        PutPlayerInVehicle(playerid, av, 0);
                    }
                    case 4:
                    {
                        new Float:X, Float:Y, Float:Z;
                        GetPlayerPos(playerid, X,Y,Z);
                        new string[74];
                        new pname[MAX_PLAYER_NAME];
                        new av;
                        GetPlayerName(playerid,pname,sizeof(pname));
                        av = CreateVehicle(513, X,Y,Z, 90, random(128), random(128), 120);
                        format(string, sizeof(string), "[ADMIN] - %s[%d] has spawned a Stunt-Plane", pname, playerid);
                        SendMessageToAdmins(string);
                        PutPlayerInVehicle(playerid, av, 0);
                    }
                }
            }
        }
    }
    return 1;
}
;d




EDIT(IMPORTANT)
I pasted the script in "http://codegenerators.pl/"
The bracket count was even (658 on both sides)
But it said this:

Код:
    Error between line 744 and 763
    Error between line 763 and 1497
    Error between line 2688 and 2771
    Error between line 2771 and 3144
    Error between line 3158 and 3256
    Error between line 3256 and 3330
I checked the lines, but didn't see anything wrong ..
bump!
Reply
#7

Fixed!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)