Doesn't load nvault data
Need help, how to make load points with loop? Without loop they are loading fine.
PHP Code:
|
Re: Doesn't load nvault data
1. What is g_iTotal? Where do you set its value?
2. What does the log print out? |
Re: Doesn't load nvault data
Quote:
Tell us instead what you are trying todo and we can help you easier |
Re: Doesn't load nvault data
You shouldn't post code without including all variables that are referenced. You should also include more information about what you are trying to do.
"how to make load points with loop? Without loop they are loading fine." How many items are stored in each vault entry? Is g_iPoints a 2-dimensional array and sized large enough? What is the value of g_iTotal? You should make sure g_iTotal is a constant variable and that its value is never larger than the size of the second dimension of g_iPoints or else you can run into index out of bounds errors. |
Re: Doesn't load nvault data
Saving works fine, for example I set points g_iPoints[ iPlayer ][ 3 ] it printout
Quote:
Quote:
PHP Code:
|
Re: Doesn't load nvault data
In your save, try "%d " instead of "%d". How else is parse supposed to know where numbers are separate? Your load function also needs to be fixed
|
Re: Doesn't load nvault data
you overwrite szData in the for loop with every iteration.
when you use nvault_set only the last value is present in there. |
Re: Doesn't load nvault data
PHP Code:
|
Re: Doesn't load nvault data
PHP Code:
|
Re: Doesn't load nvault data
Hey everyone, thanks a lot for your replies and help :)
I made some testing, with this: PHP Code:
Quote:
Quote:
|
| All times are GMT -4. The time now is 18:13. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.