Jump to content
  • 0

PAROLA NEDETERMINATA


WiDuAlK

Question

Nick:WiDuAlK

Problema:Parola vreau sa fac sa o vad dar nu stiu cum incuiesc

Erori / warnings:nu am

Lini/script:[pawn]if(dialogid == 1) {

        new file[128], name[MAX_PLAYER_NAME], str[128];

        GetPlayerName(playerid, name, MAX_PLAYER_NAME);

        format(file, sizeof(file), ".../Users/%s.ini", name);

        if(response) {

            if(strlen(inputtext)) {

                dini_Create(file);

                dini_IntSet(file, "pw", num_hash(inputtext));

                dini_IntSet(file, "AdminLevel", PlayerInfo[playerid][AdminLevel]);

                dini_IntSet(file, "cash", PlayerInfo[playerid][cash]);

                dini_IntSet(file, "level", PlayerInfo[playerid][level]);

                format(str, sizeof(str), "You are registered as ~r~%s. Your password is ~r~%s. /changepass to change it", name, inputtext);

                SendClientMessage(playerid, COLOR_SYSTEM, str);

                PlayerInfo[playerid][level] = dini_Int(file, "level");

                PlayerInfo[playerid][cash] = dini_Int(file, "cash");

                PlayerInfo[playerid][AdminLevel] = dini_Int(file, "AdminLevel");

            }

        }

        else {

            Kick(playerid);

        }

    }[/pawn]

Ai incercat sa rezolvi singur ?:Da dar nu stiu cum sa inlocuiesc "num_hash" cu cv care se vede parola... ma poate ajuta cineva?

Link to comment
Share on other sites

18 answers to this question

Recommended Posts

Asta e cel mai potrivit pe care ti-l pot da aici :

http://forum.sa-mp.com/showthread.php?t=485633

Sfatul meu e sa folosesti mysql r38+ dar nu cu functiile orm ci cu cele cache . Tutorialul care ti l-am dat poti sai faci update si la r38 ca nu iti va da nicio eroare . Poate o sa postez si eu un login/register system dea meu mai putin avansat ca sa priceapa toata lumea ce am scris in el .

EDIT: Se poate da T/C ?

Link to comment
Share on other sites

in Server_log apare urmatoarea eroare:

[pawn]----------

Loaded log file: "server_log.txt".

----------

SA-MP Dedicated Server

----------------------

v0.3z, ©2005-2014 SA-MP Team

[14:13:19] filterscripts = ""  (string)

[14:13:19]

[14:13:19] Server Plugins

[14:13:19] --------------

[14:13:19]  Loading plugin: mysql

[14:13:19]  >> plugin.mysql: R38 successfully loaded.

[14:13:19]  Loaded.

[14:13:19]  Loading plugin: Whirlpool

[14:13:19] 

[14:13:19]  ==================

[14:13:19] 

[14:13:19]  Whirlpool loaded

[14:13:19] 

[14:13:19]  ==================

[14:13:19] 

[14:13:19]  Loaded.

[14:13:19]  Loaded 2 plugins.

[14:13:19]

[14:13:19] Filterscripts

[14:13:19] ---------------

[14:13:19]  Loaded 0 filterscripts.

[14:13:19] Script[gamemodes/BlackFlash.amx]: Run time error 20: "Invalid index parameter (bad entry point)"

[14:13:19] Number of vehicle models: 0[/pawn]

Si mi-am dat seama cum imi descarc baza de date in pc am dat la EXPORT si de acolo a fost simplu:)) dar ziceti cum rezolv UNKDOWN

Link to comment
Share on other sites

Pune deasuprea la OnGameModeInit asta:

main()
{
	print("\n----------------------------------");
	print(" Blank Gamemode by your name here");
	print("----------------------------------\n");
}[/code
sau

[code]main() { }

E acelasi lucru doar ca prima iti da in consola mesajul ala si cealalta nu-ti da nimic .

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.