Raised This Month: $12 Target: $400
 3% 

[ANY] Store by Zephyrus [1.1 - 03.01.2016]


Post New Thread Reply   
 
Thread Tools Display Modes
ambn
Veteran Member
Join Date: Feb 2015
Location: Fun servers
Old 08-22-2018 , 12:25   Re: [ANY] Store by Zephyrus [1.1 - 03.01.2016]
Reply With Quote #1501

Quote:
Originally Posted by NanoC View Post
Hello, i'm using this and it works correctly, check it:


PHP Code:
"Store"
{    
    
"Skins"
    
{
        
"Terrorist"
        
{
            
"Name for skin"
            
{
                
"model" "models/player/custom_player/test1/test1.mdl"
                "team" "2"
                "type" "playerskin"
                "Plans"
                
{
                    
"15 days"
                    
{
                        
"price" "15000"
                        "time"    "1296000"
                    
}
                }
            }
        }    
        
        
"Antiterrorist"
        
{
            
"Name for skin"
            
{
                
"model" "models/player/custom_player/test2/test2.mdl"
                "team" "3"
                "type" "playerskin"
                "Plans"
                
{
                    
"15 days"
                    
{
                        
"price" "18000"
                        "time"    "1296000"            
                    
}
                }
            }
        }
    }

is there anything else i should compile/install except the store plugin it self? maybe i'm missing something ...
the thing is it's not showing in the menu, what could possibly cause such thing?
__________________
ambn is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 09-17-2018 , 19:08   Re: [ANY] Store by Zephyrus [1.1 - 03.01.2016]
Reply With Quote #1502

Adding items doesn't work. Here's two items in weapon skins where one shows up and other doesn't: ( Crow will appear and Vulcan won't )

Code:
"Store"
{
	"Weaponskins"
	{
		"Vulcan"
		{
			"model" "models/crow.mdl"
			"position" "50.0 0.0 0.0"
			"angles" "0.0 0.0 0.0"
			"idle" "Idle01"
			"run" "Run"
			"unique_id" "ak47_vulcan"
			"price" "100"
			"type" "type"
		}
		"Crow"
		{
			"model" "models/crow.mdl"
			"position" "50.0 0.0 0.0"
			"angles" "0.0 0.0 0.0"
			"idle" "Idle01"
			"run" "Run"
			"unique_id" "crow_running"
			"price" "100"
			"type" "pet"
		}
	}
}
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334

Last edited by eyal282; 09-17-2018 at 19:21.
eyal282 is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 09-17-2018 , 19:29   Re: [ANY] Store by Zephyrus [1.1 - 03.01.2016]
Reply With Quote #1503

Quote:
Originally Posted by eyal282 View Post
Adding items doesn't work. Here's two items in weapon skins where one shows up and other doesn't: ( Crow will appear and Vulcan won't )

Code:
"Store"
{
	"Weaponskins"
	{
		"Vulcan"
		{
			"model" "models/crow.mdl"
			"position" "50.0 0.0 0.0"
			"angles" "0.0 0.0 0.0"
			"idle" "Idle01"
			"run" "Run"
			"unique_id" "ak47_vulcan"
			"price" "100"
			"type" "type"
		}
		"Crow"
		{
			"model" "models/crow.mdl"
			"position" "50.0 0.0 0.0"
			"angles" "0.0 0.0 0.0"
			"idle" "Idle01"
			"run" "Run"
			"unique_id" "crow_running"
			"price" "100"
			"type" "pet"
		}
	}
}
Because the items with a invalid "type" dont appear.

Your code
Code:
		"Vulcan"
		{
			"model" "models/crow.mdl"
			"position" "50.0 0.0 0.0"
			"angles" "0.0 0.0 0.0"
			"idle" "Idle01"
			"run" "Run"
			"unique_id" "ak47_vulcan"
			"price" "100"
			"type" "type" // INVALID TYPE
		}
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.


