Item Function Is Invalid
Hello, I was thinking about trying to make a new item function, but whenever I try to use an item, it says the item function is invalid. Can someone help or point me in the right direction? :3
Yes, I created a new row in adopts_items_functions. Here's the code: PHP Code:
|
Are you sure the function name matches the naming convention? Take a screenshot from PHPMyadmin and I will see how to help you.
|
Re
Thanks - taking pic... I thought it would be more like an issue with the code.
Edit here it is :3: http://i1290.photobucket.com/albums/...ps2b12a65c.jpg |
Well there is indeed an error in your code. This line clearly is not doing the right thing, you aint using the database class properly.
PHP Code:
|
Re
Ah thanks! Now if only I knew exactly how to fix it...
From the looks of it, I think I might have to add something like: ... ownedadopt ->... and so on.. But then, another half of me thinks it's suppossed to be something like getgender. :L Do you mind telling me what I need to tweak. PHP Code:
|
Well its still incorrect, the syntax should be:
PHP Code:
|
Re
:D thank you so much! So you have to put all that aid stuff there? :3
O.o but it still says the function is invalid. Is there any other problem with the code? |
Yeah there is still one more trick you need to apply at least with Mys v1.3.3. Go to the script file class_privateitem.php, find the long switch statement that defines each item function, add yours in the list, and it should be working. In Mys v1.3.4 that will be released in about a week or two, I will make it possible to get the item function name dynamically so you wont have to go through this pain.
|
:D Thanks!
- Oh, now it says that the registery doesn't exist. O.o |
Clearly you have misspelled the word registry.
|
All times are GMT -5. The time now is 10:53 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.