2023-12-26, 01:42 PM
(2023-12-25, 08:51 PM)Radical Wrote: You should use INI_String to get the IP, Dovod and Admin because they are strings, not integers.
Take a look to documents.
https://github.com/pawn-lang/YSI-Include...ini/api.md
PHP Code:
new way[32];
format(way,32,"VRLS/TimeBan/%s.cfg",PlayerName(playerid));
if(DOF2_FileExists(way))
{
new Qip = DOF2_GetInt(way,"IP");
new dovod = DOF2_GetInt(way,"Dovod");
new QQQQ = DOF2_GetInt(way,"Admin");
new Kedy = DOF2_GetInt(way,"Kedy");
new DoKedy = DOF2_GetInt(way,"Dokedy");
This is how it is original and it works and I wanted to put it in the INI version, but with INI_Int it doesn't complicate the mod for me and when I used INI_String it gives me an error
error 017: undefined symbol "INI_String"
But with "INI String" I know that there are 3 positions and in the third I don't know what to put, what weight.
And when I put, for example, the value 0 in the third position, it shows me the error "name"