How to do this in y_ini?
#2

pawn Код:
INI:ininame(name[], value[])
{
    if (!strcmp(name, "Score"))
    {
        SetPlayerScore(playerid, value);
    }
    //or
    //new cash, score;
    //INI_Int("Score", score);
    //INI_Int("Cash", cash);
    //SetPlayerCash(playerid, cash);
    //SetPlayerScore(playerid, score);
    if (!strcmp(name, "Cash"))
    {
        SetPlayerMoney(playerid, value);
    }
    return 1;
}
Reply


Messages In This Thread
How to do this in y_ini? - by 101 - 16.12.2012, 05:43
Re: How to do this in y_ini? - by maramizo - 16.12.2012, 05:48
Re: How to do this in y_ini? - by 101 - 16.12.2012, 05:56
Re: How to do this in y_ini? - by maramizo - 16.12.2012, 06:04
Re: How to do this in y_ini? - by [HK]Ryder[AN] - 16.12.2012, 06:18

Forum Jump:


Users browsing this thread: 1 Guest(s)