SA-MP Forums Archive
Help me with 1 more thing please :) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help me with 1 more thing please :) (/showthread.php?tid=482724)



Help me with 1 more thing please :) - Acres - 22.12.2013

guys if you dont mind i would like to know how to fix this last thing.

if your taking guns from guns list then it tells you that you have Registred in the server and everygun you take it tells you that i dont know whats the problem(NOTE: i got the reg system fixed that it wont kick me anymore)

SS: http://imgur.com/kI0DAz6

Code:
    if (dialogid ==	DIALOGREG)
    {
        new name[MAX_PLAYER_NAME], file[256]; //string[128];
        GetPlayerName(playerid, name, sizeof(name));
        format(file, sizeof(file), SERVER_USER_FILE, name);
        if(!response) return Kick(playerid);
        if (!strlen(inputtext)) return
        ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "You Havent been Registred", "Welcome, your not registered mate, input your registration pw below", "Register", "Leave");
        dini_Create(file);
        dini_IntSet(file, "Password", udb_hash(inputtext));
        dini_IntSet(file, "AdminLevel",PlayerInfo[playerid][pAdminLevel] = 0);
        dini_IntSet(file, "Money",PlayerInfo[playerid][pCash] = 500);
        dini_IntSet(file, "Score",PlayerInfo[playerid][pScore] = 0);
		SendClientMessage(playerid,COLOR_YELLOW,"[SYSTEM]: You have Registerd in World of Stunting Server! Welcome !");
        gPlayerLogged[playerid] = 1;
    }
Please help me if you can


Re: Help me with 1 more thing please :) - Konstantinos - 22.12.2013

I used to have some strange problems such as yours with the dialogs too. After using easydialog include by Emmet_, everything works great!

You can find the include here: https://sampforum.blast.hk/showthread.php?tid=475838


AW: Help me with 1 more thing please :) - Nero_3D - 22.12.2013

Switching to another system wont fix the problem... it will move it to somewhere else
In most cases it just seems that it is fixed due some circumstances, wont argue on that

Also this include isn't optimsed at all, additionally you can't beat a switch with CallLocalFunction, no offense