Zrobiłem coś takiego:
stock nfv_get_key(const filename[], const identifier=';', phrase[], output[], len)
{
if( !file_exists(filename) )
return 0;
new f = fopen(filename, "rt");
new _data[512];
while( !feof(f) )
{
fgets(f, _data, charsmax(_data));
if( _data[0] == identifier && equal( phrase, _data ) )
{
format( output, len, "%s", _data);
break;
}
}
fclose(f)
return 0;
} Jeżeli ktoś nie zna tego, to powiem, że klucz znajduje się w pliku tekstowym i rozpoczyna się od identifier'a w tym przypadku - ;


Dodatki SourceMod



Temat jest zamknięty









