Hello,
I've got a little Problem on creating a char via Stored Procedure...
Here's the way I did on my server:
1.Step:
Hexing DBserver:
Search:
INSERT INTO Player ( [UID], [Name], [Class], [Strength], Health, Intelligence, Wisdom, Dexterity, [CurHP], [CurMP], [Map], [X], [Y], [Z], [Face], [Hair]) VALUES ( %d, '%s', %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d)
overwrite with:
EXEC CreatePlayer %d,%s,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d
NULLOUT rest.
2. Step:
Creating new Stored Procedure... Using MSSQL 2000
CREATE PROCEDURE [dbo].[CreatePlayer]
@uid int,
@admin tinyint,
@name varchar(14), --Maybe something in here, because my maxlength of charname is 8?
@class tinyint,
@strength tinyint,
@health tinyint,
@intelligence tinyint,
@wisdom tinyint,
@dexterity tinyint,
@curhp smallint,
@curmp smallint,
@map tinyint,
@x int,
@y int,
@z int,
@face tinyint,
@hair tinyint
AS
INSERT INTO Player ( [UID], [Admin], [Name], [Class], [Strength], Health, Intelligence, Wisdom, Dexterity, [CurHP], [CurMP], [Map], [X], [Y], [Z], [Face], [Hair])
VALUES ( @uid, 8,@name,@class,@strength, @health,@intelligence,@wisdom, @dexterity,@curhp,@curmp, 0, 256916, 248809, 17447, @face, @hair)
GO
Now, when i start server and want to create a new Player, that message appears: "Problem occurred on creating your character. -NA_ERROR."
Can anyone help me please??
posi90


Reply With Quote![Stored Procedure [dbo].[CreatePlayer]](http://ragezone.com/hyper728.png)

