INI_WriteString and ...?
#1

So you can write strings to an enum and these kinda things with INI_WriteString. So how to get a string from somewhere? I tried INI_String, but that didn't work.

Thanks in advance.
Reply
#2

Well... INI_String is the correct way to go, BUT, some people often forget to add the string length/cell usage into INI_String.

Most Commonly Mistaken Use:
pawn Код:
INI_String(myfile, "PlayerName", savedname);
Proper Usage:
pawn Код:
INI_String(myfile, "PlayerName", savedname, 24);
Unlike INI_Int or INI_Float, this function DOES use an extra parameter. Without it, it usually returns a 'Undefined Symbol: INI_String' error.
Reply
#3

Thanks, works!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)