OnPlayerChangeWeapon -
iBots - 01.04.2015
Well i have made a code under this OnPlayerChangeWeapon ,it works but i found a bug,it is that I have made 2 codes,each code for 1 weapon,like 1 code for deagle and 1 for shotgun,lets say i have a deagle and a shotgun in my hands ,if i change from any gun expect for shotgun to deagle it will do deagle's code,and when i change to shotgun it does shotgun's code,but when i change from shotgun to deagle,deagle code happens and then shotgun code comes after it and bugs the deagle's code,because for each weapon there is a turn on and a turn off,so when i turn on deagle shotgun turns it off because under onplayerchangeweapon deagle's code happens before shtogun's,how is it possible to fix it?
Re: OnPlayerChangeWeapon -
De4dpOol - 01.04.2015
It is not possible for us to fix it without seeing the code. However, have you tried returning 1 or 0; after deagle's code? By doing this the code under it won't be called.
Re: OnPlayerChangeWeapon -
iBots - 01.04.2015
What do you mean,well,when i change from deagle to shotgun it runs the code and when i change from shotgun to deagle it runs deagle code again then shotgun's code again because it's under it
Re: OnPlayerChangeWeapon -
iBots - 01.04.2015
anyone?
Re: OnPlayerChangeWeapon -
Ritzy2K - 01.04.2015
keeping us in the dark wont help mate.
care to show the code like deadpool said? and also explain in detail xD
Re: OnPlayerChangeWeapon -
iBots - 01.04.2015
if you really cant understand my problem then you gotta learn english,i have explained everything and btw fixed.
Re: OnPlayerChangeWeapon -
Ritzy2K - 01.04.2015
Quote:
Originally Posted by iBots
Well i have made a code under this OnPlayerChangeWeapon ,it works but i found a bug,it is that I have made 2 codes,each code for 1 weapon,like 1 code for deagle and 1 for shotgun,lets say i have a deagle and a shotgun in my hands ,if i change from any gun expect for shotgun to deagle it will do deagle's code,and when i change to shotgun it does shotgun's code,but when i change from shotgun to deagle,deagle code happens and then shotgun code comes after it and bugs the deagle's code,because for each weapon there is a turn on and a turn off,so when i turn on deagle shotgun turns it off because under onplayerchangeweapon deagle's code happens before shtogun's,how is it possible to fix it?
|
And I need to learn english.. good for you if its fixed.
Re : Re: OnPlayerChangeWeapon -
Golimad - 01.04.2015
Quote:
Originally Posted by iBots
if you really cant understand my problem then you gotta learn english,i have explained everything and btw fixed.
|
1 - double posting isn't allowed, being a p*ssy isn't too. They were trying to help, and your post isn't complete : No code = no help. And next time, post the code, let people help you, and if you find a way to fix, comment it so people who gets the same issue don't have to write another topic.