/buycar help?
#1

I know I am spamming lately but I need alot of help, What is wrong with this Code?

It updates every Vehicle File and does not get the Players name?

pawn Код:
CMD:buycar(playerid, params[])
{
    new file[128], owned, name[MAX_PLAYER_NAME], owner[64];
    for(new i = 1; i<=MAX_VEHICLES; i++)
    {
        format(file, sizeof(file), "Vehicles/%i.ini", i);
        GetPlayerName(playerid, name, sizeof(name));
        owned = 1;
        owner[i] = name[playerid];
        dini_IntSet(file, "Owned", owned);
        dini_Set(file, "Owner", owner);
    }
    return 1;
}
Reply


Messages In This Thread
/buycar help? - by Luis- - 06.02.2011, 21:47
Re: /buycar help? - by xRyder - 06.02.2011, 21:55
Re: /buycar help? - by -Rebel Son- - 06.02.2011, 21:57
Re: /buycar help? - by xRyder - 06.02.2011, 22:00
Re: /buycar help? - by -Rebel Son- - 06.02.2011, 22:04

Forum Jump:


Users browsing this thread: 1 Guest(s)