Jump to content

[Release] New players get starting money


Hoplox

Recommended Posts

  On 3/20/2016 at 12:23 PM, Buck0 said:

A quick email to a service provder would have that resolved in 15 mins if it was the case. Why are you even involved and dragging this to these forums. 

Holy shit lol

Expand  

See how you feel when you give something to someone , he takes a strole around the corner and he get's mugged from the shit you gave him mate .......

People are Always high and mighty about when someone joins a server to steal stuff from somebody else's mission file and now your acting like this ......

Apperently it is allright to do it when you work together with someone and then because one is to greedy to keep all donations for himself that he locks the other out of the database , ftp and all for his own server .

Seen you post more stuff had certain amount of respect for you since you help out allot of people , you just lost it .

Thats all i got to say have fun guys

Link to comment
Share on other sites

  On 3/19/2016 at 8:03 PM, Hoplox said:

Try this instead:

CREATE TRIGGER `bankingIssueFix` AFTER INSERT ON `player_data`
 FOR EACH ROW INSERT INTO banking_data
( PlayerUID, PlayerName, BankSaldo,  LastUpdated)
VALUES
(NEW.PlayerUID, NEW.PlayerName, 100000, NOW())

 

Expand  

The new error
 

---------------------------
Error
---------------------------
SQL Error (1235): This version of MySQL doesn't yet support 'multiple triggers with the same action time and event for one table'
---------------------------
OK   
---------------------------

 

Link to comment
Share on other sites

  On 3/22/2016 at 6:57 PM, DangerRuss said:

The new error
 

---------------------------
Error
---------------------------
SQL Error (1235): This version of MySQL doesn't yet support 'multiple triggers with the same action time and event for one table'
---------------------------
OK   
---------------------------

 

Expand  

You may already have this trigger in your database. If so, look for this line:

(NEW.PlayerUID, NEW.PlayerName, 100000, NOW())

and change the 100000 to any value of your choice.

Link to comment
Share on other sites

  On 3/24/2016 at 12:32 AM, ckto said:

Managed to change it on HeidiSQL.

BUT ins't working for me.Am I doing something wrong maybe...

Expand  

Remember, it is only for fresh brand new players on your server. You can test it by wiping your player_data and login_data, then launching your server and joining again. The money will go into the bank of the player.

Link to comment
Share on other sites

  On 3/24/2016 at 12:42 AM, Hoplox said:

Remember, it is only for fresh brand new players on your server. You can test it by wiping your player_data and login_data, then launching your server and joining again. The money will go into the bank of the player.

Expand  

I understand now, thanks!

Gonna wait to see a new player arround ^^

 

-----

 

Edit : It really worked with new players, thank you very much!

Link to comment
Share on other sites

  On 3/25/2016 at 9:15 PM, Hoplox said:

Have you fixed it now?

 

Expand  

Yes I have. The trigger worked perfectly. I'll post below so if anyone else wants to give the trigger a try if they continue having problems too.

*********************************************************************************************************************************************************************************

CREATE DEFINER=`<databaseusername>`@`%` TRIGGER `bankingissuefix` BEFORE INSERT ON `player_data` FOR EACH ROW INSERT INTO banking_data
( PlayerUID, PlayerName, BankSaldo,  LastUpdated)
VALUES
(NEW.PlayerUID, NEW.PlayerName, 50000, NOW())

Link to comment
Share on other sites

  • 4 months later...
  • 2 months later...
  On 11/18/2016 at 5:09 AM, Tech_Support said:

"player_data" table in the SQL database.

Expand  

In my data base under player_data is PlayerUID, PlayerName, PlayerMorality, PlayerSex

The money that the players earned is stored in PlayerMorality.

Do I replace banking_data with PlayMorality where it says it below? If not anyone know what to do?

FOR EACH ROW INSERT INTO banking_data

 

Link to comment
Share on other sites

  On 11/18/2016 at 4:19 PM, Thug said:

In my data base under player_data is PlayerUID, PlayerName, PlayerMorality, PlayerSex

The money that the players earned is stored in PlayerMorality.

Do I replace banking_data with PlayMorality where it says it below? If not anyone know what to do?

FOR EACH ROW INSERT INTO banking_data

 

Expand  

No, the only version this will work for is the version that has global banking. If you look in your database, you will see a extra table. Its the banking_data table. 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...