New saving system and still not saving score/money
#10

Quote:
Originally Posted by cod5devious
Посмотреть сообщение
try this

pawn Код:
forward OnPlayerSaveAcount(playerid);
pawn Код:
if(IsPlayerConnected(playerid)) {
        OnPlayerSaveAcount(playerid); // Make the onplayersaveaccount function
        IsLogged[playerid] = false;
        TextDrawHideForPlayer(playerid, Time);
        TextDrawHideForPlayer(playerid, Date);
    }
under
public OnPlayerDisconnect(playerid, reason)

then
pawn Код:
public OnPlayerSaveAcount(playerid)
{
    if(IsPlayerConnected(playerid)) {
    INI_WriteInt("Score",GetPlayerScore(playerid));
    INI_WriteInt("Cash",GetPlayerMoney(playerid));
    INI_WriteInt("Admin",PlayerInfo[playerid][pAdmin]);
    INI_WriteInt("Pass",PlayerInfo[playerid][pPass]);
    INI_WriteInt("Kills",PlayerInfo[playerid][pKills]);
    INI_WriteInt("Deaths",PlayerInfo[playerid][pDeaths]);
    }
    return 1;
}
pawn Код:
C:\Users\Meeee\Desktop\Night-Drifterz\gamemodes\nightdrifterz.pwn(421) : error 010: invalid function or declaration
C:\Users\Meeee\Desktop\Night-Drifterz\gamemodes\nightdrifterz.pwn(423) : error 010: invalid function or declaration
C:\Users\Meeee\Desktop\Night-Drifterz\gamemodes\nightdrifterz.pwn(542) : error 035: argument type mismatch (argument 1)
C:\Users\Meeee\Desktop\Night-Drifterz\gamemodes\nightdrifterz.pwn(543) : error 035: argument type mismatch (argument 1)
C:\Users\Meeee\Desktop\Night-Drifterz\gamemodes\nightdrifterz.pwn(544) : error 035: argument type mismatch (argument 1)
C:\Users\Meeee\Desktop\Night-Drifterz\gamemodes\nightdrifterz.pwn(545) : error 035: argument type mismatch (argument 1)
C:\Users\Meeee\Desktop\Night-Drifterz\gamemodes\nightdrifterz.pwn(546) : error 035: argument type mismatch (argument 1)
C:\Users\Meeee\Desktop\Night-Drifterz\gamemodes\nightdrifterz.pwn(547) : error 035: argument type mismatch (argument 1)
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)