help me with dini
#6

Quote:
Originally Posted by Nero_3D
Посмотреть сообщение
You could do it with that
Use normal file functions for that (or any modern file system like y_ini)
pawn Код:
new
    File: gFile,
    tmp[MAX_STRING],
    name[MAX_PLAYER_NAME];
gFile = fopen("List.ini", io_read);
GetPlayerName(playerid, name, sizeof name);
while(fread(gFile, tmp)) {
    if(strcmp(tmp[strfind(tmp, "=", false) + 1], name, false) == 0) {
        //found
        break;
    }
}
fclose(gFile);
thanks !!
I'm sorry but i don't have understood where i must write if the player is found and where not?
first of the break is when is found ?
I tried to put an else but: invalid expression, assumed zero
Reply


Messages In This Thread
help me with dini - by emuk - 05.07.2011, 16:15
Re: help me with dini - by willsuckformoney - 05.07.2011, 16:27
Re: help me with dini - by emuk - 05.07.2011, 17:06
Re: help me with dini - by willsuckformoney - 05.07.2011, 17:46
AW: help me with dini - by Nero_3D - 05.07.2011, 18:03
Re: AW: help me with dini - by emuk - 05.07.2011, 18:47
AW: Re: AW: help me with dini - by Nero_3D - 05.07.2011, 19:24
Re: help me with dini - by emuk - 05.07.2011, 19:49
AW: help me with dini - by Nero_3D - 05.07.2011, 20:10
Re: help me with dini - by emuk - 05.07.2011, 20:34

Forum Jump:


Users browsing this thread: 2 Guest(s)