Dini_get problem.
#1

Hey,

can someone please help me with this small issue I am having?
I have this line in my script:
Код:
if(strcmp(dini_Get(nomefile,"member%d",MAX_MEMBERS),"None",true)==0)
But it says "warning 202: number of arguments does not match definition", so does anyone knows where i should place the MAX_MEMBERS or anything?

Thanks in advance!
Reply
#2

Are you looking for something like this?
pawn Код:
for( new i = 0; i < MAX_MEMBERS; i ++ )
{
    new str[ 128 ];
    format( str, sizeof( str ), "member%i", i );
    if( !strcmp( dini_Get( nomefile, str ), "None", true ))
    {
        //stuff
    }
}
Reply
#3

Thanks mate, I've got it all working now.
Reply
#4

Quote:
Originally Posted by justinnater
Посмотреть сообщение
Thanks mate, I've got it all working now.
No problem
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)