What's Wrong In This Code
#1

Hello Guys I Want That When A Player Registers Succesfully It Shows That Player a Textdraw but the textdraw is shown along the register dialog i what it to be shows after the player type password of registration and hit register

here is my code What's wrong in it
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    switch( dialogid )
    {
        case DIALOG_REGISTER:
        {
            if (!response) return Kick(playerid);
            if(response)
            {
                if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, "Registering...","{FF0000}You have entered an invalid password.\n""Type your password below to register a new account.","Register","Quit");
				new INI:File = INI_Open(UserPath(playerid));
                INI_SetTag(File,"data");
                INI_WriteInt(File,"Password",udb_hash(inputtext));
                INI_WriteInt(File,"Cash",0);
                INI_WriteInt(File,"Admin",0);
                INI_WriteInt(File,"Kills",0);
                INI_WriteInt(File,"Deaths",0);
                INI_WriteInt(File,"WantedLevel",0);
                INI_WriteInt(File,"Vip",0);
                INI_WriteInt(File,"Score",0);
                INI_WriteInt(File,"Condoms",0);
                INI_WriteInt(File,"Banned",0);
                INI_WriteInt(File,"Jailed",0);
                INI_WriteInt(File,"Drugs",0);
                INI_WriteInt(File,"Nopm",0);
                INI_WriteInt(File,"Bank",0);
                INI_WriteInt(File,"Sausages",0);
                INI_WriteInt(File,"PassChange",0);
                INI_WriteInt(File,"Mute",0);
                INI_Close(File);
                INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
                TextDrawShowForPlayer(playerid,Textdraw1);
                TextDrawShowForPlayer(playerid,TB1);
			}
        }
Reply
#2

Are you able to show a screenshot?
Reply
#3

yes the textdraw is comming but i want it to be shown after succesfull registeration
Reply
#4

Got The Error
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)