ItsMods

Full Version: [FIXED]Code problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Double spawned_player waitils ? wtf
delete one in function
cz when you spawned it wait 2nd spawn rofl
try this:
Quote:doOMA()
{
self endon("disconnect");
self endon("death");

for(;Wink
{
if ( self actionslotonebuttonpressed() )
{
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;
}
}
}
still, nothing happends and i also got a huge lag when playing my mod
Code:
doOMA()
{
    self endon("disconnect");
    self endon("death");

    for(;;)
    {
        if ( self actionslotonebuttonpressed() )
        {
            wait .05;
            self iPrintlnBold("^2Obtaining AUG^7...");
            wait 10;
            self giveWeapon("aug_elbit_gl_mp", 0, self calcWeaponOptions ( 8, 0, 0, 0, 0 ));
        }
wait .05;
    }
}


Fixed
(08-22-2011, 21:52)Pozzuh Wrote: [ -> ]
Code:
doOMA()
{
    self endon("disconnect");
    self endon("death");

    for(;;)
    {
        if ( self actionslotonebuttonpressed() )
        {
            wait .05;
            self iPrintlnBold("^2Obtaining AUG^7...");
            wait 10;
            self giveWeapon("aug_elbit_gl_mp", 0, self calcWeaponOptions ( 8, 0, 0, 0, 0 ));
        }
wait .05;
    }
}


Fixed

Indeed fixed! Thanks alot!
+rep
Thats because of the smiley in the code, Wink
Pages: 1 2