Messed up something in the dialog...
#1

I get all kinds of errors that i didnt even have anything to do with when i tried to make the dialog!? I dont my pawno know what error he should put lol cuz NOTHING that i got error on did i use
pawn Код:
C:\Users\new account\Desktop\Script\pawno\include\streamer.inc(363) : error 017: undefined symbol "Streamer_OnPlayerPickUpPickup"
C:\Users\new account\Desktop\Script\pawno\include\streamer.inc(403) : error 017: undefined symbol "Streamer_OnPlayerLeaveCP"
C:\Users\new account\Desktop\Script\pawno\include\streamer.inc(423) : error 017: undefined symbol "Streamer_OnPlayerEnterRaceCP"
C:\Users\new account\Desktop\Script\pawno\include\streamer.inc(443) : error 017: undefined symbol "Streamer_OnPlayerLeaveRaceCP"
C:\Users\new account\Desktop\Script\gamemodes\Script.pwn(4548) : error 004: function "OnPlayerUpdateEx" is not implemented
C:\Users\new account\Desktop\Script\gamemodes\Script.pwn(4578) : error 004: function "SafeGivePlayerMoney" is not implemented
C:\Users\new account\Desktop\Script\gamemodes\Script.pwn(4670) : error 004: function "SafeGivePlayerMoney" is not implemented
C:\Users\new account\Desktop\Script\gamemodes\Script.pwn(5016) : error 004: function "SafeSetPlayerInterior" is not implemented
C:\Users\new account\Desktop\Script\gamemodes\Script.pwn(5059) : error 017: undefined symbol "GetVehicleName"
C:\Users\new account\Desktop\Script\gamemodes\Script.pwn(5059) : warning 202: number of arguments does not match definition
C:\Users\new account\Desktop\Script\gamemodes\Script.pwn(5060) : error 004: function "OnPlayerUpdateEx" is not implemented
C:\Users\new account\Desktop\Script\gamemodes\Script.pwn(5081) : error 004: function "IsASalesVehicle" is not implemented
C:\Users\new account\Desktop\Script\gamemodes\Script.pwn(5091) : error 004: function "GetVehiclePrice" is not implemented
C:\Users\new account\Desktop\Script\gamemodes\Script.pwn(5214) : error 004: function "SafeSetPlayerPos" is not implemented
C:\Users\new account\Desktop\Script\gamemodes\Script.pwn(6237) : error 004: function "ABroadCast" is not implemented
C:\Users\new account\Desktop\Script\gamemodes\Script.pwn(6239) : error 004: function "ABroadCast" is not implemented
C:\Users\new account\Desktop\Script\gamemodes\Script.pwn(7366) : error 004: function "ClearChatbox" is not implemented
C:\Users\new account\Desktop\Script\gamemodes\Script.pwn(7386) : error 004: function "SendAdminMessage" is not implemented
C:\Users\new account\Desktop\Script\gamemodes\Script.pwn(7397) : error 004: function "OnPlayerUpdateEx" is not implemented
C:\Users\new account\Desktop\Script\gamemodes\Script.pwn(7544) : error 004: function "SendIRCMessage" is not implemented
C:\Users\new account\Desktop\Script\gamemodes\Script.pwn(7566) : error 004: function "SendIRCMessage" is not implemented
C:\Users\new account\Desktop\Script\gamemodes\Script.pwn(7578) : error 004: function "SaveCK" is not implemented
C:\Users\new account\Desktop\Script\gamemodes\Script.pwn(7608) : error 004: function "SavePapers" is not implemented
C:\Users\new account\Desktop\Script\gamemodes\Script.pwn(7639) : error 004: function "SaveFamilies" is not implemented
C:\Users\new account\Desktop\Script\gamemodes\Script.pwn(7883) : error 004: function "OOCOff" is not implemented
C:\Users\new account\Desktop\Script\gamemodes\Script.pwn(7897) : error 004: function "OOCOff" is not implemented
C:\Users\new account\Desktop\Script\gamemodes\Script.pwn(7903) : error 004: function "SafeGivePlayerMoney" is not implemented

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.
This is what i added:
Under OnDialogResponse
pawn Код:
if(dialogid == 501)
        {
            if(response)
            {
                if (listitem == 0)
                {
                    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
                    {
                        if(PlayerInfo[playerid][pRank] >= 1)
                        {
                            SafeSetPlayerArmour(playerid, 100);
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            format(string, sizeof(string), "* %s Takes a new Armour from the armory.", sendername);
                            ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                        }
                    }
                }
                else if (listitem == 1)
                {
                    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
                    {
                        if(PlayerInfo[playerid][pRank] >= 1)
                        {
                            SetPlayerHealth(playerid, 100);
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            format(string, sizeof(string), "* %s Takes out a Medical Kit and use it.", sendername);
                            ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                        }
                    }
                }
                else if (listitem == 2)
                {
                    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
                    {
                        if(PlayerInfo[playerid][pRank] >= 2)
                        {
                            SafeGivePlayerWeapon(playerid, 29, 250);
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            format(string, sizeof(string), "* %s Takes out a MP5 from the Armory.", sendername);
                            ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                        }
                    }
                }
                else if (listitem == 3)
                {
                    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
                    {
                        if(PlayerInfo[playerid][pRank] >= 2)
                        {
                            SafeGivePlayerWeapon(playerid, 25, 150);
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            format(string, sizeof(string), "* %s Takes out a Shotgun from the Armory.", sendername);
                            ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                        }
                    }
                }
                else if (listitem == 4)
                {
                    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
                    {
                        if(PlayerInfo[playerid][pRank] >= 2)
                        {
                            SetPlayerAttachedObject(playerid,3,18637,13,0.35,0.0,0.0,0.0,0.0,180.0);//Shield
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            format(string, sizeof(string), "* %s Takes out a Riot Shield from the Armory!", sendername);
                            ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                            SendClientMessage(playerid, COLOR_GREY, "* Use /shieldoff if you want to remove the Shield.");
                        }
                    }
                }
                else if (listitem == 5)
                {
                    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
                    {
                        if(PlayerInfo[playerid][pRank] >= 2)
                        {
                            SetPlayerAttachedObject(playerid,3,18637,13,0.35,0.0,0.0,0.0,0.0,180.0);//Shield
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            format(string, sizeof(string), "* %s Takes out a Riot Shield from the Armory!", sendername);
                            ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                            SendClientMessage(playerid, COLOR_GREY, "* Use /shieldbackoff if you want to remove the Shield.");
                        }
                    }
                }
            }
and here is the command..
pawn Код:
if(strcmp(cmd, "/armory", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(IsPlayerInRangeOfPoint(playerid, 6, 233.5504,124.9487,1003.2188) || IsPlayerInRangeOfPoint(playerid, 6,1456.9180,-1761.4631,3285.2859))
            {
                if(PlayerInfo[playerid][pMember] != 1 && PlayerInfo[playerid][pLeader] != 1) return SendClientMessage(playerid,COLOR_GREY,"** You are not in SAPD!");
                else if (PlayerInfo[playerid][pDuty] == 0) return SendClientMessage(playerid,COLOR_GREY,"** You are NOT on duty!");
               
                new pdarmory[] = "1\tArmour\n2\tMedical Kit\n3\tMP5\n4\tShot Gun\n5\tRiot Shield\n6\tRiot ShieldBack";
                ShowPlayerDialog(playerid,501,DIALOG_STYLE_LIST,"SAPD Armory",pdarmory,"Select","Cancel");
                SendClientMessage(playerid, COLOR_GREY,"* REMEMBER, You may not be able to Select EVERYTHING, Each Item needs it's Specified Rank!");
                return 1;
            }
        }
        return 1;
    }
Reply
#2

Код:
if(dialogid == 501)
        {
            if(response)
            {
                if (listitem == 0)
                {
                    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
                    {
                        if(PlayerInfo[playerid][pRank] >= 1)
                        {
                            SafeSetPlayerArmour(playerid, 100);
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            format(string, sizeof(string), "* %s Takes a new Armour from the armory.", sendername);
                            ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                        }
                    }
                }
                else if (listitem == 1)
                {
                    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
                    {
                        if(PlayerInfo[playerid][pRank] >= 1)
                        {
                            SetPlayerHealth(playerid, 100);
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            format(string, sizeof(string), "* %s Takes out a Medical Kit and use it.", sendername);
                            ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                        }
                    }
                }
                else if (listitem == 2)
                {
                    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
                    {
                        if(PlayerInfo[playerid][pRank] >= 2)
                        {
                            SafeGivePlayerWeapon(playerid, 29, 250);
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            format(string, sizeof(string), "* %s Takes out a MP5 from the Armory.", sendername);
                            ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                        }
                    }
                }
                else if (listitem == 3)
                {
                    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
                    {
                        if(PlayerInfo[playerid][pRank] >= 2)
                        {
                            SafeGivePlayerWeapon(playerid, 25, 150);
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            format(string, sizeof(string), "* %s Takes out a Shotgun from the Armory.", sendername);
                            ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                        }
                    }
                }
                else if (listitem == 4)
                {
                    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
                    {
                        if(PlayerInfo[playerid][pRank] >= 2)
                        {
                            SetPlayerAttachedObject(playerid,3,18637,13,0.35,0.0,0.0,0.0,0.0,180.0);//Shield
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            format(string, sizeof(string), "* %s Takes out a Riot Shield from the Armory!", sendername);
                            ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                            SendClientMessage(playerid, COLOR_GREY, "* Use /shieldoff if you want to remove the Shield.");
                        }
                    }
                }
                else if (listitem == 5)
                {
                    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
                    {
                        if(PlayerInfo[playerid][pRank] >= 2)
                        {
                            SetPlayerAttachedObject(playerid,3,18637,13,0.35,0.0,0.0,0.0,0.0,180.0);//Shield
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            format(string, sizeof(string), "* %s Takes out a Riot Shield from the Armory!", sendername);
                            ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                            SendClientMessage(playerid, COLOR_GREY, "* Use /shieldbackoff if you want to remove the Shield.");
                        }
                    }
                }
            }
            }
You forgot one bracket.
Reply
#3

Missing bracket
pawn Код:
if(dialogid == 501)
        {
            if(response)
            {
                if (listitem == 0)
                {
                    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
                    {
                        if(PlayerInfo[playerid][pRank] >= 1)
                        {
                            SafeSetPlayerArmour(playerid, 100);
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            format(string, sizeof(string), "* %s Takes a new Armour from the armory.", sendername);
                            ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                        }
                    }
                }
                else if (listitem == 1)
                {
                    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
                    {
                        if(PlayerInfo[playerid][pRank] >= 1)
                        {
                            SetPlayerHealth(playerid, 100);
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            format(string, sizeof(string), "* %s Takes out a Medical Kit and use it.", sendername);
                            ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                        }
                    }
                }
                else if (listitem == 2)
                {
                    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
                    {
                        if(PlayerInfo[playerid][pRank] >= 2)
                        {
                            SafeGivePlayerWeapon(playerid, 29, 250);
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            format(string, sizeof(string), "* %s Takes out a MP5 from the Armory.", sendername);
                            ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                        }
                    }
                }
                else if (listitem == 3)
                {
                    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
                    {
                        if(PlayerInfo[playerid][pRank] >= 2)
                        {
                            SafeGivePlayerWeapon(playerid, 25, 150);
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            format(string, sizeof(string), "* %s Takes out a Shotgun from the Armory.", sendername);
                            ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                        }
                    }
                }
                else if (listitem == 4)
                {
                    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
                    {
                        if(PlayerInfo[playerid][pRank] >= 2)
                        {
                            SetPlayerAttachedObject(playerid,3,18637,13,0.35,0.0,0.0,0.0,0.0,180.0);//Shield
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            format(string, sizeof(string), "* %s Takes out a Riot Shield from the Armory!", sendername);
                            ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                            SendClientMessage(playerid, COLOR_GREY, "* Use /shieldoff if you want to remove the Shield.");
                        }
                    }
                }
                else if (listitem == 5)
                {
                    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
                    {
                        if(PlayerInfo[playerid][pRank] >= 2)
                        {
                            SetPlayerAttachedObject(playerid,3,18637,13,0.35,0.0,0.0,0.0,0.0,180.0);//Shield
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            format(string, sizeof(string), "* %s Takes out a Riot Shield from the Armory!", sendername);
                            ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                            SendClientMessage(playerid, COLOR_GREY, "* Use /shieldbackoff if you want to remove the Shield.");
                        }
                    }
                }
            }
}
Reply
#4

Oh... Well then i didnt mess it up! just forgot one bracket at my first try on dialog! pretty proud xD Well thank you guys!
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)