OnPlayerLogin / Register ] +rep ]
#1

Guys i just made a Login and Register system using Dialog
now i dont want them to be put in OnDialogResponse and Etc..

i want to make a callback

OnPlayerLogin(playerid,password[])
{
}

and

OnPlayerRegister(playerid,passwoerd[])
{
}

now i put my login script on OnPlayerLogin

but nothing happend

what should i do??
Reply
#2

What are you really trying to do?, You want them to function after Player Register/Login?
Reply
#3

i want that the Dialog Id of Login
will respond OnPlayerLogin
Reply
#4

Hello RicaNiel,
In my script, I've did this. I've provided an example below inside a snippet for you.
pawn Код:
switch(dialogid)
    {      
        case 1337:
        {
            if(!response) return Kick(playerid);
            return OnPlayerLogin(playerid, inputtext);
        }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)