#1

pawn Код:
#include <a_samp>
new tunnel;
new Float:degree=0.0;
new radius=50;

public OnFilterScriptInit()
{
    new
      Float:X = floatmul(floatcos(degree, degrees),radius),
      Float:Temp = (radius * radius) - floatpower(X, 2),
      Float:Y = floatsqroot(Temp),
      Float:Px = floatadd(0, X),
      Float:Py = floatadd(0, Y);
       
    for(new Objects; Objects < 180; Objects++)
    {
    tunnel = CreateObject(13666, Px, Py, 3.000, 0, 0, 0, 500);
    SetObjectRot(tunnel,0,0,degree);
    if(degree < 360)
    {
        degree++;
    }
  }
    return 1;
}
I would creating a tunnel as circle with trigonometri, but when I spawning in game, there give me crash. Where are the error?
Reply


Messages In This Thread
Why? - by _TeRmiNaToR_ - 10.09.2009, 07:36
Re: Why? - by _TeRmiNaToR_ - 10.09.2009, 10:42
Re: Why? - by _TeRmiNaToR_ - 10.09.2009, 13:17
Re: Why? - by Kyosaur - 10.09.2009, 13:31
Re: Why? - by Correlli - 10.09.2009, 13:45
Re: Why? - by _TeRmiNaToR_ - 10.09.2009, 13:45
Re: Why? - by saiberfun - 10.09.2009, 15:48
Re: Why? - by _TeRmiNaToR_ - 11.09.2009, 16:01

Forum Jump:


Users browsing this thread: 1 Guest(s)