How to get that?
#4

Quote:
Originally Posted by whitedragon
Посмотреть сообщение
Buyt how when i make - 1 in PlayerInfo?
pawn Код:
if(newkeys == KEY_FIRE || newkeys == KEY_SECONDARY_FIRE)
{
    SetPVarInt(playerid, "Shot", GetPVarInt(playerid, "Shot")-1);
    new file[50], name[20], str[50];
    GetPlayerName(playerid, name, 20);
    format(file, sizeof(file),"users/%s.ini", name);
    new File:account = fwrite(file, io_append);
    if(account)
    {
        format(str, 50, "Shots: %d", GetPVarInt(playerid, "Shot"));
        { fwrite(account, str); }
        fclose(account);
    }
}
Try this, not sure
Reply


Messages In This Thread
How to get that? - by whitedragon - 16.08.2010, 12:40
Re: How to get that? - by Claude - 16.08.2010, 12:54
Re: How to get that? - by whitedragon - 16.08.2010, 16:01
Re: How to get that? - by Claude - 16.08.2010, 16:32
Re: How to get that? - by Sascha - 16.08.2010, 16:35
Re: How to get that? - by (.Aztec); - 16.08.2010, 17:30
Re: How to get that? - by whitedragon - 18.08.2010, 12:35
Re: How to get that? - by Vince - 18.08.2010, 12:50

Forum Jump:


Users browsing this thread: 1 Guest(s)