Server not saving players accounts?
#1

Hello. I'd like to find out why my server isnt saving accounts, I am using MySQL with KINGJ. And using a unique script..
Can anyone help?
Reply
#2

Check the logs, it could probably give you the reason.
Reply
#3

maybe register and login problem ?
Reply
#4

hmm..

Do you got Scriptfile ?

Or you got working register and login system ?
Reply
#5

Quote:
Originally Posted by SwatOwner
Посмотреть сообщение
hmm..

Do you got Scriptfile ?

Or you got working register and login system ?
Mysql.. Scriptfiles isn't needed then.
Reply
#6

Is it working well? I don't think so.....
See if it is saving all stats/accounts in the OnPlayerRegister and OnPlayerDisconnect.
Reply
#7

Well this unique script, is turning out great for you bud.
Reply
#8

Quote:
Originally Posted by Steven82
Посмотреть сообщение
Well this unique script, is turning out great for you bud.
Well. It is fine, apart from this tiny problem now.
Reply
#9

Ok. I went to OnPlayerDisconnect. And I've copied and pasted the script...

Код:
public OnPlayerDisconnect(playerid) {
	KillTimer(TimerData[CharacterTimer][playerid]);
	if(Harvesting2[playerid] == true) {
		DestroyObject(CurrentHarvestPlant[playerid]);
	}
	if(IsPlayerLoggedIn(playerid)) {
    	SaveAccount(playerid);
		format(string, sizeof(string), "[Local]: %s has left the server.",GetUserName(playerid));
		SendLocalMessage(playerid, string, 20.0, COLOR_WHITE, COLOR_WHITE);
		DestroyVehicle(MyASpawnedV[playerid]);
	}
	return 1;
}
Reply
#10

Anything wrong there?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)