18.08.2010, 02:37
Anyone knows the reason this code appears?
Happens under onplayerconnect:
Thanks.
Код:
Warning(opcode 0x107): Exception 0xC0000005 at 0x469797
pawn Код:
public OnPlayerConnect(playerid)
{
if(IsPlayerNPC(playerid)) return 1;
AddMapIconFromFile(ICON_FILE_NAME);
PlayerTexts(playerid);
SetPVarInt(playerid, "SBoost", 1);
SetPVarInt(playerid, "Deaths", 0);
SetPVarInt(playerid, "DrunkLvl", 0);
SetPVarInt(playerid, "Kills", 0);
SetPVarInt(playerid, "Level", 0);
SetPVarInt(playerid, "LoggedIn", 0);
SetPVarInt(playerid, "Registered", 0);
SetPVarInt(playerid, "God", 0);
SetPVarInt(playerid, "FailLogin", 0);
SetPVarInt(playerid, "BankMoney", 0);
SetPVarInt(playerid, "Bounty", 0);
SetPVarInt(playerid, "SpawnTicket", 0);
SetPVarInt(playerid, "PlayerSkin", 0);
SetPVarInt(playerid, "TimesSpawned", 0);
SetPVarInt(playerid, "ConnectTime", gettime());
return 1;
}