Posts: 534
Threads: 265
Joined: Jul 2014
Hi,
I don't really well understand toturial, of ******, and other what i see. Because there is a lot of examples showen and i don't understand some of them. Maybe who can show me how to load a data from file when gamemode is loading, and then safe that things.
Posts: 534
Threads: 265
Joined: Jul 2014
INI_ParseFile("users/admin.ini", "YourLoadFunction", .bExtra = false, .extra = 0);
.bExtra = false what i mean? name[] value?
forward YourLoadFunction(name[], value[]);
public YourLoadFunction(name[], value[])
{
INI_Int("IntValue",/*Variable that data load into it*/); // <~~~~ Loading integer
INI_String("StrValue",/*Variable that data load into it*/,/*String Size*/); // <~~~~ Loading string
//...... load other....
return 1;
}
Posts: 534
Threads: 265
Joined: Jul 2014
forward YourLoadFunction(name[], value[]);
What is using name[] and value[]
Posts: 534
Threads: 265
Joined: Jul 2014
How to create a new .ini file?
Posts: 534
Threads: 265
Joined: Jul 2014
How to load in simplest way?
Posts: 534
Threads: 265
Joined: Jul 2014
Код:
error 017: undefined symbol "name"
error 017: undefined symbol "value"
INI_Load("test.ini");
new SCORE;
INI_Bin("SCORE", SCORE );
printf("%d", SCORE );
I get these errors in ini_bin
Posts: 534
Threads: 265
Joined: Jul 2014
Posts: 534
Threads: 265
Joined: Jul 2014