help - sscanf
#6

[pawn]
pawn Код:
forward AccountRead(playerid);
public AccountRead(playerid)
{
    new strpl[30],asd;
    format(strpl, 30, "Accounts/%s.ini", pName(playerid));
    new File:F = fopen(strpl, io_read);
    while(fread(F, strpl))
    {
        if(strcmp(strpl, "kill ", true, 5)==0)
        {
            sscanf(strpl,"{d}d",asd);
            printf("kills %d",asd);
        }
    }
    return true;
}
Quote:

The two new specifiers "{" and "}" are used for what are known as "quiet" strings. These are strings which are read and checked, but not saved.

Reply


Messages In This Thread
help - sscanf - by Tesse_ - 03.09.2011, 03:29
Re: help - sscanf - by =WoR=Varth - 03.09.2011, 03:40
Re: help - sscanf - by Tesse_ - 03.09.2011, 03:47
Re: help - sscanf - by =WoR=Varth - 03.09.2011, 03:50
Re: help - sscanf - by Tesse_ - 03.09.2011, 03:59
Re: help - sscanf - by =WoR=Varth - 03.09.2011, 04:20
Re: help - sscanf - by Tesse_ - 03.09.2011, 04:49

Forum Jump:


Users browsing this thread: 1 Guest(s)