[HELP] Register
#1

hy guys, i have problem! When i conect on my server with new nick and i accept the server rules and need to show me this afther i accept rules, but it dosnt show, here is that:
Код:
  		        new registerbre1[] = "\t\t\t\t\t\t Dobrodosli na Balkan Troops StatePlay.\nZelimo vam dobrodoslicu!\nVase upisano ime je: %s\nNasa pravila servera cete prihvatiti tako sto cete upisati Vasu zeljenu lozinku.\nLozinka mora sadrzati vise od 6 slova/brojeva!";
  		        new registerbre2[] = "\n1."#COL_YELLOW"! Ne smete reklamirati, u suprotnom cete biti banovani.\n! Zabranjeno je bilo kakvo vredjanje\n! Zabranjeno je koriscenje cheatova ili nekih programa sa kojima sticete prednost nad drugim igracima\n! Zabranjeno je koristenje bugova ili bilo kakvih propusta.";
  		        new registerbre3[] = "\n\n"#COL_GREY"2012\nBalkan Troops StatePlay ©.";
  		        format(stringte, sizeof(stringte),"%s %s %s",registerbre1,registerbre2,registerbre3);
  		        ShowPlayerDialog(playerid,12345,DIALOG_STYLE_PASSWORD,"Registrovanje",regstring,"Registruj se","Izadji");
Reply
#2

You will have to add a SendClientMessage for the formatted string.
Reply
#3

Can you show your whole OnPlayerConnect and Register/Login Callback/code??
I have a feeling you are trying to show both dialogs under OnPlayerConnect, when you should be showing the login dialog after they have responded to the server rules.

Eg.
Instead of:
pawn Код:
public OnPlayerConnect(playerid)
{
    ShowPlayerDialog(playerid, DIALOG_RULES...
    ShowPlayerDialog(playerid, DIALOG_LOGIN...
    return 1;
}
You should have:
pawn Код:
//OnPlayerConnect
{
    ShowPlayerDialog(playerid, DIALOG_RULES...
    return 1;
}

public OnDialogResponse(...
{
    if(dialogid == DIALOG_RULES)
    {
        if(response) //Accepted
        {
            ShowPlayerDialog(playerid, DIALOG_LOGIN...
        }
        else return SendClientMessage...
    }
    return 0;
}
Reply
#4

wow, problem is in this:
Код:
ShowPlayerDialog(playerid,12345,DIALOG_STYLE_PASSWORD,"Registrovanje",regstring,"Registruj se","Izadji");
wrong string
Код:
regstring
But thanks anyway
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)