Raised This Month: $51 Target: $400
 12% 

Player's birthday.


Post New Thread Reply   
 
Thread Tools Display Modes
Groger
Veteran Member
Join Date: Oct 2009
Location: Belgium
Old 03-07-2011 , 17:07   Re: Player's birthday.
Reply With Quote #21

After a quick look in the sourcecode I could see this plugin automaticly creates the tables if they dont exist, so maybe you should create a link inside database.txt in your config folders..

Maybe someone can clarify
Groger is offline
[PL]Luki
Member
Join Date: Jun 2009
Old 03-07-2011 , 17:32   Re: Player's birthday.
Reply With Quote #22

Plugin connects to the default database (it should be MySQL) and automatically creates the table if it doesn't exists.
[PL]Luki is offline
bzellinger
Member
Join Date: Sep 2010
Old 03-07-2011 , 23:51   Re: Player's birthday.
Reply With Quote #23

I'm a MySql noob. What is the name of the database? I'll create the database if I knew the name. Thanks.
bzellinger is offline
rautamiekka
Veteran Member
Join Date: Jan 2009
Location: Finland
Old 03-08-2011 , 06:51   Re: Player's birthday.
Reply With Quote #24

Bunch of errors:
Code:
L 03/08/2011 - 04:59:53: [SM] Native "SQL_FetchInt" reported: Current result set has no fetched rows
L 03/08/2011 - 04:59:53: [SM] Displaying call stack trace for plugin "birthday.smx":
L 03/08/2011 - 04:59:53: [SM]   [0]  Line 106, birthday.sp::CheckBirthday()
L 03/08/2011 - 04:59:53: [SM]   [1]  Line 72, birthday.sp::OnClientPostAdminCheck()
L 03/08/2011 - 04:59:53: [SM] Native "SQL_FetchInt" reported: Current result set has no fetched rows
L 03/08/2011 - 04:59:53: [SM] Displaying call stack trace for plugin "birthday.smx":
L 03/08/2011 - 04:59:53: [SM]   [0]  Line 106, birthday.sp::CheckBirthday()
L 03/08/2011 - 04:59:53: [SM]   [1]  Line 83, birthday.sp::OnPlayerSpawn()
__________________
Links to posts I received Karma from:
Big thanks to all who gave Karma
rautamiekka is offline
Send a message via ICQ to rautamiekka Send a message via AIM to rautamiekka Send a message via MSN to rautamiekka Send a message via Yahoo to rautamiekka Send a message via Skype™ to rautamiekka
rautamiekka
Veteran Member
Join Date: Jan 2009
Location: Finland
Old 03-08-2011 , 06:53   Re: Player's birthday.
Reply With Quote #25

Quote:
Originally Posted by bzellinger View Post
I'm a MySql noob. What is the name of the database? I'll create the database if I knew the name. Thanks.
Quote:
Originally Posted by [PL]Luki View Post
Plugin connects to the default database (it should be MySQL) and automatically creates the table if it doesn't exists.
Plugins always connect to the default unless mentioned else.
__________________
Links to posts I received Karma from:
Big thanks to all who gave Karma
rautamiekka is offline
Send a message via ICQ to rautamiekka Send a message via AIM to rautamiekka Send a message via MSN to rautamiekka Send a message via Yahoo to rautamiekka Send a message via Skype™ to rautamiekka
Datenkralle
Member
Join Date: Jan 2011
Old 03-08-2011 , 13:38   Re: Player's birthday.
Reply With Quote #26

Quote:
Originally Posted by [PL]Luki View Post
Plugin connects to the default database (it should be MySQL) and automatically creates the table if it doesn't exists.
Thanks.
__________________
Datenkralle is offline
bzellinger
Member
Join Date: Sep 2010
Old 03-08-2011 , 18:09   Re: Player's birthday.
Reply With Quote #27

I'm getting the same errors as above. Using MySQL Workbench, I see no new tables added to the MySQL database.
bzellinger is offline
rautamiekka
Veteran Member
Join Date: Jan 2009
Location: Finland
Old 12-05-2011 , 08:23   Re: Player's birthday.
Reply With Quote #28

Feature request: don't print the announcement if the receiver has already set his. Of course that requires the Plugin to send the announcement individually instead of by global broadcast.
__________________
Links to posts I received Karma from:
Big thanks to all who gave Karma
rautamiekka is offline
Send a message via ICQ to rautamiekka Send a message via AIM to rautamiekka Send a message via MSN to rautamiekka Send a message via Yahoo to rautamiekka Send a message via Skype™ to rautamiekka
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 12-05-2011 , 08:44   Re: Player's birthday.
Reply With Quote #29

Quote:
Originally Posted by asherkin View Post
Isn't it possible using SM's built-in overrides system?
^ This. Please don't create an admin flag cvar when there's a perfectly good admin_overrides.cfg file.

Also, why not give SQLite instructions also? It's not too hard, and easier than MySQL.
__________________
Dr. McKay is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 12-05-2011 , 12:57   Re: Player's birthday.
Reply With Quote #30

Since this plugin was bumped back to the first page, some fun things to do with configs/birthday.txt in TF2 are:

  1. Set tf_birthday to 1 (make sure server.cfg has tf_birthday 0 or else it'll never go away). This spawns the birthday beach ball in BLU spawn, puts party hats on all players heads, and changes gibs to presents.
  2. Install [TF2] Force Holidays and set tfh_birthday to 1 (make sure server.cfg has tfh_birthday 0 or else it'll never go away). This spawns the birthday beach ball in BLU spawn, changes medkits and ammo boxes to their birthday models, and enables the use of the Birthday noisemaker.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 12-05-2011 at 13:09.
Powerlord is offline
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 -4. The time now is 16:12.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode