09.01.2011, 15:36
I already searched other topics, and also gone on y_ini ****** topic, and didn't find what I wanted. I just want to know how to read from a file..
I'm really confuse with y_ini. And need a help to starting some functions, that I'm not getting...
For example:
And now what that gives...
Would make anyone angry, since that's senseless...
Without this code I gave, it absolutely compiles, without errors... Everything else on script works and compiles
Also, if possible, tell me how to use:
And any other reading structures, since I learnt how to write, already. Thx. Really need it :X
I'm really confuse with y_ini. And need a help to starting some functions, that I'm not getting...
For example:
pawn Код:
else // Before that has a ' if ', checking if the file exists
{
new amount;
INI_Open(COUNTER); // I have that defined
amount = INI_Int("Count", amount);
printf(" File count.ini already exists ");
printf(" Amount of gangs on database: %d/250"); // I want to load the amount, using INI_Int...
}
And now what that gives...
Quote:
C:\Documents and Settings\F e L i P e\Desktop\SAMP SERVER 0.3C\filterscripts\gangs.pwn(49) : error 029: invalid expression, assumed zero C:\Documents and Settings\F e L i P e\Desktop\SAMP SERVER 0.3C\filterscripts\gangs.pwn(49) : error 017: undefined symbol "name" C:\Documents and Settings\F e L i P e\Desktop\SAMP SERVER 0.3C\filterscripts\gangs.pwn(49) : error 001: expected token: ";", but found "return" C:\Documents and Settings\F e L i P e\Desktop\SAMP SERVER 0.3C\filterscripts\gangs.pwn(49) : fatal error 107: too many error messages on one line |
Without this code I gave, it absolutely compiles, without errors... Everything else on script works and compiles
Also, if possible, tell me how to use:
Код:
INI_Int, INI_String