[Include] Elegant Login / Register TextDraws
#7

Quote:
Originally Posted by Humza
View Post
Hello,


Isn't you using old MySQL version syntax in example? At least used new MySQL version in 2k17 Thread.


O.T: I didn't see any thing called "elegant" in this thread. But still it's not bad. Keep it up.
What does it matter which version I use in an EXAMPLE ? It's a snippet from my gamemode, which is using that MySQL version. Which version you use, or if you want to even use MySQL, is not my decision, it is completely yours.


If you've any suggestions regarding the Titel, let me know

Quote:
Originally Posted by Crayder
View Post
Not sure you understood me, I was complimenting the title.
Yeah, I understood you wrong. I thought you mean something like this: "Your release is good but it's not worth to be called elegant" Thanks Crayder.

Quote:
Originally Posted by Lordzy
View Post
There's no need of MAX_PLAYERS * 33 player-textdraws. Most of them which doesn't require any change can be a single global textdraw. You might also want to rename your "UpdateRealTime" to something like "IncludePrefix_UpdateRealTime" to prevent collisions since such a name can be commonly used.


You can also make this include to be more user-friendly by adding a simple callback to handle login/register button click responses.
pawn Code:
//something like:
public OnLoginRegisterTDClick(playerid, click_id) {

    if(click_id == BUTTON_1) //or perhaps BUTTON_LOGIN or BUTTON_REGISTER?
    {
        //codes.
    }
    return 1;
}


The design looks quite good, I'd consider the one with light blue.
I'll maybe change the Textdraws which don't have to be PlayerTextDraws into normal Textdraws when I've time to, thanks for reminding me.


In my opinion the name "UpdateRealTime" is alright, but I'll change it in a few minutes, you might be right.


About the Callback, I've done that a while ago but I couldn't hook the Public, because the name was to long (I've received an error). I know, I could use y_hooks to fix that, but I don't want to. Are there any other ways, except y_hooks and changing something in a_samp ? Till that, I'll just add the public without the hooking.


Thanks for your comment, my favourite one is also blue
Reply


Messages In This Thread
Elegant Login / Register TextDraws - by JustMe.77 - 21.01.2017, 02:31
Re: Elegant Login / Register TextDraws - by Crayder - 21.01.2017, 02:47
Re: Elegant Login / Register TextDraws - by JustMe.77 - 21.01.2017, 02:54
Re: Elegant Login / Register TextDraws - by HydraHumza - 21.01.2017, 06:45
Re: Elegant Login / Register TextDraws - by Crayder - 21.01.2017, 06:45
Re: Elegant Login / Register TextDraws - by Lordzy - 21.01.2017, 07:01
Re: Elegant Login / Register TextDraws - by JustMe.77 - 21.01.2017, 20:51
Re: Elegant Login / Register TextDraws - by iLearner - 21.01.2017, 20:58
Re: Elegant Login / Register TextDraws - by JustMe.77 - 22.01.2017, 00:07
Re: Elegant Login / Register TextDraws - by JustMe.77 - 22.01.2017, 02:06
Re: Elegant Login / Register TextDraws - by GhostKiller123 - 22.01.2017, 12:52
Re: Elegant Login / Register TextDraws - by JustMe.77 - 22.01.2017, 21:39
Re: Elegant Login / Register TextDraws - by JustMe.77 - 04.04.2017, 16:43

Forum Jump:


Users browsing this thread: 1 Guest(s)