Ini file isn't set correctly.
#9

pawn Код:
// global:
new gPlayer_TempName[MAX_PLAYERS][MAX_PLAYER_NAME];

// OnPlayerConnect:
gPlayer_TempName[playerid][0] = EOS; // reset

// OnDialogResponse: master account
strcpy(gPlayer_TempName[playerid], inputtext, MAX_PLAYER_NAME);

// OnDialogResponse: password:
format(string, sizeof(string), PATH, gPlayer_TempName[playerid]);
new INI:File = INI_Open(string);
...
INI_Close(File);
Here's strcpy:
pawn Код:
#if !defined strcpy
    #define strcpy(%0,%1) strcat((%0[0] = EOS, %0), %1)
#endif

// strcpy(destination[], source[], max_len);
and you better use SHA256_PassHash instead of udb_hash.
Reply


Messages In This Thread
Ini file isn't set correctly. - by faff - 17.10.2016, 19:20
Re: Ini file isn't set correctly. - by Konstantinos - 17.10.2016, 19:21
Re: Ini file isn't set correctly. - by faff - 17.10.2016, 19:22
Re: Ini file isn't set correctly. - by Stinged - 17.10.2016, 19:34
Re: Ini file isn't set correctly. - by faff - 17.10.2016, 19:35
Re: Ini file isn't set correctly. - by Logic_ - 17.10.2016, 19:35
Re: Ini file isn't set correctly. - by faff - 17.10.2016, 19:39
Re: Ini file isn't set correctly. - by faff - 17.10.2016, 19:53
Re: Ini file isn't set correctly. - by Konstantinos - 17.10.2016, 20:21

Forum Jump:


Users browsing this thread: 3 Guest(s)