1error command problem
#5

Quote:
Originally Posted by deather
Посмотреть сообщение
You cannot modify predefined function headers simply because you get errors. When you get errors you have to blame yourself and try to correct your code rather than correcting the predefined ones.

And now for the error:
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{

  if (strcmp("/register", cmdtext, true, 10) == 0)
	{
 	if (PLAYERLIST_authed[playerid]) return SystemMsg(playerid,"{F81414}Your Already Registered!");
    if (udb_Exists(PlayerName(playerid))) return SystemMsg(playerid,"{F81414}Your Registered But Not Logged In Type /login [password]");
    if (strlen(cmdtext)==0) return SystemMsg(playerid,"{F81414}USAGE: /register [password]");
    if (udb_Create(PlayerName(playerid),cmdtext))
	{
	SystemMsg(playerid,"{6EF83C}Account Created! Now Use /login [password] To Login.");
	}
	}
  return 1;
}
ok sorry im kinda new thanks

also just tested you can register without a pass like this /register

and it registers anyway 2 fix?
Reply


Messages In This Thread
1error command problem - by Lethaal - 23.02.2011, 14:00
Re: 1error command problem - by deather - 23.02.2011, 14:31
Re: 1error command problem - by Lethaal - 23.02.2011, 14:36
Re: 1error command problem - by deather - 23.02.2011, 14:40
Re: 1error command problem - by Lethaal - 23.02.2011, 14:46
Re: 1error command problem - by deather - 23.02.2011, 14:51
Re: 1error command problem - by Lethaal - 23.02.2011, 14:54

Forum Jump:


Users browsing this thread: 1 Guest(s)