View Single Post
Old 29/05/2020, 10:46 PM   #6
Big Clucker
Join Date: Sep 2018
Location: Pernambuco
Posts: 172
Reputation: 2
Default Re: Y_INI Storing not storing float in OnGameModeInit

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
Electrifying is offline   Reply With Quote