Hej, mam owy problem, posiadam taki kod od banku
case 4 : { delete_file( "tmpAccount.html" ); new handleUtil = nvault_util_open( "BankDataBase" ); new iAmountTotal = nvault_util_count( handleUtil ); new iRet , iPos; new szKey[ 256 ] , szData[ 256 ] , iTimeStamp; new szText[ 256 ]; new accountInformation[ structPlayer ]; new Array: arrayAccounts = ArrayCreate( 1 , sizeof accountInformation ); new szPin[ 256 ] , szValue[ 16 ] , szLimit[ 16 ]; for ( new iCurrent = 1 ; iCurrent <= iAmountTotal ; iCurrent++ ){ new accountInformationSecond[ structPlayer ]; // Im really tired today sorry iPos = nvault_util_read( handleUtil , iPos , szKey , charsmax( szKey ) , szData , charsmax( szData ) , iTimeStamp ); copy( accountInformationSecond[ accountName ] , MAX_LEN_STRUCT - 1 , szKey ); replace_all( szData , charsmax( szData ) , "#" , " " ); parse( szData , szPin , charsmax( szPin ) , szValue , charsmax( szValue ) , szLimit , charsmax( szLimit ) ); accountInformationSecond[ accountValue ] = str_to_num( szValue ); ArrayPushArray( arrayAccounts , accountInformationSecond ); } new iBorder = min( 10 , ArraySize( arrayAccounts ) ); for( new iCurrentElement = 0 ; iCurrentElement < iBorder ; iCurrentElement++ ){ new iBiggestNow = 0 , iID = -1; for( new iCurrentElement2 = 0 ; iCurrentElement2 < ArraySize( arrayAccounts ) ; iCurrentElement2++ ){ ArrayGetArray( arrayAccounts , iCurrentElement2 , accountInformation ); if( iBiggestNow < accountInformation[ accountValue ] ){ iBiggestNow = accountInformation[ accountValue ]; iID = iCurrentElement2; } } if( iID != -1 ){ ArrayGetArray( arrayAccounts , iID , accountInformation ); formatex( szText , charsmax( szText ) , "%d. %s - %d</br>" , iCurrentElement + 1 , accountInformation[ accountName ] , accountInformation[ accountValue ] ); write_file( "tmpAccount.html" , szText ); ArrayDeleteItem( arrayAccounts , iID ); } } show_motd( id , "tmpAccount.html" , "10 Najbogatszych Graczy Serwera" ); ArrayDestroy( arrayAccounts ); nvault_util_close( handleUtil ); #pragma unused iRet }
Chciałbym aby zrobic to pod HTML, jest ktos w stanie pomóc? w razie braku jakiegos potrzebnego kodu, jestem w stanie udostępnic.
z góry. dziękuję
Użytkownik KISIELkubabbvx edytował ten post 01.05.2021 19:03