[HELP] Equip
#1

I need some Help , Since Ive been trying to Remove Los santos Fire department On my Script And tried to recreate it into National Guard . Everything is Done cars,duty point ,Interior Gates , Now my problem is the equip Point

Ive been trying to Recreate it Like this but Somehow it doesnt showup , the Lines:
Ps. This is placed into /equip


PHP код:
            else if(IsPlayerInRangeOfPoint(playerid6233.5712,124.9033,1003.2188))//Army Lockers
            
{
                if(
PlayerInfo[playerid][pMember] != 12 && PlayerInfo[playerid][pLeader] != 12)
                {
                    
SendClientMessage(playerid,COLOR_GREY,"** This Refill Point is Only for the Army");
                    return 
1;
                }
                new 
armyequip[] = "1\tPrivate Equipment\n2\tSergeant Equipment\n3\tWatching Equipment\n4\tSpy Equipment\n5\tStandard Special Forces\n6\tMedium Special Forces\n7\tHeavy Special Forces\n8\tHeaviest Tactical\n9\tArmour+Health\n10\tCeremonial Suit\n11\tDefault\n12\tHigher Ranked";
                
ShowPlayerDialog(playerid,123123123,DIALOG_STYLE_LIST,"List of Equips:",armyequip,"Select","Cancel");
                
SendClientMessage(playeridCOLOR_GREY,"* REMEMBER, You may not be able to Select EVERYTHING, Each Item needs it's Specified Rank!");
            } 
Other lines


