SA-MP Forums Archive
Object Crash - 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: Object Crash (/showthread.php?tid=96181)



Object Crash - _TeRmiNaToR_ - 06.09.2009

When I create this object id: 13592 game are crashed, but this are not a invalid object ID

My code:

pawn Код:
public CreateLoop()
{
  new Float:X, Float:Y,Float:Px,Float:Py;
  X=(floatmul(floatcos(degree,degrees),radius));
  new Float:Temp;
  Temp =((radius*radius)-floatpower(X,2));
  Y= floatsqroot(Temp);
  Px=floatadd(Ox,X);
  Py=floatadd(Oy,Y);
  CreateObject(loop, Px,Py,3.000, 0,0,0);
  SetObjectRot(loop,0,0,degree);
    return 1;
}