01.04.2009, 17:22
I have a timer that will save the players stats every few minutes but it will not work.
When the player logs in...
pawn Код:
forward AutoSave();
pawn Код:
SetTimer("AutoSave",10000,true);
pawn Код:
public AutoSave()
{
if(Logged[playerid] == 1)
{
Money[playerid] = GetPlayerMoney(playerid);
TruckerSkin[playerid] = GetPlayerSkin(playerid);
TruckType[playerid] = dini_Int(udb_encode(PlayerName), "TruckType");
JobsDone[playerid] = dini_Int(udb_encode(PlayerName), "JobsDone");
JobLevel[playerid] = dini_Int(udb_encode(PlayerName), "JobLevel");
dini_IntSet(udb_encode(PlayerName), "Money", Money[playerid]);
dini_IntSet(udb_encode(PlayerName), "TruckType", TruckType[playerid]);
dini_IntSet(udb_encode(PlayerName), "JobsDone", JobsDone[playerid]);
dini_IntSet(udb_encode(PlayerName), "JobLevel", JobLevel[playerid]);
dini_IntSet(udb_encode(PlayerName), "Skin", TruckerSkin[playerid]);
SendClientMessage(playerid, COLOUR_YELLOW, "[SERVER] All Registered Accounts Have Been Auto Saved.");
}
}
Код:
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\Trucking2.pwn(352) : error 017: undefined symbol "playerid" C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\Trucking2.pwn(354) : error 017: undefined symbol "playerid" C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\Trucking2.pwn(355) : error 017: undefined symbol "playerid" C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\Trucking2.pwn(356) : error 017: undefined symbol "playerid" C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\Trucking2.pwn(357) : error 017: undefined symbol "playerid" C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\Trucking2.pwn(358) : error 017: undefined symbol "playerid" C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\Trucking2.pwn(360) : error 017: undefined symbol "playerid" C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\Trucking2.pwn(361) : error 017: undefined symbol "playerid" C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\Trucking2.pwn(362) : error 017: undefined symbol "playerid" C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\Trucking2.pwn(363) : error 017: undefined symbol "playerid" C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\Trucking2.pwn(364) : error 017: undefined symbol "playerid" C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\Trucking2.pwn(365) : error 017: undefined symbol "playerid" C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\Trucking2.pwn(369) : warning 203: symbol is never used: "Destination" C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\Trucking2.pwn(369) : warning 203: symbol is never used: "PosDests" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 12 Errors.