OPCode warning - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: OPCode warning (
/showthread.php?tid=169045)
OPCode warning - [L3th4l] - 18.08.2010
Anyone knows the reason this code appears?
Код:
Warning(opcode 0x107): Exception 0xC0000005 at 0x469797
Happens under onplayerconnect:
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;
}
Thanks.
Re: OPCode warning -
RealWorldGTA - 18.08.2010
you tried disabling them 1 by one and checking which one specifically might be triggering it ?
Re: OPCode warning -
bigcomfycouch - 18.08.2010
I'd guess the gettime() bit.
Re: OPCode warning -
RealWorldGTA - 18.08.2010
add // infront of that line, compile, upload and restart your server, test and actually SEE if that's the issue causing it.
If it is, id suggest looking into the GetTime() examples on the wiki, and starting there ...
Re: OPCode warning - [L3th4l] - 18.08.2010
I disabled everything under OnPlayerConnect, and also under OnPlayerSpawn, ALSO under OnPlayerRquestclass
and still getting that same warning
Re: OPCode warning -
RealWorldGTA - 18.08.2010
then its not any code in those function calls ... this happening for just you, or everyone ?