04.12.2011, 16:35
Hey guyss
Im using y_ini and everything is ok
now i was about to add something
using writeint
I already used writeint like 2000000 times in my script
now
when I type
INI_WriteInt(
it only gives me to write 2 parameters ! ( that tiny box shows up and tells me to write 2 arguments instead of 3)
So I tried WriteInt("DateBan",dstr);
and it says
error 035: argument type mismatch (argument 2)
But then when I try to use it with 3 arguments it says
error 035: argument type mismatch (argument 3)
WTF ?
now you see on the publice
the line INI_WriteInt(File,"Banned",level); with 3 arguments doesnt give me any errors
but the line INI_WriteInt(File,"BanDate",dstr); does give me !
WTF !
Im using y_ini and everything is ok
now i was about to add something
using writeint
I already used writeint like 2000000 times in my script
now
when I type
INI_WriteInt(
it only gives me to write 2 parameters ! ( that tiny box shows up and tells me to write 2 arguments instead of 3)
So I tried WriteInt("DateBan",dstr);
and it says
error 035: argument type mismatch (argument 2)
But then when I try to use it with 3 arguments it says
error 035: argument type mismatch (argument 3)
WTF ?
pawn Код:
public Ban3X(playerid,level,text[])
{
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Banned",level);
new dstr[17];
format(dstr,sizeof(dstr),"%d/%d/%d",sday,smonth,syear);
INI_WriteInt(File,"BanDate",dstr);
INI_WriteString(File,"BanReason",text);
INI_Close(File);
Kick(playerid);
return 1;
}
the line INI_WriteInt(File,"Banned",level); with 3 arguments doesnt give me any errors
but the line INI_WriteInt(File,"BanDate",dstr); does give me !
WTF !