Help Tag MisMatch
#9

pawn Код:
stock dini_Int(filename[],key[]) {
   return strval(dini_Get(filename,key));
}

stock Float:dini_Float(filename[],key[]) {
   return floatstr(dini_Get(filename,key));
}
That's from the dini include. You're doing it wrong.

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.
Reply


Messages In This Thread
Help Tag MisMatch - by Rhino - 12.02.2014, 17:48
Re: Help Tag MisMatch - by Rokzlive - 12.02.2014, 18:18
Respuesta: Help Tag MisMatch - by Rhino - 12.02.2014, 18:37
Re: Help Tag MisMatch - by DaniceMcHarley - 12.02.2014, 18:38
Respuesta: Help Tag MisMatch - by Rhino - 12.02.2014, 18:42
Re: Help Tag MisMatch - by [EnErGyS]KING - 12.02.2014, 19:18
Re: Help Tag MisMatch - by Golimad - 12.02.2014, 19:21
Respuesta: Help Tag MisMatch - by Rhino - 12.02.2014, 20:27
Re: Help Tag MisMatch - by CuervO - 12.02.2014, 20:43
Respuesta: Help Tag MisMatch - by Rhino - 12.02.2014, 21:34

Forum Jump:


Users browsing this thread: 1 Guest(s)