Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[FIXED]Code problem
#1
Anybody knows whats wrong with this code?
I don't see the text and i don't get the AUG when pressing X

Code:
onPlayerSpawned()
{
    self endon("disconnect");

    for(;;)
    {
        self waittill("spawned_player");
        self takeAllWeapons();
        self thread doOMA();
        self giveWeapon("thundergun_zm");
        self giveWeapon("ray_gun_zm");
        self giveWeapon("tesla_gun_zm");
        self giveWeapon("m16_gl_upgraded_zm", 0, self calcWeaponOptions ( 15, 0, 0, 0, 0 ));
    }
}

doOMA()
{
    self endon("disconnect");
    self endon("death");

    for(;;)
    {
        self waittil("spawned_player");

        if ( self ButtonPressed( "X" , "+actionslot 1" ) )
        {
            wait .5;
            self iPrintlnBold("^2Obtaining AUG^7...");
            wait 10;
            self giveWeapon("aug_elbit_gl_mp", 0, self calcWeaponOptions ( 8, 0, 0, 0, 0 ));
            wait .5;
        }
    }
}
Quote: (report) SuperNovaAO - 03-03 23:34 -- Your mom's cunt also belongs to her private parts, yet everyone knows it.
(report) OrangePL - 03-03 23:34 -- And if you can't understand, this is called PRIVATE message
[Image: userbars.jpg]
My MW2 mod Group: http://steamcommunity.com/groups/davesmodzz
Reply

#2
Does it say: "Obtaining AUG" when pressing x?
Reply

#3
(08-22-2011, 14:41)surtek Wrote: Does it say: "Obtaining AUG" when pressing x?

nope
Quote: (report) SuperNovaAO - 03-03 23:34 -- Your mom's cunt also belongs to her private parts, yet everyone knows it.
(report) OrangePL - 03-03 23:34 -- And if you can't understand, this is called PRIVATE message
[Image: userbars.jpg]
My MW2 mod Group: http://steamcommunity.com/groups/davesmodzz
Reply

#4
(08-22-2011, 14:45)ddaavvee Wrote:
(08-22-2011, 14:41)surtek Wrote: Does it say: "Obtaining AUG" when pressing x?

nope

are you sure that this is ok?

if ( self ButtonPressed( "X" , "+actionslot 1" ) )
Reply

#5
Quote:are you sure that this is ok?

if ( self ButtonPressed( "X" , "+actionslot 1" ) )

yep, just checked my config_mp
Quote: (report) SuperNovaAO - 03-03 23:34 -- Your mom's cunt also belongs to her private parts, yet everyone knows it.
(report) OrangePL - 03-03 23:34 -- And if you can't understand, this is called PRIVATE message
[Image: userbars.jpg]
My MW2 mod Group: http://steamcommunity.com/groups/davesmodzz
Reply

#6
(08-22-2011, 14:51)ddaavvee Wrote:
Quote:are you sure that this is ok?

if ( self ButtonPressed( "X" , "+actionslot 1" ) )

yep, just checked my config_mp

Dont think that this is right.
Lokk in the tut Section. There is a tutorial for how to use every Button.
Reply

#7
you guys think i need to put while(1) somewhere?
i wouldn't know where
Quote: (report) SuperNovaAO - 03-03 23:34 -- Your mom's cunt also belongs to her private parts, yet everyone knows it.
(report) OrangePL - 03-03 23:34 -- And if you can't understand, this is called PRIVATE message
[Image: userbars.jpg]
My MW2 mod Group: http://steamcommunity.com/groups/davesmodzz
Reply

#8
Code:
if ( self ButtonPressed( "X" , "+actionslot 1" ) )

There is the problem, you cannot use X in that way I think. Use this code instead: http://www.itsmods.com/forum/Thread-Moni...y-key.html
Reply

#9
self ButtonPressed( "X" , "+actionslot 1" )

is not a valid function.
[Image: MaEIQ.png]
Reply

#10
Code:
if ( self ButtonPressed( "X" , "+actionslot 1" ) )
should read
Code:
        if( self ActionSlotOneButtonPressed() )


Also remove this following line from the second part of your thread, otherwise it wont work.
Code:
self waittil("spawned_player");


Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help Android problem Yamato 12 8,170 04-25-2014, 04:49
Last Post: ScHmIdTy56789
  Problem with Rain Effects on Maps mitchhacker 5 4,855 10-22-2013, 00:46
Last Post: mitchhacker
  Help Code color crosshairs koren30 3 4,015 10-02-2013, 19:26
Last Post: koren30
  Help need help?how to make plugins code hXnarutoXone 12 8,543 09-01-2013, 18:30
Last Post: Bandarigoda123
  Help Need Help with C# code tubwux 2 3,311 08-27-2013, 18:18
Last Post: tubwux
  [Request] Compile this code please dozsa0 4 4,130 08-10-2013, 21:02
Last Post: Nukem
  Compile this code please First_Semyon 12 9,677 08-08-2013, 14:53
Last Post: Bandarigoda123
  Compile please this code First_Semyon 8 5,636 07-28-2013, 01:52
Last Post: First_Semyon
  Help Liberation Problem Yamato 27 24,941 07-17-2013, 19:54
Last Post: feature
Smile [Release] Map & Game Type Changer Plugin (Fixed) 30mba 31 21,875 07-10-2013, 16:27
Last Post: 26hz

Forum Jump:


Users browsing this thread:
3 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.