19.03.2015, 02:01
Sorry about that, try this:
pawn Код:
stock Float:udb_UserFloat(nickname[], key[])
{
new fname[128], Float:value;
format(fname, sizeof(fname), "%s.dudb.sav", udb_encode(nickname));
new INI:File = INI_Open(fname);
INI_Float(key, value);
INI_Close(File);
return value;
}
stock udb_UserInt(nickname[], key[], value)
{
new fname[128], value;
format(fname, sizeof(fname), "%s.dudb.sav", udb_encode(nickname));
new INI:File = INI_Open(fname);
INI_Int(key, value);
INI_Close(File);
return value;
}