How to remember value?
I have trouble when remember value. I want to remember first value when I killed someone, and when I kill again, the first value moves to the third value. The problem is after killing player, the first value replaced not moved to the second, how was it?
PHP Code:
|
Re: How to remember value?
You mean in subsequent calls to same function?
Use static |
Re: How to remember value?
Quote:
@randomize: you should clear a bit your code.. and then you will figure it out. you could also use something like: Code:
new iKills[ 9 ]; // this is global one |
Re: How to remember value?
Okay I will try.
|
| All times are GMT -4. The time now is 15:57. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.