//OnGameModeInit
new File: Kassen = fopen("Kassen.ini", io_read);
if(Kassen)
{
new key[ 256 ] , val[ 256 ];
new Data[ 256 ];
while ( fread( Kassen , Data , sizeof( Data ) ) )
{
key = ini_GetKey( Data );
if( strcmp( key , "Kassesfpd" , true ) == 0 ) { val = ini_GetValue( Data ); kassesfpd= strval( val ); }
}
fclose(Kassen);
}
new File: Kassen = fopen("Kassen.ini", io_read);
if(Kassen)
{
new key[ 256 ] , val[ 256 ];
new Data[ 256 ];
while ( fread( Kassen , Data , sizeof( Data ) ) )
{
key = ini_GetKey( Data );
if( strcmp( key , "Kasseswat" , true ) == 0 ) { val = ini_GetValue( Data ); kasseswat= strval( val ); }
}
fclose(Kassen);
}
new File: Kassen = fopen("Kassen.ini", io_read);
if(Kassen)
{
new key[ 256 ] , val[ 256 ];
new Data[ 256 ];
while ( fread( Kassen , Data , sizeof( Data ) ) )
{
key = ini_GetKey( Data );
if( strcmp( key , "Kassearmy" , true ) == 0 ) { val = ini_GetValue( Data ); kassearmy= strval( val ); }
}
fclose(Kassen);
}
new File: Kassen = fopen("Kassen.ini", io_read);
if(Kassen)
{
new key[ 256 ] , val[ 256 ];
new Data[ 256 ];
while ( fread( Kassen , Data , sizeof( Data ) ) )
{
key = ini_GetKey( Data );
if( strcmp( key , "Kasseredh" , true ) == 0 ) { val = ini_GetValue( Data ); kasseredh= strval( val ); }
}
fclose(Kassen);
}
new File: Kassen = fopen("Kassen.ini", io_read);
if(Kassen)
{
new key[ 256 ] , val[ 256 ];
new Data[ 256 ];
while ( fread( Kassen , Data , sizeof( Data ) ) )
{
key = ini_GetKey( Data );
if( strcmp( key , "Kassesfk" , true ) == 0 ) { val = ini_GetValue( Data ); kassesfk= strval( val ); }
}
fclose(Kassen);
}
new File: Kassen = fopen("Kassen.ini", io_read);
if(Kassen)
{
new key[ 256 ] , val[ 256 ];
new Data[ 256 ];
while ( fread( Kassen , Data , sizeof( Data ) ) )
{
key = ini_GetKey( Data );
if( strcmp( key , "Kassehoods" , true ) == 0 ) { val = ini_GetValue( Data ); kassehoods= strval( val ); }
}
fclose(Kassen);
}
new File: Kassen = fopen("Kassen.ini", io_read);
if(Kassen)
{
new key[ 256 ] , val[ 256 ];
new Data[ 256 ];
while ( fread( Kassen , Data , sizeof( Data ) ) )
{
key = ini_GetKey( Data );
if( strcmp( key , "Kassetriads" , true ) == 0 ) { val = ini_GetValue( Data ); kassetriads= strval( val ); }
}
fclose(Kassen);
}
new File: Kassen = fopen("Kassen.ini", io_read);
if(Kassen)
{
new key[ 256 ] , val[ 256 ];
new Data[ 256 ];
while ( fread( Kassen , Data , sizeof( Data ) ) )
{
key = ini_GetKey( Data );
if( strcmp( key , "Kasseterrors" , true ) == 0 ) { val = ini_GetValue( Data ); kasseterrors= strval( val ); }
}
fclose(Kassen);
}
new File: Kassen = fopen("Kassen.ini", io_read);
if(Kassen)
{
new key[ 256 ] , val[ 256 ];
new Data[ 256 ];
while ( fread( Kassen , Data , sizeof( Data ) ) )
{
key = ini_GetKey( Data );
if( strcmp( key , "Kassemedic" , true ) == 0 ) { val = ini_GetValue( Data ); kassemedic= strval( val ); }
}
fclose(Kassen);
}
new File: Kassen = fopen("Kassen.ini", io_read);
if(Kassen)
{
new key[ 256 ] , val[ 256 ];
new Data[ 256 ];
while ( fread( Kassen , Data , sizeof( Data ) ) )
{
key = ini_GetKey( Data );
if( strcmp( key , "Kasseatu" , true ) == 0 ) { val = ini_GetValue( Data ); kasseatu= strval( val ); }
}
fclose(Kassen);
}
return 1;
}
public OnGameModeExit()
{
new File: Kassen = fopen("Kassen.ini", io_write);
if (Kassen)
{
new var[32];
format(var, 32, "Kassesfpd=%d\n",kassesfpd);fwrite(Kassen, var);
}
new File: Kassen = fopen("Kassen.ini", io_write);
if (Kassen)
{
new var[32];
format(var, 32, "Kasseswat=%d\n",kasseswat);fwrite(Kassen, var);
}
new File: Kassen = fopen("Kassen.ini", io_write);
if (Kassen)
{
new var[32];
format(var, 32, "Kassearmy=%d\n",kassearmy);fwrite(Kassen, var);
}
new File: Kassen = fopen("Kassen.ini", io_write);
if (Kassen)
{
new var[32];
format(var, 32, "Kasseredh=%d\n",kasseredh);fwrite(Kassen, var);
}
new File: Kassen = fopen("Kassen.ini", io_write);
if (Kassen)
{
new var[32];
format(var, 32, "Kassesfk=%d\n",kassesfk);fwrite(Kassen, var);
}
new File: Kassen = fopen("Kassen.ini", io_write);
if (Kassen)
{
new var[32];
format(var, 32, "Kassehoods=%d\n",kassehoods);fwrite(Kassen, var);
}
new File: Kassen = fopen("Kassen.ini", io_write);
if (Kassen)
{
new var[32];
format(var, 32, "Kassetriads=%d\n",kassetriads);fwrite(Kassen, var);
}
new File: Kassen = fopen("Kassen.ini", io_write);
if (Kassen)
{
new var[32];
format(var, 32, "Kasseterrors=%d\n",kasseterrors);fwrite(Kassen, var);
}
new File: Kassen = fopen("Kassen.ini", io_write);
if (Kassen)
{
new var[32];
format(var, 32, "Kassemedic=%d\n",kassemedic);fwrite(Kassen, var);
}
new File: Kassen = fopen("Kassen.ini", io_write);
if (Kassen)
{
new var[32];
format(var, 32, "Kasseatu=%d\n",kasseatu);fwrite(Kassen, var);
}
return 1;
}
ich hab des vom tut nur kopiert und die namen geändert
wen ich das in einem FS mache bekomm ich keine errors wen ich das heir mache bekomm ich die errors