Originally Posted by
Xleniz
Sry, im having virus (reinstalling computer)
-_-
I did 1000 bytes for making lots of zero's for string
the backslash zero didnt work, cipfried still says stuff underneath my string.
If you are reading it in CheatEngine or a memory viewer it will most likely ignore any null string terminator. Default ASCII BitConverters do not account for them either. For that reason, you should modify your ReadString function to work like this pseudocode:
Code:
char[] totalstring
for each char in string
if char != '\0' then
totalstring.append(char)
else
return totalstring
end
end
return totalstring
Of course you'll probably want to use a stringbuilder or something for the totalstring var, or maybe a List<> or some shit, since you can't extend arrays in such a way (at least not in C#, I know it's possible in Python).