Dialog crashing server?
#7

Try this:
pawn Код:
public OnPlayerConnect(playerid)
{
    new str[128], secondstring[128], accname[128];

    format(secondstring, sizeof(secondstring), "Map By:"AUTHOR" || Vehicles %d|", VEHICLE_COUNT);
    SendClientMessage(playerid, COLOR_WHITE, secondstring);
    printf("second string message");

    format(accname, sizeof(accname), "FILES/ACCOUNTS/%s.ini", GetName(playerid));
    printf("Accname formating");

    if(!fexist(accname))
    {
        printf("Checking if there's a file for defined player");

        format(str, sizeof(str), "{FFFFFF}Hello. {FBFF00}%s \n\n{FFFFFF}Register!", GetName(playerid));
        printf("register dialog formating");
        ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, "Register", str, "Register", "Quit");
        printf("Showed dialog");
    }

    return 1;
}
Reply


Messages In This Thread
Dialog crashing server? - by sekol - 01.11.2011, 14:48
Re: Dialog crashing server? - by IstuntmanI - 01.11.2011, 15:01
Re: Dialog crashing server? - by sekol - 01.11.2011, 15:07
Re: Dialog crashing server? - by sekol - 01.11.2011, 19:14
Re: Dialog crashing server? - by sekol - 02.11.2011, 11:50
Re: Dialog crashing server? - by sekol - 04.11.2011, 14:55
Re: Dialog crashing server? - by PowerPC603 - 10.11.2011, 21:22
Re: Dialog crashing server? - by sekol - 13.11.2011, 12:28
Re: Dialog crashing server? - by BlackSA - 13.11.2011, 12:33
Re: Dialog crashing server? - by sekol - 13.11.2011, 12:43

Forum Jump:


Users browsing this thread: 1 Guest(s)