Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Addons and Modifications > Mys v1.3.x Mods

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 01-29-2017, 12:58 PM
Dinocanid's Avatar
Dinocanid Dinocanid is offline
Member
 
Join Date: Aug 2016
Location: Maryland, USA
Posts: 516
Gender: Unknown/Other
Credits: 99,273
Dinocanid is on a distinguished road
Default

I don't know how to make it automatically cycle through, but you can let the winner know that they won by putting this with the part of the script that picks the winner:
PHP Code:
$pm = new PrivateMessage(); // Send the winner a pm
    
$pm->setsender('AdminUsernameHere');
    
$pm->setrecipient($winner);
    
$pm->setmessage("You won the raffle! Congratulations! {$pool} CURRENCY has been added to your account.");
    
$pm->post(); 
__________________
Reply With Quote
  #2  
Old 01-29-2017, 01:06 PM
Chaos77777 Chaos77777 is offline
Member
 
Join Date: Jan 2017
Posts: 43
Gender: Male
Credits: 4,937
Chaos77777 is on a distinguished road
Default

hmm I must have done something wrong

Warning: Missing argument 2 for PrivateMessage::setmessage(), called in /home/arconlin/public_html/view/raffleview.php on line 34 and defined in /home/arconlin/public_html/classes/class_privatemessage.php on line 91

Fatal error: Uncaught exception 'Exception' with message 'Cannot set an empty private message' in /home/arconlin/public_html/classes/class_privatemessage.php:92 Stack trace: #0 /home/arconlin/public_html/view/raffleview.php(34): PrivateMessage->setmessage('You won the raf...') #1 /home/arconlin/public_html/classes/class_frontcontroller.php(100): RaffleView->index() #2 /home/arconlin/public_html/index.php(74): FrontController->render() #3 /home/arconlin/public_html/index.php(78): IndexController::main() #4 {main} thrown in /home/arconlin/public_html/classes/class_privatemessage.php on line 92
Reply With Quote
Reply


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


All times are GMT -5. The time now is 02:46 PM.

Currently Active Users: 3118 (0 members and 3118 guests)
Threads: 4,082, Posts: 32,047, 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