12.12.2010, 12:08
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~
Everything is properly defined..
Thanks
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);
}
Thanks


