Dialog Line Problem
#1

I maked a new register/login system and now when player connect and he need to show a dialog to login or register and when player go to "Accept" we going to login dialog and the line, [/code]Vi preostanuvaat uste %d obidi[/code] was not show :/ how to make to show that line ? Help rep +

pawn Код:
new loginstring[1000];
                    new loginname[64];
                    GetPlayerName(playerid,loginname,sizeof(loginname));
                    IzbrisiChat(playerid, 100);
                    format(loginstring, sizeof(loginstring), "\n{FFFF7B}Dobrodojdovte na BalkanEvolution RolePlay Gaming Serverot !\n\n{7b79ff}___________________________\n\n");
                    strcat(loginstring, "{FFFFFF}Vnesete ja vasata lozinka za da se najavite.\n\n{CE1C18}Predupreduvanje:{FFFFFF} Poradi bezbednost na vasiot\nprofil lozinkata ne ja kazuvajte na nikogo.\n\n");
                    strcat(loginstring, "{003CFF}Vi preostanuvaat uste %d obidi !", LoginObidi[playerid]);
                    ShowPlayerDialog(playerid, 12347, DIALOG_STYLE_PASSWORD, "Profil",loginstring, "Najavi se","Otkazi");
                    LoginObidi[playerid] --;
                    if(LoginObidi[playerid] == 0)
                    {
                        Kick(playerid);
                    }
Reply
#2

hi,

try it like:

pawn Код:
new string[320],//Increase if needed...
    loginname[24];//decrease string as max. player name cant exceed 24 cells in samp.
GetPlayerName(playerid,loginname,24);
IzbrisiChat(playerid, 100);
format(string, sizeof(string), "%s\n ...text...",string);//your text
format(string, sizeof(string), "%s\n ...text...",string);
format(string, sizeof(string), "%s\n ...text...",string);
format(string, sizeof(string), "%s\n{003CFF}Vi preostanuvaat uste %d obidi !",string,LoginObidi[playerid]);//last line that is not working
ShowPlayerDialog(playerid, 12347, DIALOG_STYLE_PASSWORD, "Profil",string, "Najavi se","Otkazi");
LoginObidi[playerid] --;
if(LoginObidi[playerid] == 0)
{
    Kick(playerid);
}
Reply
#3

Thanks Bro <3

EDIT: repped
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)