[Tutorial] How to make a register system ( Dialogs, SQLite and rBits )
#61

Best register/login system tutorial, thanks!
Reply
#62

Lorenc_, I have a question.

For example, I am using this code with SQLite. But, I am using MySQL for all the other savings of the scripts. Do I have to convert the whole script or will it work well? I've never seen SQLite & MySQL together
Reply
#63

Help me
Command pls
/makeadmin id [lvl]
confused ...
Reply
#64

Help me commands

Bit16: g_AdminLevel <MAX_PLAYERS>

/makeadmin [id] [lvl]

if(!strcmp(cmd, "/makeadmin", true))
Reply
#65

Nice, well done.
Reply
#66

Very Nice Well done,
Reply
#67

Quote:
Originally Posted by proSeryoga
View Post
Help me commands

Bit16: g_AdminLevel <MAX_PLAYERS>

/makeadmin [id] [lvl]

if(!strcmp(cmd, "/makeadmin", true))
HELP ME
Reply
#68

Code:
    if(!strcmp(cmd, "/makeadmin", true))
    {
        //if(Bit16_Get(g_AdminLevel, playerid) < 1) return true;
        new giveplayerid, id;
        if (sscanf(params,"ui", giveplayerid, id)) return SendClientMessage(playerid, 0xFF0000AA ," /makeadmin [playerid] [lvl]");
        if( id < 0 || id > 5 ) return SendClientMessage( playerid, -1, "0 - 5 );
        if( Bit16_Get( g_AdminLevel, giveplayerid ) == id ) return SendClientMessage( playerid, -1, "Already this level" );
        {
		    Bit16_Set(g_AdminLevel, giveplayerid, id);
		}
        return true;
    }
Reply
#69

Excellent tutorial - very informative.

I only have one gripe, and maybe this was answered already but I haven't read all of the posts on this thread, and it has to do with this code:

pawn Code:
new Field[ 20 ]; //Creating a field to retrieve the data
                // get the field "SCORE"'s value and insert it to Field itself.
                db_get_field_assoc(Result, "SCORE", Field, 30);
Why would you create a new string of the size 20, and then when you fill that string with data you allow the max size of the data you are retrieving to be 30. Not a big deal but just doesn't make much sense.
Reply
#70

Nice TUT its Really Nice Registration Textdraw i liked it

Thank You
Reply
#71

Nice one! Thank you!
Reply
#72

Thank you so much man , This is the best one + Rep.
Reply
#73

what is the db_escape function for?
Reply
#74

i have used ur scripts its awsome but how to store our life and guns to in script pls /pm me
sampserver106@gmail.com
Reply
#75

What's a good thing about SQLite? Is it better than Y_INI?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)