[Tutorial] Making A Class System(Very Simple+Easy+Dialogs+Texts)
#26

Quote:
Originally Posted by Coder_
View Post
I have one error
******.pwn(429) : warning 217: loose indentation
pawn Code:
if(dialogid == 999)
            {
                if(response)
                    {
                if(listitem == 0)
                    {
                    if(GetPlayerScore(playerid) >= 0)
                        {
                        SendClientMessage(playerid, COLOR_WHITE, "You chose the Zombie as your class.");
                        ShowPlayerDialog(playerid, 11, DIALOG_STYLE_MSGBOX, "{6EF83C}Zombie Class:", "{F81414}Abilities:\n{FFFFFF}A Solo class, good in infantry attacks.\n\n{F81414}Weapons:\n\n{FFFFFF}Knife\n{FFFFFF}Chainsaw", "Play","");
                        gPlayerClass[playerid] = Zombie;
                        PickedClass[playerid] = 1;
                        SetPlayerVirtualWorld(playerid, 0);
                        TogglePlayerControllable(playerid, 1);
                        ResetPlayerWeapons(playerid);
                        GivePlayerWeapon(playerid, 4, 1);
                        GivePlayerWeapon(playerid, 9, 1);
                        }
                    }

                if(listitem == 1)
                    {
                    if(GetPlayerScore(playerid) >= 1)
                        {
                            SendClientMessage(playerid, COLOR_WHITE, "You chose the Sniper as your class.");
                            ShowPlayerDialog(playerid, 11, DIALOG_STYLE_MSGBOX, "{6EF83C}Sniper Class:", "{F81414}Abilities:\n{FFFFFF}A Locater class, Always invisible on map.\n\n{F81414}Weapons:\n\n{FFFFFF}Sniper Rifle\n{FFFFFF}Mp5\n{FFFFFF}Knife", "Play","");
                            gPlayerClass[playerid] = Human;
                            PickedClass[playerid] = 1;
                            RemovePlayerMapIcon(playerid, 0);
                            SetPlayerVirtualWorld(playerid, 0);
                            TogglePlayerControllable(playerid, 1);
                            ResetPlayerWeapons(playerid);
                            GivePlayerWeapon(playerid, 12, 250);
                            GivePlayerWeapon(playerid, 29, 250);
                            GivePlayerWeapon(playerid, 4, 1);
                        }

                    }
                return 1;
        }

    return 1;//line 429
}
return true;
}
Ё
How i can fix this?
sorry i cant help as i am accessing net on TV
i will help after 2/3 hours
Reply


