Y_INI Storing not storing float in OnGameModeInit
#6

Quote:
Originally Posted by xRadical3
View Post
Store coords as string and try.
See this example:
pawn Code:
INI_Write(AD_FILE, "CP_XYZ", "1267.2631,-1265.8411,13.3806");

//get coords from string with sscanf
new dest[64], Float:x, Float:y, Float:z;
INI_Get(AD_FILE, "CP_XYZ", dest);
sscanf(dest, "p<,>fff", x, y, z);
Yes, saving as String is working, thanks. Looks like there's something wrong with WriteFloat
Reply


Messages In This Thread
Y_INI Storing not storing float in OnGameModeInit - by Electrifying - 29.05.2020, 02:53
Re: Y_INI Storing not storing float in OnGameModeInit - by Runn3R - 29.05.2020, 08:11
Re: Y_INI Storing not storing float in OnGameModeInit - by Electrifying - 29.05.2020, 19:23
Re: Y_INI Storing not storing float in OnGameModeInit - by Electrifying - 29.05.2020, 21:36
Re: Y_INI Storing not storing float in OnGameModeInit - by xRadical3 - 29.05.2020, 22:16
Re: Y_INI Storing not storing float in OnGameModeInit - by Electrifying - 29.05.2020, 22:46

Forum Jump:


Users browsing this thread: 2 Guest(s)