Thread: [Release] Math Credits
View Single Post
Arrow768
Veteran Member
Join Date: Nov 2011
Location: Austria
Old 06-22-2015 , 13:08   Re: Math Credits
Reply With Quote #7

Quote:
Originally Posted by Arkarr View Post
Like, how ? Question aren't things you can buy, can you ?
Currently we do not have a way to distribute configuration files across multiple servers.
So my idea is to use the json_attrs to distribute the data.
Basically the user adds 1 item for each question that contains the below mentioned attrs.
These items will be flagged as unbuyable (so its not listed in the store menu)

Once your module loads, it should be possible to get all the items that belong to that category.
Once you got the items, you can look at the attrs from each item to get the questions.
(Maybe you can use the item price as the reward thats given to the user)

Quote:
Originally Posted by Arkarr View Post
I do not understand that. Something like that ? (I know it's not formatted like json should be)
PHP Code:
//
//NBR1 - Get a random number between CVAR_MAX and CVAR_MIN
//NBR2 - Get a random number between CVAR_MAX and CVAR_MIN
//
"1"
{
      
"Question"     "How much does NBR1 + NBR2 ?"
      "Answer"       "NBR1 + NBR2"
      "Reward"       "10"
      "Time"           "3"
}
"2"
{
      
"Question"     "How is the server callled ?"
      "Answer"       "Test server #1"
      "Reward"       "20"
      "Time"           "20"

Yes like that, but it should be json, so the webpanel can mass check all attrs if they are a valid json object. (Its a common error that people mess up the json syntax, so theres a json checker in the webpanel)
Oh, and multiple answers would be awesome


As I said, this are just some ideas.


Quote:
Originally Posted by Arkarr View Post
What does that mean ?
Its listed here
https://forums.alliedmods.net/showthread.php?t=208774


Quote:
Originally Posted by Arkarr View Post
PS:
By the way, you have done a pretty nice job with the webpanel !
Thanks, but if you like the v1 panel, then you should take a look at the v2 panel
__________________
Arrow768 is offline