Okay so I found out that if you switch the json attr position and angles the enitre store bugs out and stops working.
Working example:
PHP Code:
{
"model": "models/Scryer/items/medic/medic_bill.mdl",
"position": [
0,
0,
2.4
],
"angles": [
0,
0,
0
],
"attachment": "forward"
}
Faulty example:
PHP Code:
{
"model": "models/Scryer/items/medic/medic_bill.mdl",
"angles": [
0,
0,
0
],
"position": [
0,
0,
2.4
],
"attachment": "forward"
}
Gives this error:
Code:
L 09/10/2013 - 18:00:16: [SM] Native "json_typeof" reported: Invalid <JSON Object> handle 0 (error 4)
L 09/10/2013 - 18:00:16: [SM] Displaying call stack trace for plugin "store-equipment.smx":
L 09/10/2013 - 18:00:16: [SM] [0] Line 988, C:\Users\root\Desktop\Jail\cstrike\addons\sourcemod\scripting\include\smjansson.inc::json_object_get_float()
L 09/10/2013 - 18:00:16: [SM] [1] Line 353, C:\Users\root\Desktop\Jail\cstrike\addons\sourcemod\scripting\store-equipment.sp::LoadItem()
And the sm_editor ofcourse stores the data in the order that store cannot handle so if you use !editor and save it stops working.