hlmod.hu
https://hlmod.hu/

ZP BANK
https://hlmod.hu/viewtopic.php?f=10&t=13697
Oldal: 1 / 1

Szerző:  ChaspeR [ 2014.01.05. 22:51 ]
Hozzászólás témája:  ZP BANK

L 01/05/2014 - 22:47:05: Invalid CVAR pointer
L 01/05/2014 - 22:47:05: [AMXX] Displaying debug trace (plugin "zp_bank_v3.amxx")
L 01/05/2014 - 22:47:05: [AMXX] Run time error 10: native error (native "get_pcvar_num")
L 01/05/2014 - 22:47:05: [AMXX] [0] zp_bank_v3.sma::LoadClient_QueryHandler (line 573)


Nem működik a bankom , ezt dobálja log-ba.

részlet:

SMA Forráskód: [ Mindet kijelol ]
  1. public LoadClient_QueryHandler(iFailState, Handle:hQuery, szError[], iErrnum, szData[], iSize, Float:fQueueTime)
  2. {
  3. if(iFailState != TQUERY_SUCCESS)
  4. {
  5. log_amx("%s SQL Error #%d - %s", PLUGIN_PREFIX, iErrnum, szError);
  6. return ;
  7. }
  8.  
  9. new id = szData[0];
  10.  
  11. if (szData[1] != get_user_userid(id))
  12. return ;
  13.  
  14. new packs=0,info_pw[32];
  15.  
  16. if(g_vars[mode] == 2)
  17. packs = get_pcvar_num(g_vars[startedammo]);
  18.  
  19. if(SQL_NumResults(hQuery))
  20. {
  21. packs = SQL_ReadResult(hQuery, SQL_FieldNameToNum(hQuery, "amount"));
  22. SQL_ReadResult(hQuery, SQL_FieldNameToNum(hQuery, "password"), g_Bank[id][passwd], 31);
  23. }
  24.  
  25. g_Bank[id][amount] = CheckLimit(packs);
  26. if(g_vars[allow_passwd] && g_Bank[id][passwd][0])
  27. {
  28. get_user_info(id,g_vars[_pw_str],info_pw,31);
  29. if(equal(info_pw, g_Bank[id][passwd]))
  30. {
  31. g_Bank[id][loggin] = true;
  32. }
  33. }
  34. else
  35. g_Bank[id][loggin] = true;
  36.  
  37. if(g_Bank[id][ingame] == true && g_Bank[id][loggin] == true)
  38. {
  39. SetAmmoBank(id, g_Bank[id][amount]);
  40. }
  41. g_Bank[id][async] = true;
  42. }


Valaki kibírná nekem javítani? :S

Szerző:  RaZzoR [ 2014.01.07. 11:05 ]
Hozzászólás témája:  Re: ZP BANK

Teljes forráskódot tudsz adni?

Szerző:  ChaspeR [ 2014.01.07. 11:47 ]
Hozzászólás témája:  Re: ZP BANK

ui.: Megjavult. Zombie Mód Rossz volt és bezavart neki. :lol:

Oldal: 1 / 1 Minden időpont UTC+02:00 időzóna szerinti
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/