[Include] [INC] ErroR's new generation user system [BUGS FIXES! V1.3!]
#21

Quote:
Originally Posted by ((Lorenc))
Finally its out! I might use it for SAMP-ARENA and add a admin script on to it..
Quote:
Originally Posted by Kenny_R
Good job man!:

Aferin lo
Quote:
Originally Posted by SloProKiller
Awesome! Will be using this
Quote:
Originally Posted by park4bmx
Really Really nice
Thanks
Reply
#22

awesome work
Reply
#23

thanks

Please report bugs.

First message updated.
Reply
#24

I want to know your suggestions and complaints.
Reply
#25

Hey ErroR, could you make blank script with working registratrion, because I don't understand how to do all that stuff. Yours installation is very small, no instructions. Sorry for bad english.
Reply
#26

Quote:
Originally Posted by Dirkon
Hey ErroR, could you make blank script with working registratrion, because I don't understand how to do all that stuff. Yours installation is very small, no instructions. Sorry for bad english.
SetupUserSystem function:

Mode = If you set to 0, gui will not work. If you set to 1, gui will appear before spawn, 2= gui will appear after spawn

Default User Group = Default user group while players was registering. I suggest to type 0.

Min pass size = I suggest to type 4.

Failed login threshold = This option sets invalid login limit. I suggest to type 3.

SetupStatsSavingSystem function:

On‌PlayerUpdate = If you set true, stats will be saved automaticly in onplayerupdate callback.
On‌PlayerDisconnect = If you set true, stats will be saved automaticly in onplayerdisconnect callback.
On‌PlayerStateChange = If you set true, stats will be saved automaticly in onplayerstatechage callback.
Timer Interval = If you enter a interval, stats will be saved automaticly with timer. If you set to 0, timer will not work.

[TUT]How to add additional entries in ErroR's registration system: http://forum.sa-mp.com/index.php?topic=171614.0
Reply
#27

@ErroR,
It would be even better if u post a Simple GM with this system Can u please ....
Reply
#28

Hey, I did it like that:
Код:
public OnGameModeInit()
{
	SetupUserSystem(1, 0, 4, 150, true, true, true, true, true, true, 3); //modes: 0:gui system off 1:gui before spawn, 2:gui after spawn
	SetupStatsSavingSystem(false,false,false,150);

	
	SetGameModeText("Blank Script");
	AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
	return 1;
}
And I got error like this:
Код:
C:\Documents and Settings\Patackas\Desktop\server\pawno\include\usersystem.inc(1072) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
And when I connect to server it's shows dialog: Login/register. when I press one of them server crashes.
what's wrong?
Reply
#29

Quote:
Originally Posted by Dirkon
Hey, I did it like that:
Код:
public OnGameModeInit()
{
	SetupUserSystem(1, 0, 4, 150, true, true, true, true, true, true, 3); //modes: 0:gui system off 1:gui before spawn, 2:gui after spawn
	SetupStatsSavingSystem(false,false,false,150);

	
	SetGameModeText("Blank Script");
	AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
	return 1;
}
And I got error like this:
Код:
C:\Documents and Settings\Patackas\Desktop\server\pawno\include\usersystem.inc(1072) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
And when I connect to server it's shows dialog: Login/register. when I press one of them server crashes.
what's wrong?
That isn't an error, it's warning, learn to read carefully.
It has to do with your GM, something went wrong...
Reply
#30

Quote:
Originally Posted by PlayON
Quote:
Originally Posted by Dirkon
Hey, I did it like that:
Код:
public OnGameModeInit()
{
	SetupUserSystem(1, 0, 4, 150, true, true, true, true, true, true, 3); //modes: 0:gui system off 1:gui before spawn, 2:gui after spawn
	SetupStatsSavingSystem(false,false,false,150);

	
	SetGameModeText("Blank Script");
	AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
	return 1;
}
And I got error like this:
Код:
C:\Documents and Settings\Patackas\Desktop\server\pawno\include\usersystem.inc(1072) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
And when I connect to server it's shows dialog: Login/register. when I press one of them server crashes.
what's wrong?
That isn't an error, it's warning, learn to read carefully.
It has to do with your GM, something went wrong...
So how to fix it?
Reply
#31

When you gonna fix that bug?
Reply
#32

I cannot see the download link.
Reply
#33

Very nice!
Reply
#34

Quote:
Originally Posted by newarvuti
I cannot see the download link.
Same here :\
Reply
#35

http://solidfiles.com/d/QpjI does not work in mozilla ...
Reply
#36

Worked for me, I use FireFox.
Reply
#37

Quote:
Originally Posted by Dirkon
I have another problem now. when I press login or register - nothing happens, just dialog gones. And server go down. but it don't crash game, or doesn't say: Server closed connection.
Same :\
Reply
#38

1.3 released.

All login bugs and OnDialogResponse bugs fixed.

Team saving added. Please update your SetupUserSystem function!

Test gamemode removed.
Reply
#39

Extras: /changepass and /logout command

pawn Код:
if(!strcmp(cmdtext, "/logout", true))
    {
        Logout(playerid,true);
        SendClientMessage(playerid, 0xFFFFFFFF, "Logged out.");
        return 1;
    }

    if(!strcmp(cmdtext, "/changepass", true))
    {
        new tmp[128];
        tmp = strtok(cmdtext, idx);
        if(IsPlayerLogged(playerid))
        {
            if(strlen(tmp) == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "USAGE: /changepass [NEW PASSWORD]");
            ChangeMemberPassword(GetPlayerUsername(playerid),tmp);
            SendClientMessage(playerid, 0xFFFFFFFF, "Password changed. Now you can /logout and login with new password.");
        }
        else
        {
          SendClientMessage(playerid, 0xFFFFFFFF, "To use this command, you should be logged.");
        }
        return 1;
 }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)