Last edited by Franc1sco; 09-17-2018 at 19:30.
Franc1sco is offline
Send a message via MSN to Franc1sco
Dr.Mohammad
Senior Member
Join Date: Jan 2016
Location: CSGO Servers
Old 09-17-2018 , 22:56   Re: [ANY] Store by Zephyrus [1.1 - 03.01.2016]
Reply With Quote #1504

hi guys!!
i used this version:
https://github.com/Bara/Store
and i use sourcemod last version 1.9.0-git6252

i have errors with compile:
HTML Code:
//// store-trade.sp
//
// Code size:            41876 bytes
// Data size:            80856 bytes
// Stack/heap size:      16384 bytes
// Total requirements:  139116 bytes
//
// Compilation Time: 0.58 sec
// ----------------------------------------

//// store.sp
//
// store.sp(876) : warning 213: tag mismatch
// store.sp(876) : warning 229: index tag mismatch (symbol "g_eItems")
// store.sp(881) : warning 213: tag mismatch
// store.sp(881) : warning 229: index tag mismatch (symbol "g_eTypeHandlers")
// store.sp(893) : warning 213: tag mismatch
// store.sp(893) : warning 229: index tag mismatch (symbol "g_eClientItems")
// store.sp(2057) : warning 237: coercing functions to and from primitives is unsupported and will be removed in the future
// store.sp(2810) : warning 204: symbol is assigned a value that is never used: "SilentChatTrigger"
// Code size:           257712 bytes
// Data size:         57570348 bytes
// Stack/heap size:      16384 bytes
// Total requirements:57844444 bytes
//
// 8 Warnings.
//
// Compilation Time: 12.45 sec
// ----------------------------------------

//// thirdperson.sp
//
// thirdperson.sp(1095) : warning 204: symbol is assigned a value that is never used: "g_bL4D"
// thirdperson.sp(1097) : warning 204: symbol is assigned a value that is never used: "g_bL4D2"
//thirdperson.sp(1099) : warning 204: symbol is assigned a value that is never used: "g_bND"
// Code size:            18464 bytes
// Data size:            72284 bytes
// Stack/heap size:      16384 bytes
// Total requirements:  107132 bytes
//
// 3 Warnings.
//
// Compilation Time: 0.45 sec
// ----------------------------------------
thank you.

Last edited by Dr.Mohammad; 09-17-2018 at 22:59.
Dr.Mohammad is offline
Cruze
Veteran Member
Join Date: May 2017
Old 09-18-2018 , 01:03   Re: [ANY] Store by Zephyrus [1.1 - 03.01.2016]
Reply With Quote #1505

Quote:
Originally Posted by Dr.Mohammad View Post
hi guys!!
i used this version:
https://github.com/Bara/Store
and i use sourcemod last version 1.9.0-git6252

i have errors with compile:
HTML Code:
//// store-trade.sp
//
// Code size:            41876 bytes
// Data size:            80856 bytes
// Stack/heap size:      16384 bytes
// Total requirements:  139116 bytes
//
// Compilation Time: 0.58 sec
// ----------------------------------------

//// store.sp
//
// store.sp(876) : warning 213: tag mismatch
// store.sp(876) : warning 229: index tag mismatch (symbol "g_eItems")
// store.sp(881) : warning 213: tag mismatch
// store.sp(881) : warning 229: index tag mismatch (symbol "g_eTypeHandlers")
// store.sp(893) : warning 213: tag mismatch
// store.sp(893) : warning 229: index tag mismatch (symbol "g_eClientItems")
// store.sp(2057) : warning 237: coercing functions to and from primitives is unsupported and will be removed in the future
// store.sp(2810) : warning 204: symbol is assigned a value that is never used: "SilentChatTrigger"
// Code size:           257712 bytes
// Data size:         57570348 bytes
// Stack/heap size:      16384 bytes
// Total requirements:57844444 bytes
//
// 8 Warnings.
//
// Compilation Time: 12.45 sec
// ----------------------------------------

