![]() |
#1
|
||||
|
||||
![]()
Hello everyone! I'm working on a trinket sytem that I'm going to be sharing with everyone later on, but I was wondering whether or not this code would work for the item function(I'm pretty sure it's done wrong):
PHP Code:
|
#2
|
||||
|
||||
![]()
What about that reward/toy mod that was recently posted? Isn't that the same thing? *I know nothing*
__________________
Avatar courtesy of Doll Divine. |
#3
|
||||
|
||||
![]()
^It is, this is my edit on it. I wanted to make it so that you can choose what slot to put it in.
|
#4
|
||||
|
||||
![]()
Ah. What would the slots be for? Just organization?
__________________
Avatar courtesy of Doll Divine. |
#5
|
||||
|
||||
![]()
Umm, with the current system, you can have several slots, but each specific type of item can only be put in one slot. For example, when you use an item, you don't have the choice of which slot to put it in. :3
|
#6
|
||||
|
||||
![]()
Don't really know what you want to do, but that return message will stop your function from doing anything after it. Rest looks functional I think xD Great mods btw :3
__________________
![]() ![]() ![]() asp.net stole my soul. |
#7
|
||||
|
||||
![]()
^Thanks! Is there an alternative to the "return"... function? :3
|
#8
|
||||
|
||||
![]()
What did you want to do with return? xD A function returns when it ends, consider it the final result of a math problem. And it's other functions that pick up the return from other functions and work with the values
__________________
![]() ![]() ![]() asp.net stole my soul. |
#9
|
||||
|
||||
![]()
Having a return at the end like that basically means that calling items_trinket() will result in the value of $note, and will never run again because it is no longer a function holding formula to run/posing a question, it is a function holding an answer? I think. I'm sleepy.
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it. |
#10
|
||||
|
||||
![]()
A function runs as many times as you call it. Even if you return from it, if you call it again it will return again. The problem is the
return $message; In the middle. At that moment, the function will quit and the rest of code inside that function won't run at all. This part is like it doesn't exist: PHP Code:
__________________
![]() ![]() ![]() asp.net stole my soul. |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Trinket Images | Hwona | Art Gallery | 3 | 07-03-2014 10:44 PM |
Are there ani guides for making a theme here? | Rovick | Questions and Supports | 13 | 11-22-2013 04:47 PM |
Making IDs be codes? | Empress_Swanbottom | Questions and Supports | 6 | 02-16-2013 01:24 PM |
Making an RSS Feed! | PTGigi | Tutorials and Tips | 1 | 06-01-2012 03:31 AM |
Making a map... help! | dulop | Questions and Supports | 5 | 05-23-2012 08:14 PM |
What's New? |
What's Hot? |
What's Popular? |