Raised This Month: $ Target: $400
 0% 

Issue Attr order messes up entire store


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Groger
Veteran Member
Join Date: Oct 2009
Location: Belgium
Old 09-10-2013 , 13:29   Attr order messes up entire store
Reply With Quote #1

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.
Groger is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:39.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode