Y_INI "Parse File" Help
#3

Quote:
Originally Posted by Snipa
Посмотреть сообщение
Here's an example:
pawn Код:
INI_ParseFile(file, "LoginAcc", false, true, playerid, true, false);
pawn Код:
forward LoginAcc(playerid, name[ ], value[ ]);
public LoginAcc(playerid, name[ ], value[ ])
{
    if(strcmp(name,"Password")) SetPVarString(playerid,"pPass",value);
   
    if(!strcmp(name, "Level", false) ) {
        PInfo[playerid][Level1] = strval(value);
    }
    if(!strcmp(name, "VIP", false) ) {
        PInfo[playerid][VIP] = strval(value);
    }
    if(!strcmp(name, "Deaths", false) ) {
        PInfo[playerid][Deaths1] = strval(value);
    }
    if(!strcmp(name, "Cash", false) ) {
        PInfo[playerid][Cash] = strval(value);
    }
    if(!strcmp(name, "Score", false) ) {
        PInfo[playerid][Score] = strval(value);
    }
    if(!strcmp(name, "Kills", false) ) {
        PInfo[playerid][Kills1] = strval(value);
    }
    if(!strcmp(name, "Deaths", false) ) {
        PInfo[playerid][Deaths1] = strval(value);
    }
    return 1;
}
pawn Код:
if(strcmp(name,"Password")) SetPVarString(playerid,"pPass",value);
What's this?
Reply


Messages In This Thread
Y_INI "Parse File" Help - by maramizo - 18.03.2011, 12:08
Re: Y_INI "Parse File" Help - by Snipa - 18.03.2011, 12:42
Re: Y_INI "Parse File" Help - by maramizo - 19.03.2011, 07:08
Re: Y_INI "Parse File" Help - by maramizo - 19.03.2011, 15:59
Re: Y_INI "Parse File" Help - by maramizo - 19.03.2011, 20:19

Forum Jump:


Users browsing this thread: 3 Guest(s)