INI IS GONE CRAZY !!!!
#1

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 ?
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;
}
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 !


Reply
#2

Please stop writing it bold, it's very annoying.

pawn Код:
INI_WriteInt(File,"BanDate",dstr);
to
pawn Код:
INI_WriteString(File,"BanDate",dstr);
Reply
#3

dstr is a string so write a string..
Reply
#4

Okey you are right lol ...

WOW ... how didnt I notice it ..
but anyways what about my problem with the INI_WriteInt function ?

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)