score help
#3

pawn Код:
dUserSetINT(PlayerName(playerid)).("money",GetPlayerMoney(playerid));
pawn Код:
GetPlayerName(playerid, playrname, sizeof(playrname));
    for(new i = 0; i < MAX_SAVE; i++) {

        if(isStringSame(savedNames[i], playrname, MAX_PLAYER_NAME)) {
            GivePlayerMoney(playerid, savedInfo[i][0]);
            bounty[playerid] = savedInfo[i][2];

            savedInfo[i][0]=savedInfo[i][1]=savedInfo[i][2]=0;
            savedNames[i][0]=0;

            for(new j = 0; j < MAX_WEAPONS; j++) {
                playerWeapons[playerid][j]=savedWeapons[i][j];
                savedWeapons[i][j]=0;
            }

            SendClientMessage(playerid, COLOR_GREEN, "Your money has been restored.");
        }
    }
pawn Код:
GetPlayerName(playerid, playername, sizeof(playername));
    format(savedNames[savePos], MAX_PLAYER_NAME, "%s",playername);

    savedInfo[savePos][0] = GetPlayerMoney(playerid);
    savedInfo[savePos][2] = bounty[playerid];
    savedInfo[savePos][3] = 0;
where to change please help
Reply


Messages In This Thread
score help - by MA_proking - 01.08.2011, 07:21
Re: score help - by PrawkC - 01.08.2011, 07:31
Re: score help - by MA_proking - 01.08.2011, 07:39
Re: score help - by Basicz - 01.08.2011, 07:51
Re: score help - by MA_proking - 01.08.2011, 08:05

Forum Jump:


Users browsing this thread: 2 Guest(s)