Saving data problem
It must print in end of the file '0 0#' but it prints '#0 0 0 0 0#0'
I tested this with Nvault Editor. PHP Code:
PHP Code:
|
Re: Saving data problem
Quote:
See if the below works or you can just trim off the trailing zero if you can confirm it isn't storing any data. PHP Code:
|
Re: Saving data problem
I mean at the end of the vault file is '#0 0 0 0 0#0' , why not '0 0#' ?
In my code is '%d %d#' at the end of iLen |
Re: Saving data problem
Before saving, make sure a number is stored in the very last-written g_iPlayerPotionsInv[id][hero_id][iPotions] and see if that ends up in your vault entry.
|
Re: Saving data problem
1 Attachment(s)
Yes it's stored
EDIT : End of entry |
Re: Saving data problem
Try using a delimiter other then # and see if you get the same result.
|
Re: Saving data problem
Try this and see if the end is still incorrect. Maybe there is some length limit and it's cutting off some part of the string.
PHP Code:
|
Re: Saving data problem
1 Attachment(s)
Quote:
|
Re: Saving data problem
static szData[30000];
wtf ? O_o" |
Re: Saving data problem
Quote:
You said that if I'll use 'new' it will print error in log, btw I use this to save large data |
| All times are GMT -4. The time now is 07:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.