SA-MP Forums Archive
Register System Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Register System Help (/showthread.php?tid=312174)



Register System Help - IvancheBG - 20.01.2012

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...


Re: Register System Help - Min - 20.01.2012

pawn Код:
SendClientMessage
?


Re: Register System Help - IvancheBG - 20.01.2012

Ok but how to make it ??


Re: Register System Help - Min - 20.01.2012

https://sampwiki.blast.hk/wiki/SendClientMessage


Re: Register System Help - IvancheBG - 20.01.2012

but i want it in dialog ??


Re: Register System Help - N0FeaR - 20.01.2012

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


Re: Register System Help - IvancheBG - 20.01.2012

i dont get it ..


Re: Register System Help - Sinner - 20.01.2012

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.


Re: Register System Help - Unte99 - 20.01.2012

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
   }



Re: Register System Help - MasterJoker - 20.01.2012

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