Jump to content

DonErik

Membru
  • Posts

    28
  • Joined

  • Last visited

  • Days Won

    1

DonErik last won the day on July 30 2019

DonErik had the most liked content!

Profile Information

  • Sex
    Masculin
  • In-game Name
    DonErik
  • Level of knowledge
    Mediu

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

DonErik's Achievements

Explorer

Explorer (4/14)

  • First Post
  • Collaborator
  • Conversation Starter
  • Week One Done
  • One Month Later

Recent Badges

1

Reputation

  1. 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'
  2. Iti recomand sa-ti faci un enum, cu PlayerInfo, sau P_info deoarece este foarte folositor, si te va ajuta la sistemul de stocare in baza de date, si/sau la sistemul de inregistrare/logare. Mai pe scurt la tot ce faci in GM aproape.
  3. O sa incerc, o sa revin cu un reply.
  4. 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]); }
  5. 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!
  6. Rezolvat, era fix sub 'y_commands', multumesc mult!
  7. 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
  8. A mers Multumesc m-ai scapat de un chin! T/C rezolvat!
  9. A mers, acum sa vad daca isi da update in baza.
  10. Mereu imi da eroare asta, nuj cum sa o fac am incercat multe metode.
  11. 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.
  12. [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
×
×
  • 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.