10.09.2013, 14:49
Hello, this is my code:
"WorldInfo[LastLicensePlate]" is an array of 8slots.
And only the text "Will try to load string" is printed, the other isn't. If i remove the "INI_String", it prints both lines.
pawn Код:
stock LoadWorldInfo()
{
INI_Load("GlobalInfo.ini");
return 1;
}
INI:GlobalInfo[](name[],value[])
{
INI_Int("LastRestart",WorldInfo[LastRestart]);
printf("Will try to load string");
INI_String("LastLicensePlate",WorldInfo[LastLicensePlate],sizeof(WorldInfo[LastLicensePlate]));
printf("After string");
return 0;
}
And only the text "Will try to load string" is printed, the other isn't. If i remove the "INI_String", it prints both lines.