Help with Login system
#1

My gamemode has a Login system where you can create multiple characters one one account. Basically, when I try and register it takes me to the ( << >> SPAWN ) screen, then to the login page and after doesn't return me to the character selection screen like it should..

https://www.youtube.com/watch?v=4TWiajHFrR4&feature <-- Example

http://pastebin.com/a4sgY5Pw <-- Gamemode

I need someone to look over my script and tell me what is wrong. I've been trying to fix this for about a week, I can't spot the error.

Thank you.
Reply
#2

Bump, help please
Reply
#3

Is anyone able to help?
Reply
#4

Do you want the skin selection? If yes, just add this line on OnGameModeInit callback:
pawn Код:
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
Reply
#5

No.. Watch the video.

I want them to, resgister, login, create a character, spawn with a certain skin.
Reply
#6

You mode have alot bug with mysql, i just fix a litte bit

http://pastebin.com/JvnBHY9w
Reply
#7

Still does the same thing. PLEASE watch the video as a reference.
Thank you.
Reply
#8

http://pastebin.com/GJhyVavP

try this, login and tell me what's print in server console
Reply
#9

pawn Код:
SA-MP Dedicated Server
----------------------
v0.3z, (C)2005-2014 SA-MP Team

[19:47:42] filterscripts = ""  (string)
[19:47:42]
[19:47:42] Server Plugins
[19:47:42] --------------
[19:47:42]  Loading plugin: streamer.dll
[19:47:42]

*** Streamer Plugin v2.7.2 by Incognito loaded ***

[19:47:42]   Loaded.
[19:47:42]  Loading plugin: sscanf.dll
[19:47:42]

[19:47:42]  ===============================

[19:47:42]       sscanf plugin loaded.    

[19:47:42]          Version:  2.8.1        

[19:47:42]    (c) 2012 Alex "******" Cole  

[19:47:42]  ===============================

[19:47:42]   Loaded.
[19:47:42]  Loading plugin: mysql.dll
[19:47:42]  >> plugin.mysql: R39 successfully loaded.
[19:47:42]   Loaded.
[19:47:42]  Loading plugin: crashdetect.dll
[19:47:42]   CrashDetect v4.13.1 is OK.
[19:47:42]   Loaded.
[19:47:42]  Loading plugin: nativechecker.dll
[19:47:42]   Loaded.
[19:47:42]  Loaded 5 plugins.

[19:47:42]
[19:47:42] Filterscripts
[19:47:42] ---------------
[19:47:42]   Loaded 0 filterscripts.

[19:47:42]  Blank Gamemode by your name here
[19:47:42] Number of vehicle models: 0
[19:48:06] Incoming connection: 127.0.0.1:51764
[19:48:07] [join] AMouldyLemon has joined the server (0:127.0.0.1)
[19:48:10] Accounts doesn't exits !
[19:48:12] [part] AMouldyLemon has left the server (0:1)
Still does the same error
Reply
#10

[19:48:10] Accounts doesn't exits !

Problem is : After register ( MasterAccountRegister ), account didn't insert to database, so when they login server will return this line ( [19:48:10] Accounts doesn't exits ! )

So this is query / database problem, not the script
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)