OnPlayerChangeWeapon
#1

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?
Reply
#2

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.
Reply
#3

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
Reply
#4

anyone?
Reply
#5

keeping us in the dark wont help mate.
care to show the code like deadpool said? and also explain in detail xD
Reply
#6

if you really cant understand my problem then you gotta learn english,i have explained everything and btw fixed.
Reply
#7

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.
Reply
#8

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)