Register System Help
#1

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...
Reply
#2

pawn Код:
SendClientMessage
?
Reply
#3

Ok but how to make it ??
Reply
#4

https://sampwiki.blast.hk/wiki/SendClientMessage
Reply
#5

but i want it in dialog ??
Reply
#6

Quote:
Originally Posted by IvancheBG
Посмотреть сообщение
but i want it in dialog ??
Use this https://sampwiki.blast.hk/wiki/ShowPlayerDialog
Reply
#7

i dont get it ..
Reply
#8

Quote:
Originally Posted by IvancheBG
Посмотреть сообщение
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?



Post your script please, so we can help you.
Reply
#9

Just do it as in the example.

Dialog Styles: https://sampwiki.blast.hk/wiki/Dialog_Styles

When you make:

pawn Код:
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:

pawn Код:
if(dialogid==1)
{
   if(response) // The first button (Login)
   {
      // Your script here
   }
   if(!response) // The second button (Cancel)
   {
      // Your script here
   }
Reply
#10

OMG it simply go to OnDialogResponse then you will see something like

pawn Код:
if(dialogid == dialogid123) //Register or Login System Dialog id
then put it there
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)