fail to create player

Place for sharing your game modifications for Life is Feudal: Your Own

Kristo84
Beta Tester
 
Posts: 13
Joined: 27 Apr 2015, 21:14

fail to create player

Post by Kristo84 » 06 Jun 2015, 10:07

Hii guys!!, yesterday happened one thing rare in my server of lif. one friend wanted to create one player in my server but when push done this error appeared: "Character creation process error (code=1024)".

before of the pacth 0.5 all people could create players in my server but now nobody can´t create players for this error. Someone know how to repair this error.


Gms0012
 
Posts: 166
Joined: 23 Feb 2015, 08:49

Re: fail to create player

Post by Gms0012 » 06 Jun 2015, 13:31

u use a trigger, right?!
Image


Kristo84
Beta Tester
 
Posts: 13
Joined: 27 Apr 2015, 21:14

Re: fail to create player

Post by Kristo84 » 06 Jun 2015, 13:43

Gms0012 wrote:u use a trigger, right?!


Yes two triggers


Gms0012
 
Posts: 166
Joined: 23 Feb 2015, 08:49

Re: fail to create player

Post by Gms0012 » 06 Jun 2015, 17:26

ok
this is the problem
because i am pretty sure that u use

f_insertNewItemInventory

they changed the parameter.. and so the sql doent not work

check the parameter and fix it.
Image


Kristo84
Beta Tester
 
Posts: 13
Joined: 27 Apr 2015, 21:14

Re: fail to create player

Post by Kristo84 » 06 Jun 2015, 18:28

Gms0012 wrote:ok
this is the problem
because i am pretty sure that u use

f_insertNewItemInventory

they changed the parameter.. and so the sql doent not work

check the parameter and fix it.


the parameter or fuction didn´t change, is there:

Image


Gms0012
 
Posts: 166
Joined: 23 Feb 2015, 08:49

Re: fail to create player

Post by Gms0012 » 06 Jun 2015, 19:49

it changed!!!!!!!!!!!!!!!!!!!!!!!!!

earlier u needed to use this

f_insertNewItemInventory(@backpack, 555, 50, 1, 50000, 50000, '', 0,0,0,0, 0,0);



now you need to use this(look to the number of needed parameter!)

f_insertNewItemInventory(@backpack, 1060, 50, 100,50000 , 50000, '','' ); /* silver coins */

if u dont believe me, deactivate your trigger!!!!!!!!!!!
Image


Kristo84
Beta Tester
 
Posts: 13
Joined: 27 Apr 2015, 21:14

Re: fail to create player

Post by Kristo84 » 06 Jun 2015, 20:25

For example:

Code: Select all
CREATE TRIGGER `character_after_insert` AFTER INSERT ON `character` FOR EACH ROW BEGIN
SET @temp = f_insertNewItemInventory(NEW.RootContainerID, 1060, 100, 50, 50000, 50000,'',''); /* Plata */
SET @temp = f_insertNewItemInventory(NEW.RootContainerID, 40, 100, 1, 50000, 50000,'',''); /* shovel */
SET @temp = f_insertNewItemInventory(NEW.RootContainerID, 974, 50, 5, 50000, 50000,'',''); /* 5x q50 Apple Buns */
SET @temp = f_insertNewItemInventory(NEW.RootContainerID, 1059, 100, 100, 50000, 50000,'',''); /* Cobre*/
SET @temp = f_insertNewItemInventory(NEW.RootContainerID, 1061, 100, 25, 50000, 50000,'',''); /* Oro */
END


this code could be correct? for new patch

User avatar
HolyCrusader
Beta Tester
 
Posts: 251
Joined: 24 Nov 2014, 15:47

Re: fail to create player

Post by HolyCrusader » 06 Jun 2015, 21:12

Gms0012 wrote:it changed!!!!!!!!!!!!!!!!!!!!!!!!!

earlier u needed to use this

f_insertNewItemInventory(@backpack, 555, 50, 1, 50000, 50000, '', 0,0,0,0, 0,0);



now you need to use this(look to the number of needed parameter!)

f_insertNewItemInventory(@backpack, 1060, 50, 100,50000 , 50000, '','' ); /* silver coins */

if u dont believe me, deactivate your trigger!!!!!!!!!!!

Thank you for this

User avatar
Azzerhoden
Alpha Tester
 
Posts: 1621
Joined: 08 May 2014, 17:44

Re: fail to create player

Post by Azzerhoden » 15 Jun 2015, 01:17

Gms0012 wrote:it changed!!!!!!!!!!!!!!!!!!!!!!!!!

earlier u needed to use this

f_insertNewItemInventory(@backpack, 555, 50, 1, 50000, 50000, '', 0,0,0,0, 0,0);



now you need to use this(look to the number of needed parameter!)

f_insertNewItemInventory(@backpack, 1060, 50, 100,50000 , 50000, '','' ); /* silver coins */

if u dont believe me, deactivate your trigger!!!!!!!!!!!


Issue is in the trigger, but that code is incorrect.

UPDATED: The double single quotes should be replaced with the text NULL. The call should read:
f_insertNewItemInventory(@backpack, 1060, 50, 100,50000 , 50000, NULL,NULL ); /* silver coins */
| - Alpha Tester and Zealous Believer
Image

Kingdom of Hyperion founding Duchy - A practical RP Community est. 1999 - Apply Today!

Return to Game mods