Quote:
Originally Posted by Clauu
That's because you have to entirely remove g_iItems from global scope and keep it only local in functions, array g_aDatabase is what you must use..
|
I removed g_iItems from global scope, and used it only in local functions where ReadFile was called, still got that error, what do you mean with 'g_aDatabase is what you must use' ?
Quote:
Originally Posted by Clauu
PHP Code:
copy( szName2, charsmax( szName2 ), g_iItems[ Player_Name ] );
Since g_iItems it is filled in ReadFile, here you are copying the last value parsed from that function, if it is parsed correctly since you don't have such condition.
|
Sorry, what is wrong with that part of the code? It copies the name inside g_iItems[ Player_Name ] into szName2 ?
__________________