-
Posts
28 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
News
Documentation
Everything posted by DonErik
-
Revin cu o eroare din consola pe care nu am observat-o Error: Function not registered: 'SSCANF_Init' Error: Function not registered: 'SSCANF_IsConnected' Error: Function not registered: 'SSCANF_Join' Error: Function not registered: 'SSCANF_Leave' Error: Function not registered: 'TimeFormat' Error: Function not registered: 'bcrypt_verify' Error: Function not registered: 'bcrypt_get_hash' Error: Function not registered: 'bcrypt_hash'
-
O sa incerc, o sa revin cu un reply.
-
Pentru register: Dialog:PLAYER_REGISTER(playerid, response, listitem, inputtext[]) { if(!response) return Kick(playerid); if(!(6 <= strlen(inputtext) <= 32)) { SendErrorMsg(playerid, "Your password must consist of 6 - 32 characters"); return ShowPlayerRegister(playerid); } return bcrypt_hash(playerid, "HashPassword", inputtext, 12); } Pentru login: Dialog:PLAYER_LOGIN(playerid, response, listitem, inputtext[]) { if(!response) return Kick(playerid); if(!(6 <= strlen(inputtext) <= 32)) { SendErrorMsg(playerid, "Your password must consist of 6 - 32 characters"); return ShowPlayerLogin(playerid); } return bcrypt_verify(playerid, "PasswordVerify", inputtext, PlayerInfo[playerid][pPassword]); }
-
Salut, problema mea este cu hash-ul in baza de date. 'PasswordVerify => InvalidHash("")'. function HashPassword(playerid) { if(!IsPlayerConnected(playerid)) return 0; bcrypt_get_hash(PlayerInfo[playerid][pPassword]); mysql_format(SQL, gString, sizeof gString, "insert into users (Username, Password, registerDate) values ('%e', '%e', '%d')", GetName(playerid), PlayerInfo[playerid][pPassword], gettime()); mysql_pquery(SQL, gString, "OnPlayerRegister", "d", playerid); return 1; } function PasswordVerify(playerid, bool: succes) { if(!IsPlayerConnected(playerid)) return 0; if(!succes) { if(++LoginTries[playerid] >= 3) { SendErrorMsg(playerid, "You have entered the wrong password way too many times!"); defer KickEx(playerid); return 1; } return ShowPlayerLogin(playerid); } mysql_format(SQL, gString, sizeof gString, "select * from users where id = %d", PlayerInfo[playerid][pSQLID]); mysql_pquery(SQL, gString, "OnPlayerLogin", "d", playerid); return 1; } Nu am folosit acest include pana acum, si m-am gandit ca este o alternativa mai bune fata de WP, si MD5. Multumesc pentru timpul acordar!
-
Rezolvat, era fix sub 'y_commands', multumesc mult!
-
Tot ce este posibil, stai sa mai incerc.
-
Salut! Am intampinat destul de multe erori in include-uriile de la Y-Less sau mai bine cunoscute YSI. De precizat ca eu am dat update la toate include-uriile prezente, + ca este un gamemode de la 0 inceput de mine si ca este modular. C:\pawno\include\YSI_Coding\y_hooks\..\..\YSI_Core\y_core\y_core_entry.inc(307) : error 017: undefined symbol "io_readwrite" C:\pawno\include\YSI_Coding\y_hooks\..\..\YSI_Core\y_core\y_scriptinit_impl.inc(710) : error 017: undefined symbol "gettime" C:\pawno\include\YSI_Coding\y_hooks\..\..\YSI_Core\y_core\y_scriptinit_impl.inc(1313) : error 017: undefined symbol "GetTickCount" C:\pawno\include\YSI_Coding\y_hooks\..\..\YSI_Core\y_core\y_scriptinit_impl.inc(1322) : error 017: undefined symbol "GetTickCount" C:\pawno\include\YSI_Coding\y_hooks\..\..\YSI_Core\y_core\y_scriptinit_impl.inc(1325) : error 017: undefined symbol "format" C:\pawno\include\YSI_Coding\y_hooks\..\..\YSI_Core\y_core\y_scriptinit_impl.inc(1325) : warning 202: number of arguments does not match definition C:\pawno\include\YSI_Coding\y_hooks\..\..\YSI_Core\y_core\y_scriptinit_impl.inc(1325) : warning 202: number of arguments does not match definition C:\pawno\include\YSI_Coding\y_hooks\..\..\YSI_Core\y_core\y_scriptinit_impl.inc(1325) : warning 202: number of arguments does not match definition C:\pawno\include\YSI_Coding\y_hooks\..\..\YSI_Core\y_core\y_scriptinit_impl.inc(1656) : error 017: undefined symbol "CallLocalFunction" C:\pawno\include\YSI_Coding\y_hooks\..\..\YSI_Core\y_core\y_scriptinit_impl.inc(1688) : error 017: undefined symbol "CallLocalFunction" C:\pawno\include\YSI_Coding\y_hooks\..\..\YSI_Core\y_core\y_scriptinit_impl.inc(1712) : error 017: undefined symbol "fexist" C:\pawno\include\YSI_Coding\y_hooks\..\..\YSI_Core\y_core\y_scriptinit_impl.inc(1712) : warning 215: expression has no effect C:\pawno\include\YSI_Coding\y_hooks\..\..\YSI_Core\y_core\y_scriptinit_impl.inc(1712) : error 001: expected token: ";", but found ")" C:\pawno\include\YSI_Coding\y_hooks\..\..\YSI_Core\y_core\y_scriptinit_impl.inc(1712) : error 029: invalid expression, assumed zero C:\pawno\include\YSI_Coding\y_hooks\..\..\YSI_Core\y_core\y_scriptinit_impl.inc(1712) : fatal error 107: too many error messages on one line
-
A mers Multumesc m-ai scapat de un chin! T/C rezolvat!
-
A mers, acum sa vad daca isi da update in baza.
-
-
Am o problema, cu SQL-ul, am incercat sa o rezolv de multe ori dar nu am reusit si m-am gandit sa postez aici.
-
[debug] OnPlayerDeath(0, 65535, 255) [debug] Run time error 5: "Invalid memory access" [debug] AMX backtrace: [debug] #0 00000014 in public @yC_actor () in GM.amx [debug] #1 native CallRemoteFunction () in samp-server.exe [debug] #2 0003740c in ?? (0, 22484856, 0) in GM.amx [debug] #3 00036c50 in ?? (0, 22484856) in GM.amx [debug] #4 0002961c in public OnPlayerCommandText (0, 22484856) in GM.amx
-
Buna, idee dar astept sa revina wiki samp si forumul lord.
-
Da, adica eu vreau sa fac o usa pentru admin hq,
-
Cine ma poate ajuta cu un exemplu de usi care se deschid gen lspd si bariera! ms!
-
T/C Rezolvat!
-
Tot, nu merge.
-
{PAWN} CMD:enter(playerid,params) { if(IsPlayerInRangeOfPoint(playerid, 10, -2167.3972,3306.8318,95.5800)) { return SendClientMessage(playerid, COLOR_WITHE,"Nu esti la punctul de intrare"); } if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFFFFFF, "You are not admin"); SendClientMessage(playerid, COLOR_RED,"Ai intrat in STAFFHQ"); SetPlayerPos(playerid,-1334.8776,2369.5540,599.3223); return 1; } {PAWN}
-
Mersi, pwp!