Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #10  
Old 07-04-2014, 02:53 PM
IntoRain's Avatar
IntoRain IntoRain is offline
Moderator
 
Join Date: Jul 2013
Location: Portugal
Posts: 461
Gender: Female
Credits: 23,186
IntoRain is on a distinguished road
Default

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:
if (!isset($_POST[‘slot’])) { 
$noslot = “You have not selected a slot to place this trinket in.” 
return $noslot

else { 
$slot $_POST[‘slot’]; 
$image $item->itemname
$note "The trinket has been given to this adoptable!"
  
$mysidia->db->update("owned_adoptables", array("lastbred" => 0), "aid ='{$adopt->aid}' and owner='{$item->owner}'"); 
  
$delitem $item->remove();  
  return 
$note

__________________


asp.net stole my soul.
Reply With Quote
 


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

Similar Threads
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


All times are GMT -5. The time now is 07:13 AM.

Currently Active Users: 10972 (0 members and 10972 guests)
Threads: 4,081, Posts: 32,032, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636