Thread: [Solved] Loop order
View Single Post
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 01-16-2018 , 11:12   Re: Loop order
Reply With Quote #16

Quote:
Originally Posted by Clauu View Post
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 View Post
PHP Code:
copyszName2charsmaxszName2 ), g_iItemsPlayer_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 ?
__________________
edon1337 is offline