12.02.2014, 20:43
pawn Код:
stock dini_Int(filename[],key[]) {
return strval(dini_Get(filename,key));
}
stock Float:dini_Float(filename[],key[]) {
return floatstr(dini_Get(filename,key));
}
First parameter is not for the key, is for the file to load the info from, second parameter is for the key, or what you have formatted in 'string'.
PlayerToyInfo[playerid][v][ftscaleZ] = dini_Float(file, string);
Should work if you use that in all fields (including the integer ones); The result is not stored in the second variable, it's returned by the function itself.