Thanks, example have a error on type its auto convert failed type to 0 ? or support all metin2 type, bonus ?
Du kannst doch auch nichts anderes.. :-D - Außerdem code ich besser als du :awesome:Quote:
SoNiice aus irgendeinem Grund glaube ich dir nicht, dass du das gemacht hast...
DU KANNST EINFACH NICHT CODEN!!!! xD
Oder ist das C#?
Quote:
Hmmm... Ganz ok
Wie hast du den Ladebalken gemacht.
Hab schon dannach gegoogelt gehabt aber irgendwie bin ich nicht daraus schlau geworden.
Wäre n1 wenn du mir das sagen könntest.
Sonst ganz ok ;D.
#include "stdafx.h"
#include <windows.h>
#include <stdio.h>
void DoProgress( char label[], int step, int total )
{
//progress width
const int pwidth = 72;
//minus label len
int width = pwidth - strlen( label );
int pos = ( step * width ) / total ;
int percent = ( step * 100 ) / total;
//set green text color, only on Windows
SetConsoleTextAttribute( GetStdHandle( STD_OUTPUT_HANDLE ), FOREGROUND_GREEN );
printf( "%s[", label );
//fill progress bar with =
for ( int i = 0; i < pos; i++ ) printf( "%c", '=' );
//fill progress bar with spaces
printf( "% *c", width - pos + 1, ']' );
printf( " %3d%%\r", percent );
//reset text color, only on Windows
SetConsoleTextAttribute( GetStdHandle( STD_OUTPUT_HANDLE ), 0x08 );
}
void DoSome()
{
int total = 1000;
int step = 0;
while ( step < total )
{
//do some action
::Sleep( 50 );
step+=1;
DoProgress( "Update: ", step, total );
}
printf( "\n" );
}
int main()
{
DoSome();
return 0;
}
C++ ist aber kein C#, just btw. - Hättest du ihm aber auch per PN schicken können ;-)Quote:
PHP Code:#include "stdafx.h"
#include <windows.h>
#include <stdio.h>
void DoProgress( char label[], int step, int total )
{
//progress width
const int pwidth = 72;
//minus label len
int width = pwidth - strlen( label );
int pos = ( step * width ) / total ;
int percent = ( step * 100 ) / total;
//set green text color, only on Windows
SetConsoleTextAttribute( GetStdHandle( STD_OUTPUT_HANDLE ), FOREGROUND_GREEN );
printf( "%s[", label );
//fill progress bar with =
for ( int i = 0; i < pos; i++ ) printf( "%c", '=' );
//fill progress bar with spaces
printf( "% *c", width - pos + 1, ']' );
printf( " %3d%%\r", percent );
//reset text color, only on Windows
SetConsoleTextAttribute( GetStdHandle( STD_OUTPUT_HANDLE ), 0x08 );
}
void DoSome()
{
int total = 1000;
int step = 0;
while ( step < total )
{
//do some action
::Sleep( 50 );
step+=1;
DoProgress( "Update: ", step, total );
}
printf( "\n" );
}
int main()
{
DoSome();
return 0;
}
Lösungsvorschlag? - Aktuelle item_proto.Quote:
Problem while converting.