SA-MP Forums Archive
SAMP 0.3c RC Object Bug - 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: SAMP 0.3c RC Object Bug (/showthread.php?tid=198505)



SAMP 0.3c RC Object Bug - [SMURF]Smurf - 12.12.2010

Whenever I go to create an object from the new SA-MP 0.3c, it gives me this error; "Warning(opcode 0x107): Exception 0xC0000005 at 0x469797"

It seems to happen with all of the samp 0.3c objects but it works fine with the GTA SA objects.
It is running in a filterscript using this command

~Under OnPlayerCommandText~
Code:
if(strcmp(cmd, "/createobj", true) == 0)
{
    new tmp[128];
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
        SendClientMessage(playerid, COLOR_ORANGE, "USAGE: /createobj [objectid]");
        return 1;
    }
    new objid;
    objid = strval(tmp);
    GetPlayerPos(playerid, px, py, pz);
    GetPlayerFacingAngle(playerid, FacingAngle);
    ObjectID[playerid] = CreateObject(objid, px, py, pz-0.5, 0.0, 0.0, FacingAngle);
}
Everything is properly defined..
Thanks


Re: SAMP 0.3c RC Object Bug - Marcel - 12.12.2010

Put it in the subforum 0.3c RC scripting!


Re: SAMP 0.3c RC Object Bug - DVDK - 12.12.2010

0xC0000005 means invalid object id.


Re: SAMP 0.3c RC Object Bug - [SMURF]Smurf - 12.12.2010

Quote:
Originally Posted by Marcel
View Post
Put it in the subforum 0.3c RC scripting!
Sorry.

https://sampwiki.blast.hk/wiki/Objects_0.3c - I'm using those objects from there and they don't appear/it gives me that warning every time.


Re: SAMP 0.3c RC Object Bug - Abraham2nds - 12.12.2010

Are there any warnings when compiling?


Re: SAMP 0.3c RC Object Bug - [SMURF]Smurf - 12.12.2010

Nah it compiles fine, everything works except samp 0.3c objects just don't work for me.. i'm running samp 0.3c RC server and i'm creating those objects and it gives that error when I create those new objects.