[UNSOLVED] Restart Bug?
#7

Quote:
Originally Posted by Kyosaur!!
Quote:
Originally Posted by Nameless303
Quote:
Originally Posted by Malice
By any chance do you have a server restarter running?
ServerFFS is hosting it, so I think yes...
Can you post you /register code (or any command that is crashing the server) ?
It's from CJ Admin Script, but I have the same bug when I tried Eazy Admin...
Код:
dcmd_register(playerid,params[])
{
	new name[90];
	GetPlayerName(playerid,name,sizeof(name));
  if (Stats[playerid][LoggedIn] == 1) return SendClientMessage(playerid,COLOR_RED,"You are logged in!");
  if (udb_Exists(name)) return SendClientMessage(playerid,COLOR_RED,"This account already exists, please login.");
  if (strlen(params) == 0) return SendClientMessage(playerid,COLOR_RED,"USAGE: /register <password>");
  if (udb_Create(name,params))
	{
  	new file[256],ip[100],tmp[260];
		GetPlayerName(playerid,name,sizeof(name)); format(file,sizeof(file),"%s.ini",udb_encode(name));
   	GetPlayerIp(playerid,ip,100);
	 	dini_Set(file,"ip",tmp);
		dUserSetINT(name).("AdminLvl",0);
  	dUserSetINT(name).("Money",0);
  	dUserSetINT(name).("Kills",0);
	  	dUserSetINT(name).("Deaths",0);
	  	Stats[playerid][LoggedIn] = 1;
	  SendClientMessage(playerid,COLOR_GREEN, "You have been registered and logged in.");
		PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
		return 1;
	}
  return 1;
}
Btw; The server is SAMP 0.3.
Reply


Messages In This Thread
[UNSOLVED] Restart Bug? - by Nameless303 - 04.11.2009, 23:34
Re: [UNSOLVED] Restart Bug? - by Kyosaur - 04.11.2009, 23:34
Re: [UNSOLVED] Restart Bug? - by Nameless303 - 04.11.2009, 23:36
Re: [UNSOLVED] Restart Bug? - by Malice - 04.11.2009, 23:39
Re: [UNSOLVED] Restart Bug? - by Nameless303 - 04.11.2009, 23:41
Re: [UNSOLVED] Restart Bug? - by Kyosaur - 05.11.2009, 00:07
Re: [UNSOLVED] Restart Bug? - by Nameless303 - 05.11.2009, 00:15
Re: [UNSOLVED] Restart Bug? - by GTA_Rules - 05.11.2009, 00:47
Re: [UNSOLVED] Restart Bug? - by Nameless303 - 05.11.2009, 01:27

Forum Jump:


Users browsing this thread: 2 Guest(s)