PHP код:
        if(dialogid == 123123123)
        {
            if(
response)
            {
                if (
listitem == 0)
                {
                    if(
PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
                    {
                        if(
PlayerInfo[playerid][pRank] >= 1)
                        {
                            
SafeResetPlayerWeapons(playerid);
                            
SafeGivePlayerWeapon(playerid24175);
                            
SafeGivePlayerWeapon(playerid31);
                            
SafeGivePlayerWeapon(playerid2525);
                            
SafeGivePlayerWeapon(playerid41200);
                            
SafeGivePlayerWeapon(playerid3150);
                            
SetPlayerSkin(playerid287);
                            
OnSpecialFDuty[playerid] = 0;
                            
GetPlayerName(playeridsendernamesizeof(sendername));
                            
format(stringsizeof(string), "* %s has suited himself up with the standard private equipment."sendername);
                            
ProxDetector(30.0playeridstringCOLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                        }
                    }
                   }
                else if (
listitem == 1)
                {
                    if(
PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
                    {
                          if(
PlayerInfo[playerid][pRank] >= 2)
                        {
                             
SafeResetPlayerWeapons(playerid);
                             
SetPlayerSkin(playerid287);
                            
SafeGivePlayerWeapon(playerid41300);
                            
SafeGivePlayerWeapon(playerid24125);
                            
SafeGivePlayerWeapon(playerid31);
                            
SafeGivePlayerWeapon(playerid29100);
                            
SafeGivePlayerWeapon(playerid2525);
                            
SafeGivePlayerWeapon(playerid31150);
                            
SafeGivePlayerWeapon(playerid175);
                            
OnSpecialFDuty[playerid] = 0;
                            
GetPlayerName(playeridsendernamesizeof(sendername));
                            
format(stringsizeof(string), "* %s has suited himself up with the standard sergeant equipment."sendername);
                            
ProxDetector(30.0playeridstringCOLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                        }
                    }
                }
                else if (
listitem == 2)
                {
                    if(
PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
                    {
                        if(
PlayerInfo[playerid][pRank] >= 2)
                        {
                            
SafeResetPlayerWeapons(playerid);
                            
SafeGivePlayerWeapon(playerid43100);
                            
SafeGivePlayerWeapon(playerid23125);
                            
SafeGivePlayerWeapon(playerid41);
                            
OnSpecialFDuty[playerid] = 0;
                            
GetPlayerName(playeridsendernamesizeof(sendername));
                              
format(stringsizeof(string), "* %s has taken a watching  equipment."sendername);
                            
ProxDetector(30.0playeridstringCOLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                        }
                    }
                }
                else if (
listitem == 3)
                {
                    if(
PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
                    {
                        if(
PlayerInfo[playerid][pRank] >= 3)
                        {
                            
SafeResetPlayerWeapons(playerid);
                            
SafeGivePlayerWeapon(playerid43125);
                            
SafeGivePlayerWeapon(playerid41);
                            
SafeGivePlayerWeapon(playerid23150);
                            
SafeGivePlayerWeapon(playerid461);
                            
SafeGivePlayerWeapon(playerid1710);
                            
SafeGivePlayerWeapon(playerid3450);
                            
OnSpecialFDuty[playerid] = 0;
                            
SetPlayerSkin(playerid73); // 191 Female
                            
GetPlayerName(playeridsendernamesizeof(sendername));
                            
format(stringsizeof(string), "* %s has taken the equipment needed for spying operations."sendername);
                            
ProxDetector(30.0playeridstringCOLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                        }
                    }
                }
                else if (
listitem == 4)
                {
                    if(
PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
                    {
                        if(
PlayerInfo[playerid][pSpecialF] >= 1)
                        {
                            
SafeResetPlayerWeapons(playerid);
                            
SafeGivePlayerWeapon(playerid31);
                            
SafeGivePlayerWeapon(playerid24150);
                            
SafeGivePlayerWeapon(playerid41700);
                            
SafeGivePlayerWeapon(playerid1710);
                            
SafeGivePlayerWeapon(playerid29175);
                            
SafeGivePlayerWeapon(playerid31225);
                            
SafeGivePlayerWeapon(playerid3410);
                            
SafeGivePlayerWeapon(playerid461);
                            
SetPlayerSkin(playerid179);
                            
OnSpecialFDuty[playerid] = 1;
                            
GetPlayerName(playeridsendernamesizeof(sendername));
                            
format(stringsizeof(string), "* %s has put on a Special Forces uniform and geared up with standard equipment."sendername);
                            
ProxDetector(30.0playeridstringCOLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                        }
                    }
                }
                else if (
listitem == 5)
                {
                    if(
PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
                    {
                        if(
PlayerInfo[playerid][pSpecialF] >= 2)
                        {
                            
SafeResetPlayerWeapons(playerid);
                            
SafeGivePlayerWeapon(playerid31);
                            
SafeGivePlayerWeapon(playerid24175);
                            
SafeGivePlayerWeapon(playerid41850);
                            
SafeGivePlayerWeapon(playerid1713);
                            
SafeGivePlayerWeapon(playerid29200);
                            
SafeGivePlayerWeapon(playerid31250);
                            
SafeGivePlayerWeapon(playerid461);
                            
SafeGivePlayerWeapon(playerid3415);
                              
SetPlayerSkin(playerid179);
                              
OnSpecialFDuty[playerid] = 1;
                            
GetPlayerName(playeridsendernamesizeof(sendername));
                            
format(stringsizeof(string), "* %s has put on a Special Forces uniform and geared up with medium equipment."sendername);
                            
ProxDetector(30.0playeridstringCOLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                        }
                    }
                }
                else if (
listitem == 6)
                {
                    if(
PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
                       {
                           if(
PlayerInfo[playerid][pSpecialF] >= 3)
                        {
                               
SafeResetPlayerWeapons(playerid);
                            
SafeGivePlayerWeapon(playerid31);
                            
SafeGivePlayerWeapon(playerid24200);
                            
SafeGivePlayerWeapon(playerid411000);
                            
SafeGivePlayerWeapon(playerid165);
                            
SafeGivePlayerWeapon(playerid2750);
                            
SafeGivePlayerWeapon(playerid29250);
                            
SafeGivePlayerWeapon(playerid31300);
                            
SafeGivePlayerWeapon(playerid461);
                            
SafeGivePlayerWeapon(playerid3425);
                            
SafeGivePlayerWeapon(playerid363);
                            
SetPlayerSkin(playerid179);
                            
OnSpecialFDuty[playerid] = 1;
                            
GetPlayerName(playeridsendernamesizeof(sendername));
                            
format(stringsizeof(string), "* %s has put on a special forces uniform and geared up with heavy equipment."sendername);
                            
ProxDetector(30.0playeridstringCOLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                        }
                    }
                }
                else if (
listitem == 7)
                {
                    if(
PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
                    {
                           if(
PlayerInfo[playerid][pSpecialF] >= 1)
                        {
                            
SafeResetPlayerWeapons(playerid);
                            
SafeGivePlayerWeapon(playerid41);
                            
SafeGivePlayerWeapon(playerid241200);
                            
SafeGivePlayerWeapon(playerid34150);
                                
SafeGivePlayerWeapon(playerid313000);
                                
SafeGivePlayerWeapon(playerid411500);
                            
SafeGivePlayerWeapon(playerid365);
                            
SafeGivePlayerWeapon(playerid1625);
                            
SafeGivePlayerWeapon(playerid292500);
                            
SafeGivePlayerWeapon(playerid27500);
                            
SetPlayerSkin(playerid287);
                            
OnSpecialFDuty[playerid] = 1;
                            
GetPlayerName(playeridsendernamesizeof(sendername));
                            
format(stringsizeof(string), "* %s has put on a special forces uniform and geared up with The Heaviest equipment."sendername);
                            
ProxDetector(30.0playeridstringCOLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                        }
                    }
                }
                else if (
listitem == 8)
                {
                    if(
PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
                    {
                        if(
PlayerInfo[playerid][pRank] >= 1)
                        {
                            
SafeSetPlayerArmour(playerid100);
                               
SetPlayerHealth(playerid100);
                            
GetPlayerName(playeridsendernamesizeof(sendername));
                            
format(stringsizeof(string), "* %s places on a Kevlar vest and eats some donuts."sendername);
                            
ProxDetector(30.0playeridstringCOLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                        }
                    }
                }
                else if (
listitem == 9)
                {
                    if(
PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
                    {
                        if(
PlayerInfo[playerid][pRank] >= 3)
                        {
                            new 
originalskin PlayerInfo[playerid][pChar];
                            
SetPlayerSkin(playeridoriginalskin);
                             
SafeResetPlayerWeapons(playerid);
                             
SafeGivePlayerWeapon(playerid41300);
                            
SafeGivePlayerWeapon(playerid24125);
                            
SafeGivePlayerWeapon(playerid31);
                            
SafeGivePlayerWeapon(playerid29100);
                            
SafeGivePlayerWeapon(playerid2525);
                            
SafeGivePlayerWeapon(playerid31150);
                            
SafeGivePlayerWeapon(playerid175);
                            
OnSpecialFDuty[playerid] = 0;
                            
GetPlayerName(playeridsendernamesizeof(sendername));
                            
format(stringsizeof(string), "* %s has suited himself up with the standard sergeant equipment."sendername);
                            
ProxDetector(30.0playeridstringCOLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                        }
                    }
                }
                else if (
listitem == 10)
                {
                    if(
PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
                    {
                        if(
PlayerInfo[playerid][pRank] >= 6)
                        {
                            new 
originalskin PlayerInfo[playerid][pChar];
                            
SetPlayerSkin(playeridoriginalskin);
                            
SafeResetPlayerWeapons(playerid);
                            
SafeGivePlayerWeapon(playerid31);
                            
SafeGivePlayerWeapon(playerid24200);
                            
SafeGivePlayerWeapon(playerid41700);
                            
SafeGivePlayerWeapon(playerid163);
                            
SafeGivePlayerWeapon(playerid2750);
                            
SafeGivePlayerWeapon(playerid29175);
                               
SafeGivePlayerWeapon(playerid31250);
                               
SafeGivePlayerWeapon(playerid461);
                            
SafeGivePlayerWeapon(playerid3420);
                            
OnSpecialFDuty[playerid] = 0;
                            
GetPlayerName(playeridsendernamesizeof(sendername));
                            
format(stringsizeof(string), "* %s has suited himself up with the standard sergeant equipment."sendername);
                            
ProxDetector(30.0playeridstringCOLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                        }
                    }
                }
                else if (
listitem == 11)
                {
                    if(
PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
                    {
                        if(
PlayerInfo[playerid][pRank] >= 2)
                        {
                            
SetPlayerSkin(playerid240);
                            
SafeResetPlayerWeapons(playerid);
                            
SafeGivePlayerWeapon(playerid31);
                            
SafeGivePlayerWeapon(playerid2450);
                            
SafeGivePlayerWeapon(playerid41500);
                            
SafeGivePlayerWeapon(playerid2525);
                            
SafeGivePlayerWeapon(playerid2975);
                            
SafeGivePlayerWeapon(playerid31100);
                            
SafeGivePlayerWeapon(playerid3345);
                            
OnSpecialFDuty[playerid] = 0;
                            
GetPlayerName(playeridsendernamesizeof(sendername));
                            
format(stringsizeof(string), "* %s has suited himself up with the standard Ceremonial Suit."sendername);
                            
ProxDetector(30.0playeridstringCOLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                        }
                    }
                }
            }
        } 
This is what happens






This is what shouldt happen




[[PS NO this aint already made this is another equip point ....]]


So couldt any 1 help me? or tell me what da hell i did wrong
Reply
#2

What exactly the problem ?
When you click on the dialog nothing happen ?
Reply
#3

pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 6, 233.5712,124.9033,1003.2188))//Army Lockers
            {
                if(PlayerInfo[playerid][pMember] != 12 && PlayerInfo[playerid][pLeader] != 12)
                {
                    SendClientMessage(playerid,COLOR_GREY,"** This Refill Point is Only for the Army");
                    return 1;
                }
                new armyequip[] = "1\tPrivate Equipment\n2\tSergeant Equipment\n3\tWatching Equipment\n4\tSpy Equipment\n5\tStandard Special Forces\n6\tMedium Special Forces\n7\tHeavy Special Forces\n8\tHeaviest Tactical\n9\tArmour+Health\n10\tCeremonial Suit\n11\tDefault\n12\tHigher Ranked";
                ShowPlayerDialog(playerid,123123123,DIALOG_STYLE_LIST,"List of Equips:",armyequip,"Select","Cancel");
                SendClientMessage(playerid, COLOR_GREY,"* REMEMBER, You may not be able to Select EVERYTHING, Each Item needs it's Specified Rank!");
            }
I found a mistake in your first pawn. Put the elseif statement to if statement. Also tell more about your current problem
Reply
#4

Yes That's Indeed my problem , An Dialog shouldt open with Equips but nothing happens ,

And whatup with this


PHP код:
if(IsPlayerInRangeOfPoint(playerid6233.5712,124.9033,1003.2188))//Army Lockers 
            

                if(
PlayerInfo[playerid][pMember] != 12 && PlayerInfo[playerid][pLeader] != 12
                { 
                    
SendClientMessage(playerid,COLOR_GREY,"** This Refill Point is Only for the Army"); 
                    return 
1
                } 
                new 
armyequip[] = "1\tPrivate Equipment\n2\tSergeant Equipment\n3\tWatching Equipment\n4\tSpy Equipment\n5\tStandard Special Forces\n6\tMedium Special Forces\n7\tHeavy Special Forces\n8\tHeaviest Tactical\n9\tArmour+Health\n10\tCeremonial Suit\n11\tDefault\n12\tHigher Ranked"
                
ShowPlayerDialog(playerid,123123123,DIALOG_STYLE_LIST,"List of Equips:",armyequip,"Select","Cancel"); 
                
SendClientMessage(playeridCOLOR_GREY,"* REMEMBER, You may not be able to Select EVERYTHING, Each Item needs it's Specified Rank!"); 
            } 
Reply
#5

[QUOTE=Neo Karls;1907023]
PHP код:
            if(IsPlayerInRangeOfPoint(playerid6233.5712,124.9033,1003.2188))//Army Lockers 
            

                if(
PlayerInfo[playerid][pMember] != 12 && PlayerInfo[playerid][pLeader] != 12
                { 
                    
SendClientMessage(playerid,COLOR_GREY,"** This Refill Point is Only for the Army"); 
                    return 
1
                } 
                new 
armyequip[] = "1\tPrivate Equipment\n2\tSergeant Equipment\n3\tWatching Equipment\n4\tSpy Equipment\n5\tStandard Special Forces\n6\tMedium Special Forces\n7\tHeavy Special Forces\n8\tHeaviest Tactical\n9\tArmour+Health\n10\tCeremonial Suit\n11\tDefault\n12\tHigher Ranked"
                
ShowPlayerDialog(playerid,123123123,DIALOG_STYLE_LIST,"List of Equips:",armyequip,"Select","Cancel"); 
                
SendClientMessage(playeridCOLOR_GREY,"* REMEMBER, You may not be able to Select EVERYTHING, Each Item needs it's Specified Rank!"); 
            } 
U cant copy pawn codes -.-
Reply
#6

Quote:
Originally Posted by kepa333
Посмотреть сообщение
Yes That's Indeed my problem , An Dialog shouldt open with Equips but nothing happens ,

And whatup with this


PHP код:
if(IsPlayerInRangeOfPoint(playerid6233.5712,124.9033,1003.2188))//Army Lockers 
            

                if(
PlayerInfo[playerid][pMember] != 12 && PlayerInfo[playerid][pLeader] != 12
                { 
                    
SendClientMessage(playerid,COLOR_GREY,"** This Refill Point is Only for the Army"); 
                    return 
1
                } 
                new 
armyequip[] = "1\tPrivate Equipment\n2\tSergeant Equipment\n3\tWatching Equipment\n4\tSpy Equipment\n5\tStandard Special Forces\n6\tMedium Special Forces\n7\tHeavy Special Forces\n8\tHeaviest Tactical\n9\tArmour+Health\n10\tCeremonial Suit\n11\tDefault\n12\tHigher Ranked"
                
ShowPlayerDialog(playerid,123123123,DIALOG_STYLE_LIST,"List of Equips:",armyequip,"Select","Cancel"); 
                
SendClientMessage(playeridCOLOR_GREY,"* REMEMBER, You may not be able to Select EVERYTHING, Each Item needs it's Specified Rank!"); 
            } 
are you mean you want it for army only ?
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 6, 233.5712,124.9033,1003.2188))//Army Lockers  
            {  
                if(PlayerInfo[playerid][pMember] != 12 && PlayerInfo[playerid][pLeader] != 12)  
                {  
                    SendClientMessage(playerid,COLOR_GREY,"** This Refill Point is Only for the Army");  
                    return 1;  
                }  
                else
               {
new armyequip = "1\tPrivate Equipment\n2\tSergeant Equipment\n3\tWatching Equipment\n4\tSpy Equipment\n5\tStandard Special Forces\n6\tMedium Special Forces\n7\tHeavy Special Forces\n8\tHeaviest Tactical\n9\tArmour+Health\n10\tCeremonial Suit\n11\tDefault\n12\tHigher Ranked";  
                ShowPlayerDialog(playerid,123123123,DIALOG_STYLE_LIST,"List of Equips:",armyequip,"Select","Cancel");  
                SendClientMessage(playerid, COLOR_GREY,"* REMEMBER, You may not be able to Select EVERYTHING, Each Item needs it's Specified Rank!");
                }  
            }
i hope it works
Reply
#7

Quote:
Originally Posted by Horrible
Посмотреть сообщение
are you mean you want it for army only ?
PHP код:
if(IsPlayerInRangeOfPoint(playerid6233.5712,124.9033,1003.2188))//Army Lockers  
            
{  
                if(
PlayerInfo[playerid][pMember] != 12 && PlayerInfo[playerid][pLeader] != 12)  
                {  
                    
SendClientMessage(playerid,COLOR_GREY,"** This Refill Point is Only for the Army");  
                    return 
1;  
                }  
                else
               {
new 
armyequip "1\tPrivate Equipment\n2\tSergeant Equipment\n3\tWatching Equipment\n4\tSpy Equipment\n5\tStandard Special Forces\n6\tMedium Special Forces\n7\tHeavy Special Forces\n8\tHeaviest Tactical\n9\tArmour+Health\n10\tCeremonial Suit\n11\tDefault\n12\tHigher Ranked";  
                
ShowPlayerDialog(playerid,123123123,DIALOG_STYLE_LIST,"List of Equips:",armyequip,"Select","Cancel");  
                
SendClientMessage(playeridCOLOR_GREY,"* REMEMBER, You may not be able to Select EVERYTHING, Each Item needs it's Specified Rank!");
                }  
            } 
i hope it works
I cant copy from Pawno Pls next time put in PHP
Reply
#8

here errors >.<

C:\Users\Snor !\Desktop\PRototype Roleplay v1.0\gamemodes\bmw.pwn(48757) : error 033: array must be indexed (variable "-unknown-")
C:\Users\Snor !\Desktop\PRototype Roleplay v1.0\gamemodes\bmw.pwn(4875 : error 035: argument type mismatch (argument 5)
C:\Users\Snor !\Desktop\PRototype Roleplay v1.0\gamemodes\bmw.pwn(48757) : warning 204: symbol is assigned a value that is never used: "armyequip"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.


Edited < Fixed the errors trying it now


again edited still nothing showsup
Reply
#9

The limit for dialog IDs is 32767... Your Dialog ID is way too high number.
Reply
#10

U smart kid lol >.<
EDIT: btw Ty
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)