//// thirdperson.sp
//
// thirdperson.sp(1095) : warning 204: symbol is assigned a value that is never used: "g_bL4D"
// thirdperson.sp(1097) : warning 204: symbol is assigned a value that is never used: "g_bL4D2"
//thirdperson.sp(1099) : warning 204: symbol is assigned a value that is never used: "g_bND"
// Code size:            18464 bytes
// Data size:            72284 bytes
// Stack/heap size:      16384 bytes
// Total requirements:  107132 bytes
//
// 3 Warnings.
//
// Compilation Time: 0.45 sec
// ----------------------------------------
thank you.
It is compiled. Only warnings are there.
__________________
Taking paid private requests! Contact me
Cruze is offline
Sarin
Senior Member
Join Date: Nov 2014
Location: Sydney, Australia
Old 09-19-2018 , 01:50   Re: [ANY] Store by Zephyrus
Reply With Quote #1506

Quote:
Originally Posted by Zephyrus View Post
Nope, you can use it with MySQL though if you want to
how do you enable it?

sm_store_database "storage-local"

I assume that is what gets changed but can't work out what too
Sarin is offline
Sarin
Senior Member
Join Date: Nov 2014
Location: Sydney, Australia
Old 09-19-2018 , 02:24   Re: [ANY] Store by Zephyrus
Reply With Quote #1507

Quote:
Originally Posted by Sarin View Post
how do you enable it?

sm_store_database "storage-local"

I assume that is what gets changed but can't work out what too
Ok i worked it out, i changed to "store" which is in the databases.cfg now i get this....... (i have an old store database)

L 09/19/2018 - 15:53:10: [store.smx] SQL error happened.
Query: DELETE FROM store_items WHERE `date_of_expiration` <> 0 AND `date_of_expiration` < 1537336390
Error: Unknown column 'date_of_expiration' in 'where clause'

Last edited by Sarin; 09-19-2018 at 03:39.
Sarin is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 09-19-2018 , 12:19   Re: [ANY] Store by Zephyrus [1.1 - 03.01.2016]
Reply With Quote #1508

Quote:
Originally Posted by Franc1sco View Post
Because the items with a invalid "type" dont appear.

Your code
Code:
		"Vulcan"
		{
			"model" "models/crow.mdl"
			"position" "50.0 0.0 0.0"
			"angles" "0.0 0.0 0.0"
			"idle" "Idle01"
			"run" "Run"
			"unique_id" "ak47_vulcan"
			"price" "100"
			"type" "type" // INVALID TYPE
		}
How to create a new type or better, make it typeless.
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 is offline
Cruze
Veteran Member
Join Date: May 2017
Old 09-19-2018 , 12:27   Re: [ANY] Store by Zephyrus [1.1 - 03.01.2016]
Reply With Quote #1509

Quote:
Originally Posted by eyal282 View Post
How to create a new type or better, make it typeless.
what do you want exactly
__________________
Taking paid private requests! Contact me
Cruze is offline
shanapu
Veteran Member
Join Date: Apr 2015
Location: .de
Old 09-19-2018 , 14:20   Re: [ANY] Store by Zephyrus [1.1 - 03.01.2016]
Reply With Quote #1510

Quote:
Originally Posted by eyal282 View Post
How to create a new type or better, make it typeless.
you have to write a module plugin for your own type, like:

https://github.com/dvarnai/store-plu...cripting/store
https://forums.alliedmods.net/showthread.php?p=2467731
https://forums.alliedmods.net/showthread.php?p=2610237

a typeless item will be ignored by the core plugin.
https://github.com/dvarnai/store-plu...sp#L2909-L2912
__________________
coding & free software

Last edited by shanapu; 09-19-2018 at 17:13.
shanapu is offline
Reply


Thread Tools
Display Modes

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 10:11.


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