SA-MP Forums

Go Back   SA-MP Forums > SA-MP Server > Server Support

Reply
 
Thread Tools Display Modes
Old 13/06/2015, 02:26 AM   #1
fonia5
Gangsta
 
fonia5's Avatar
 
Join Date: Jun 2014
Location: United Kingdom
Posts: 741
Reputation: 116
Default Request Connection cookie?

I have no idea why am having this but let me start.

I am localhosting my own server to test out my script etc, but whenever i connect to my own server i don't see any register/login box what should show correctly on the screen connection however, i checked the server console and i seen this (IP *** *** * * Request Connection Cooke.) any idea on fixing this issue?

Before asking i am connected to the database.



Code:
public OnGameModeInit()
{
    Connection = mysql_connect(Host, User, DB, Password);
    mysql_query(Connection, "CREATE TABLE IF NOT EXISTS `Account`(`ID`int AUTO_INCREMENT PRIMARY KEY, `Name` varchar(24) NOT NULL, `Password` varchar(129) NOT NULL, `Email` varchar(129) NOT NULL, `Admin` int(11) NOT NULL, `Sex` int(11) NOT NULL, `Age` int(11) NOT NULL, `Score` int(11) NOT NULL, `Money` int(11) NOT NULL, `Skin` int(11) NOT NULL, `Kill` int(11) NOT NULL, `Death` int(11) NOT NULL)", false);
    if(mysql_errno(Connection) != 0)
	{
		print("(MYSQL DATABASE) Failed to connected check the logs!!");
		}
			else
		{
        print("(MYSQL DATABASE) connected successful.");
	}
	

	LoadTextDraw();
	DisableInteriorEnterExits();
	ManualVehicleEngineAndLights();
        SetNameTagDrawDistance(30.0);
        EnableStuntBonusForAll(0);
	SetGameModeText("RCRP");
	
	AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
	return 1;
}
fonia5 is offline   Reply With Quote
Old 13/06/2015, 05:12 AM   #2
Jake187
Gangsta
 
Jake187's Avatar
 
Join Date: Oct 2011
Location: Ottawa, Canada.
Posts: 616
Reputation: 58
Default Re: Request Connection cookie?

I had the same type of problem using the static version of the mySQL plugin so if you're under linux OS I'd suggest trying non-static. Anyways if you are connected to the server than it is not the cookie system as it has already let you onto the server therefore it has done its job.
Jake187 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Connection Cookie Cookland Scripting Help 6 27/01/2016 06:05 PM
Connection Cookie Cookland Server Support 14 12/06/2015 06:19 AM
[Ajuda] connection cookie RDM Português/Portuguese 4 27/05/2015 05:02 PM
[connection] IP requests a connection cookie Beckett Server Support 14 24/05/2015 06:17 AM


All times are GMT. The time now is 03:19 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.