PDA

View Full Version : Register System Help


IvancheBG
20/01/2012, 10:31 AM
Xii I made a reg system but i dont know how to make when i register to says You have registered and when i login to says You Have Logged In. How to make it ??

In a Dialog...

Min
20/01/2012, 10:36 AM
SendClientMessage

?

IvancheBG
20/01/2012, 10:54 AM
Ok but how to make it ??

Min
20/01/2012, 11:00 AM
http://wiki.sa-mp.com/wiki/SendClientMessage

IvancheBG
20/01/2012, 11:00 AM
but i want it in dialog ??

N0FeaR
20/01/2012, 11:04 AM
but i want it in dialog ??

Use this http://wiki.sa-mp.com/wiki/ShowPlayerDialog

IvancheBG
20/01/2012, 11:21 AM
i dont get it .. :( :(

Sinner
20/01/2012, 11:28 AM
i dont get it .. :( :(

You made a register/login system, which probably uses "complex" file writing or database systems, but you don't know how to add a message?

:confused:

Post your script please, so we can help you.

Unte99
20/01/2012, 11:29 AM
Just do it as in the example.

Dialog Styles: http://wiki.sa-mp.com/wiki/Dialog_Styles

When you make:


ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Log in","Enter your password to login:","Login","Cancel");


Then you have to make the script, that does when you press one of the buttons (Login or Cancel).

Lets say:


if(dialogid==1)
{
if(response) // The first button (Login)
{
// Your script here
}
if(!response) // The second button (Cancel)
{
// Your script here
}

MasterJoker
20/01/2012, 11:30 AM
OMG it simply go to OnDialogResponse then you will see something like


if(dialogid == dialogid123) //Register or Login System Dialog id


then put it there