Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 23:50

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Lol what is this ?

Discussion on Lol what is this ? within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
Minotaurr's Avatar
 
elite*gold: 0
Join Date: Nov 2010
Posts: 203
Received Thanks: 15
Lol what is this ?

Hey....

If I want to put in the code for the web..... this code:

Code:
[COLOR="Green"]USE [ACCOUNT_DBF]
GO
/****** Object:  StoredProcedure [dbo].[webCreateAcc]    Script Date: 11/14/2010 13:35:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

ALTER PROCEDURE [dbo].[webCreateAcc] 
	@account 	VARCHAR(15),
	@password 	VARCHAR(36),
	@email		VARCHAR(120)

AS

SET NOCOUNT  ON

DECLARE @DateActivated AS CHAR(8)

IF NOT EXISTS (SELECT account FROM ACCOUNT_TBL WHERE account = @account) BEGIN
	INSERT INTO ACCOUNT_TBL (account, [password], id_no1, id_no2, isuse, member, realname, cash) 
		VALUES (@account, @password, @password, @password, 'T', 'A', 'F', '0')

	SET @DateActivated =  CONVERT(CHAR(8), GETDATE()-1, 112 ) --Is the date today - 1
	--UPDATE ACCOUNT_TBL_DETAIL SET BlockTime = @DateYesterday WHERE account = @userid		
	--INSERT INTO ACCOUNT_TBL_DETAIL (account, gamecode, tester, m_chLoginAuthority, regdate, BlockTime, EndTime, WebTime, isuse)
	--	VALUES (@account, 'A000', '2', 'F', GETDATE(), '20990101', '20990101', '20050101', 'O')

	INSERT INTO ACCOUNT_TBL_DETAIL (account, gamecode, tester, m_chLoginAuthority, regdate, BlockTime, EndTime, WebTime, isuse, email)
		VALUES (@account, 'A000', '2', 'F', GETDATE(), @DateActivated, '20990101', '20050101', 'O', @email)

END
--ELSE BEGIN
--print '->Account exists = ' 
--print @account 
--END[/COLOR]
Then Ill get the errror:

Msg 208, Level 16, State 6, Procedure webCreateAcc, Line 22
Invalid object name 'dbo.webCreateAcc'.


Does someone can help me ??
Is this the right code ?
Or can someone give me a working code ?

Thx
Dope
Minotaurr is offline  
Old 11/24/2010, 12:52   #2
 
Crown3r's Avatar
 
elite*gold: 5
Join Date: Nov 2010
Posts: 743
Received Thanks: 141
Use this WebCreateAcc.sql

Crown3r is offline  
Thanks
1 User
Old 11/24/2010, 13:08   #3
 
Minotaurr's Avatar
 
elite*gold: 0
Join Date: Nov 2010
Posts: 203
Received Thanks: 15
Ah thx !!
Minotaurr is offline  
Old 11/24/2010, 13:20   #4
 
Minotaurr's Avatar
 
elite*gold: 0
Join Date: Nov 2010
Posts: 203
Received Thanks: 15
New error......
When I put register...
Ill see this:

Code:
[COLOR="Red"]Warning: mssql_execute() [function.mssql-execute]: message: Procedure or function 'webCreateAcc' expects parameter '@email', which was not supplied. (severity 16) in E:\FLYFF PS FILES !!!\Xampp\htdocs\register\register.php on line 39

Warning: mssql_execute() [function.mssql-execute]: stored procedure execution failed in E:\FLYFF PS FILES !!!\Xampp\htdocs\register\register.php on line 39
Something is wrong on the execution[/COLOR]
Minotaurr is offline  
Old 11/24/2010, 13:30   #5
 
Crown3r's Avatar
 
elite*gold: 5
Join Date: Nov 2010
Posts: 743
Received Thanks: 141
Do you have to at xampp apache and Mysql?
Crown3r is offline  
Old 11/24/2010, 13:50   #6
 
Minotaurr's Avatar
 
elite*gold: 0
Join Date: Nov 2010
Posts: 203
Received Thanks: 15
I already fixed it, thanks for help Crown3r, your the best e*pvper helper !!

Ciao

#closerequest
Minotaurr is offline  
Reply




All times are GMT +1. The time now is 23:50.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.