SAMP 0.3c RC Object Bug
#1

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
Reply
#2

Put it in the subforum 0.3c RC scripting!
Reply
#3

0xC0000005 means invalid object id.
Reply
#4

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.
Reply
#5

Are there any warnings when compiling?
Reply
#6

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)