Store
Store copied to clipboard
insertItem.php errors
I can't upload my item.txt from my old zephyrus store due to these two errors when doing the insertitem.php script: Warning: array_key_exists() expects parameter 2 to be array, string given in C:\php\insertItem.php on line 35
Warning: Invalid argument supplied for foreach() in C:\php\insertItem.php on line 118
I have followed the tutorial as best as I can, but IF I understand it correctly, the item.txt file that comes with your plugin has some kind of duration on how long they can own certain player models etc. I don't know if its related to these two errors I get, but hopefully it is..
Really desperate for help, one of my highest populated server is down atm cause I cant fix this..
Also, what do you mean by "Add -->"uid"<-- key for each item in ...'
uid -> unique_id, that is an unique id for item.
u can check example items.txt in configs/store/items.txt
Would you say that, that would fix these errors im getting? Thank you very much for the reply btw
can u share ur items.txt?
This was the one before I added the uid: https://paste2.org/V1knJNYn
This is the one after I added uid: https://paste2.org/PmyBU7nH
This is the 2 new errors I get after I added the "uid" to everything:
Notice: vdf_decode: invalid syntax, expected a '}' on line 933 in C:\php\kvphp.php on line 49
Warning: Invalid argument supplied for foreach() in C:\php\insertItem.php on line 29 Array ( )
I've also added you on steam if you would like to talk via there, but you maybe don't like having "business" related friends there.. I am the latest person to comment your profile!
I too, am having this issue.
Seems to break when it gets to my player models in the loop, I've sent you an add on Steam to diagnose further.
Store is broke with this issue can't add nothing.