Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Some help on my code
#1
heyho, can you help me to get this code work? Smile

// i edited the code, now without syntax error.
PHP Code:
customrecoil()
{
    while(
1)
    {
        if(
self.weapon_fired)  <--- this is wrong
        
{
        
self setClientDvar("perk_weapSpreadMultiplier"0.20);
        
wait 0.001;
        
self setClientDvar("perk_weapSpreadMultiplier"0.22);
        
wait 0.001;
        
self setClientDvar("perk_weapSpreadMultiplier"0.24);
        
wait 0.001;
        
self setClientDvar("perk_weapSpreadMultiplier"0.26);
        
wait 0.001;
        
self setClientDvar("perk_weapSpreadMultiplier"0.28);
        
wait 0.001;
        
self setClientDvar("perk_weapSpreadMultiplier"0.30);
        
wait 0.001;
        
self setClientDvar("perk_weapSpreadMultiplier"0.32);
        
wait 0.001;
        
self setClientDvar("perk_weapSpreadMultiplier"0.33);
        
wait 0.001;
        
self setClientDvar("perk_weapSpreadMultiplier"0.34);
        
wait 0.001;
        
self setClientDvar("perk_weapSpreadMultiplier"0.35);
        
wait 0.001;
        
self setClientDvar("perk_weapSpreadMultiplier"0.36);
        
wait 0.001;
        
self setClientDvar("perk_weapSpreadMultiplier"0.37);
        
wait 0.001;
        
self setClientDvar("perk_weapSpreadMultiplier"0.38);
        
wait 0.001;
        
self setClientDvar("perk_weapSpreadMultiplier"0.40);
        
wait 0.001;
        
self setClientDvar("perk_weapSpreadMultiplier"0.41);
        
wait 0.001;
        
self setClientDvar("perk_weapSpreadMultiplier"0.42);
        
wait 0.001;
        }        
            else
        {    
        
self setClientDvar("perk_weapSpreadMultiplier"0.20);
        }
       
wait 0.5;    
    }

Reply

#2
"hey God im sorry but your universe doesnt work"

in other words, we can't help you fix something without telling us what needs fixing
YouTube 1:Azumikkel- Modding
YouTube 2:DerpShark- Gaming Entertainment
Website:Jensby.me
Contact: im[at]jensby.me
Reply

#3
(05-31-2011, 19:01)AZUMIKKEL Wrote: "hey God im sorry but your universe doesnt work"

in other words, we can't help you fix something without telling us what needs fixing

qoute myself

Quote: if(self.weapon_fired) <--- this is wrong

syntax is allright but this line is wrong
error message attached...


Attached Files Image(s)
   
Reply

#4
self waittill("weapon_fired");

Also, how did you get that error message show the specific error?
YouTube 1:Azumikkel- Modding
YouTube 2:DerpShark- Gaming Entertainment
Website:Jensby.me
Contact: im[at]jensby.me
Reply

#5
(05-31-2011, 19:40)AZUMIKKEL Wrote: self waittill("weapon_fired");

Also, how did you get that error message show the specific error?

seta developer "1" ftw bro Big Grin
(05-31-2011, 19:40)AZUMIKKEL Wrote: self waittill("weapon_fired");

dont work in a if code
Reply

#6
(05-31-2011, 19:44)qontrixz Wrote:
(05-31-2011, 19:40)AZUMIKKEL Wrote: self waittill("weapon_fired");

Also, how did you get that error message show the specific error?

seta developer "1" ftw bro Big Grin
(05-31-2011, 19:40)AZUMIKKEL Wrote: self waittill("weapon_fired");

dont work in a if code

remove the if
YouTube 1:Azumikkel- Modding
YouTube 2:DerpShark- Gaming Entertainment
Website:Jensby.me
Contact: im[at]jensby.me
Reply

#7
(05-31-2011, 20:01)AZUMIKKEL Wrote:
(05-31-2011, 19:44)qontrixz Wrote:
(05-31-2011, 19:40)AZUMIKKEL Wrote: self waittill("weapon_fired");

Also, how did you get that error message show the specific error?

seta developer "1" ftw bro Big Grin
(05-31-2011, 19:40)AZUMIKKEL Wrote: self waittill("weapon_fired");

dont work in a if code

remove the if
and what about the

else
{
self setClientDvar("perk_weapSpreadMultiplier", 0.20);
}


?...

if the weapon is firing the spread goes bigger else the spread is at 0.20 this was my thinkings
Reply

#8
if(self attackButtonPressed())
YouTube 1:Azumikkel- Modding
YouTube 2:DerpShark- Gaming Entertainment
Website:Jensby.me
Contact: im[at]jensby.me
Reply

#9
(05-31-2011, 20:15)AZUMIKKEL Wrote: if(self attackButtonPressed())

i love you <3 Smile
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help Code color crosshairs koren30 3 4,016 10-02-2013, 19:26
Last Post: koren30
  Help need help?how to make plugins code hXnarutoXone 12 8,549 09-01-2013, 18:30
Last Post: Bandarigoda123
  Help Need Help with C# code tubwux 2 3,313 08-27-2013, 18:18
Last Post: tubwux
  [Request] Compile this code please dozsa0 4 4,134 08-10-2013, 21:02
Last Post: Nukem
  Compile this code please First_Semyon 12 9,683 08-08-2013, 14:53
Last Post: Bandarigoda123
  Compile please this code First_Semyon 8 5,639 07-28-2013, 01:52
Last Post: First_Semyon
  Code of vector Bloodfocus 1 2,411 06-23-2013, 11:54
Last Post: Yamato
  problem with gsc code CheGuevara 5 5,617 04-20-2013, 15:06
Last Post: Nekochan
Tongue [Request] read if you have a cs:go code:) rawr-saours 5 4,062 04-05-2013, 18:15
Last Post: SuperNovaAO
Smile Help Help me with a code (who knows) NyZzE 2 2,542 04-05-2013, 01:47
Last Post: NyZzE

Forum Jump:


Users browsing this thread:
6 Guest(s)

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