Messages In This Thread
Making A Class System(Very Simple+Easy+Dialogs+Texts) - by $$inSane - 08.05.2012, 15:46
Re: Making A Class System(Very Simple+Easy+Dialogs+Texts) - by $$inSane - 08.05.2012, 16:04
Re: Making A Class System(Very Simple+Easy+Dialogs+Texts) - by iOmar - 08.05.2012, 17:02
Re: Making A Class System(Very Simple+Easy+Dialogs+Texts) - by $$inSane - 09.05.2012, 08:55
Re: Making A Class System(Very Simple+Easy+Dialogs+Texts) - by JaKe Elite - 09.05.2012, 09:18
Re: Making A Class System(Very Simple+Easy+Dialogs+Texts) - by $$inSane - 09.05.2012, 09:28
Re: Making A Class System(Very Simple+Easy+Dialogs+Texts) - by BigETI - 09.05.2012, 11:40
Re: Making A Class System(Very Simple+Easy+Dialogs+Texts) - by iOmar - 09.05.2012, 12:19
Re: Making A Class System(Very Simple+Easy+Dialogs+Texts) - by Rudy_ - 09.05.2012, 12:25
Re: Making A Class System(Very Simple+Easy+Dialogs+Texts) - by $$inSane - 09.05.2012, 15:07
Re: Making A Class System(Very Simple+Easy+Dialogs+Texts) - by iOmar - 09.05.2012, 17:17
Re: Making A Class System(Very Simple+Easy+Dialogs+Texts) - by $$inSane - 10.05.2012, 08:49
Re: Making A Class System(Very Simple+Easy+Dialogs+Texts) - by [ABK]Antonio - 10.05.2012, 09:45
Re: Making A Class System(Very Simple+Easy+Dialogs+Texts) - by Slix_ - 10.05.2012, 09:48
Re: Making A Class System(Very Simple+Easy+Dialogs+Texts) - by iOmar - 10.05.2012, 10:21
Re: Making A Class System(Very Simple+Easy+Dialogs+Texts) - by $$inSane - 10.05.2012, 13:47
Re: Making A Class System(Very Simple+Easy+Dialogs+Texts) - by $$inSane - 14.05.2012, 11:13
Re: Making A Class System(Very Simple+Easy+Dialogs+Texts) - by Gangs_Rocks - 19.05.2012, 15:30
Re: Making A Class System(Very Simple+Easy+Dialogs+Texts) - by $$inSane - 19.05.2012, 16:08
Re: Making A Class System(Very Simple+Easy+Dialogs+Texts) - by ℓмяαη_кнαη - 19.05.2012, 16:51
Re: Making A Class System(Very Simple+Easy+Dialogs+Texts) - by $$inSane - 19.05.2012, 17:12
Re: Making A Class System(Very Simple+Easy+Dialogs+Texts) - by $$inSane - 21.05.2012, 09:05
Re: Making A Class System(Very Simple+Easy+Dialogs+Texts) - by [GF]Logic - 23.05.2012, 12:56
Re: Making A Class System(Very Simple+Easy+Dialogs+Texts) - by Luis- - 23.05.2012, 14:20
Re: Making A Class System(Very Simple+Easy+Dialogs+Texts) - by Coder_ - 04.07.2012, 17:55
Re: Making A Class System(Very Simple+Easy+Dialogs+Texts) - by $$inSane - 07.07.2012, 09:33
Re: Making A Class System(Very Simple+Easy+Dialogs+Texts) - by $$inSane - 07.07.2012, 14:00
Re: Making A Class System(Very Simple+Easy+Dialogs+Texts) - by Lordzy - 07.07.2012, 14:09
Re: Making A Class System(Very Simple+Easy+Dialogs+Texts) - by $$inSane - 07.07.2012, 14:13
Re: Making A Class System(Very Simple+Easy+Dialogs+Texts) - by Biess - 26.08.2012, 10:47
Re: Making A Class System(Very Simple+Easy+Dialogs+Texts) - by DeadLy™ - 26.08.2012, 17:26
Re: Making A Class System(Very Simple+Easy+Dialogs+Texts) - by JimmyCh - 24.06.2013, 10:43
Re: Making A Class System(Very Simple+Easy+Dialogs+Texts) - by Chrisis - 01.07.2013, 07:32
Re: Making A Class System(Very Simple+Easy+Dialogs+Texts) - by Mckarlis - 30.07.2013, 22:45
Re: Making A Class System(Very Simple+Easy+Dialogs+Texts) - by qazwsx - 02.08.2013, 09:07
Re: Making A Class System(Very Simple+Easy+Dialogs+Texts) - by qazwsx - 12.08.2013, 04:58
Re: Making A Class System(Very Simple+Easy+Dialogs+Texts) - by usamahifi - 07.02.2015, 18:01
Re: Making A Class System(Very Simple+Easy+Dialogs+Texts) - by $$inSane - 09.02.2015, 08:51
Re: Making A Class System(Very Simple+Easy+Dialogs+Texts) - by $$inSane - 25.07.2015, 08:42
Re: Making A Class System(Very Simple+Easy+Dialogs+Texts) - by Hemeei - 25.07.2015, 09:55
Re: Making A Class System(Very Simple+Easy+Dialogs+Texts) - by Snipa - 26.07.2015, 17:12
Re: Making A Class System(Very Simple+Easy+Dialogs+Texts) - by $$inSane - 27.07.2015, 10:09
Re: Making A Class System(Very Simple+Easy+Dialogs+Texts) - by Glossy42O - 27.07.2015, 10:18
Re: Making A Class System(Very Simple+Easy+Dialogs+Texts) - by Snipa - 28.07.2015, 01:11

Forum Jump:


Users browsing this thread: 3 Guest(s)