![]() |
Mys 1.3.3 - modify script -
Hi,
I would like to change the script, for example : don't show gender until level 2 ... and others. But where have I put the text inside the script ? I've tried it like this (in myadopts .... public function index) PHP Code:
Please help, how can I solve this ? thank you... |
Does it throw an error or anything. Why are you writing code like currentLevel()? There's no such function defined in PHP or Mysidia. Also it's a syntax error to enclose an if statement inside parenthesis, use curly braces instead.
|
Quote:
1) The if works like this: PHP Code:
3) "0" is a string, you probably want an integer, which is just 0. 4) $currentlevel even as a variable won't work, it's an empty variable. You must have meant $adopt->getCurrentLevel() which is a function that returns the current level of the object $adopt. 5) And this: PHP Code:
PHP Code:
PHP Code:
Then go to the function PHP Code:
PHP Code:
(this in 1.3.3, not sure how if the newest version changed a lot...) |
@ HoF
I've modified the Mys 1.3.1 alike. (looks like Quote:
@ Into Rain aaaaaaaaaaaaaaah, yes. it was such a stupid fault ..."0" But you helped me very much. thank you so much. :usedusedused: I needed just a big thought-provoking impulse :wutno: |
Well Mys v1.3.3 is much more object oriented than Mys v1.3.1, so the old techniques may not work on the newer versions. In fact, Mys v1.4.0 and the future versions will pretty much require you to use objects all the time, its a good thing I believe.
|
@ Hof
I'm looking foreward to Mys 1.4.0. to conform the new script is not such a big problem, I've needed just a tip. And I will be glad, if you can help with another "problem": I want the alternate image for the females. So ... If the randomgenerator create a adoptable female, is it possible to insert automatically "yes" into the field "usealternates" ? and if so ... where ? and how ? :smile: |
Quote:
|
@ IntoRain
update- that's an idea. I try it... thank you :happycbig: |
All times are GMT -5. The time now is 01:51 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.