shape1
shape2
shape3
shape4
shape7
shape8

error 010: invalid function or declaration


Статус
Закрыто для дальнейших ответов.

Илья87334

Новичок
Пользователь
07.12.2019
7
0
0
Заранее скинул public
 


Спойлер
Код:
public OnFilterScriptInit()
{
wheel = CreateObject(4574, 0.24,657.85,27.3,0.00,0.00,287.00);
objects[0] = CreateObject(4575,0,0, -10,0,0,90,107);
objects[1] = CreateObject(4576,0,0, -10,0,0,90,107);
objects[2] = CreateObject(4577,0,0, -10,0,0,90,107);
objects[3] = CreateObject(4575,0,0, -10,0,0,90,107);
objects[4] = CreateObject(4576,0,0, -10,0,0,90,107);
objects[5] = CreateObject(4577,0,0, -10,0,0,90,107);
objects[6] = CreateObject(4575,0,0, -10,0,0,90,107);
objects[7] = CreateObject(4576,0,0, -10,0,0,90,107);
objects[8] = CreateObject(4577,0,0, -10,0,0,90,107);
objects[9] = CreateObject(4576,0,0, -10,0,0,90,107);
objects[10] = CreateObject(4575,0,0, -10,0,0,90,107);
objects[11] = CreateObject(4576,0,0, -10,0,0,90,107);
objects[12] = CreateObject(4577,0,0, -10,0,0,90,107);
objects[13] = CreateObject(4576,0,0, -10,0,0,90,107);
objects[14] = CreateObject(4575,0,0, -10,0,0,90,107);
objects[15] = CreateObject(4576,0,0, -10,0,0,90,107);
for(new x;x<sizeof(pol);x++) pol[x] = CreateObject(19362,0,0, -10,0,0,0,0);
AttachObjectToObject(objects[0], wheel,0.0, 0.0, 13.4,0.0,0.0,107,0); //
AttachObjectToObject(objects[1], wheel,5.1, 0.0, 12.4,0.0,0.0,107,0); //
AttachObjectToObject(objects[2], wheel,9.45, 0.0, 9.5,0.0,0.0,107,0); //
AttachObjectToObject(objects[3], wheel,12.35, 0.0, 5.15,0.0,0.0,107,0); //
AttachObjectToObject(objects[4], wheel,13.35, 0.0, 0.04,0.0,0.0,107,0); //
AttachObjectToObject(objects[5], wheel,12.35, 0.0, -5.1,0.0,0.0,107,0); //
AttachObjectToObject(objects[6], wheel,9.45, 0.0, -9.4,0.0,0.0,107,0); //
AttachObjectToObject(objects[7], wheel,5.08, 0.0, -12.3,0.0,0.0,107,0); //
AttachObjectToObject(objects[8], wheel,0.0, 0.0, -13.3,0.0,0.0,107,0); //
AttachObjectToObject(objects[9], wheel,-5.14, 0.0, -12.3,0.0,0.0,107,0); //
AttachObjectToObject(objects[10], wheel,-9.45, 0.0, -9.4,0.0,0.0,107,0); //
AttachObjectToObject(objects[11], wheel,-12.35, 0.0, -5.05,0.0,0.0,107,0); //
AttachObjectToObject(objects[12], wheel,-13.35, 0.0, 0.04,0.0,0.0,107,0); //
AttachObjectToObject(objects[13], wheel,-12.35, 0.0, 5.16,0.0,0.0,107,0); //
AttachObjectToObject(objects[14], wheel,-9.45, 0.0, 9.47,0.0,0.0,107,0); //
AttachObjectToObject(objects[15], wheel,-5.1, 0.0, 12.4,0.0,0.0,107,0); //

for(new i = 0; i < sizeof(pol); i++) AttachObjectToObject(pol[i],objects[i],0.0,0.0,-2.2,0.0,90.0,0,0);
for(new x; x<16; ++x) SetObjectMaterial(pol[x], 0, 19341, "egg_texts", "easter_egg01", 0x000000FF);
timer1 = SetTimer("wheelm",mt2,false);
return 1;
}
urn 1; ///На эту строку 
{
//==============================================================================
public OnFilterScriptExit()
{
for(new x,y;x<sizeof(objects),y<sizeof(pol);x++,y++) DestroyObject(objects[x]), DestroyObject(pol[y]), DestroyObject(wheel);
KillTimer(timer1);
KillTimer(timer2);
KillTimer(timer3);
KillTimer(timer4);
return 1;
}
//==============================================================================
public wheelm()
{
KillTimer(timer1);
new Float:RotX,Float:RotY,Float:RotZ;
GetObjectRot(wheel, RotX, RotY, RotZ);
MoveObject(wheel, 0.24,657.85,27.3+0.02, 0.003, RotX, RotY-22.5, RotZ);
timer2 = SetTimer("wheels",mt,false);
}
//==============================================================================
public wheels()
{
KillTimer(timer2);
timer3 = SetTimer("wheelm2",mt2,false);
}
//==============================================================================
public wheelm2()
{
KillTimer(timer3);
new Float:RotX,Float:RotY,Float:RotZ;
GetObjectRot(wheel, RotX, RotY, RotZ);
MoveObject(wheel, 0.24,657.85,27.3-0.02, 0.003, RotX, RotY-22.5, RotZ);
timer4 = SetTimer("wheels2",mt,false);
}
//==============================================================================
public wheels2()
{
KillTimer(timer4);
timer1 = SetTimer("wheelm",mt2,false);
}
//==============================================================================



 
Последнее редактирование модератором:

Илья87334

Новичок
Пользователь
07.12.2019
7
0
0
Спойлер
public OnFilterScriptInit()
{
wheel = CreateObject(4574, 0.24,657.85,27.3,0.00,0.00,287.00);
objects[0] = CreateObject(4575,0,0, -10,0,0,90,107);
objects[1] = CreateObject(4576,0,0, -10,0,0,90,107);
objects[2] = CreateObject(4577,0,0, -10,0,0,90,107);
objects[3] = CreateObject(4575,0,0, -10,0,0,90,107);
objects[4] = CreateObject(4576,0,0, -10,0,0,90,107);
objects[5] = CreateObject(4577,0,0, -10,0,0,90,107);
objects[6] = CreateObject(4575,0,0, -10,0,0,90,107);
objects[7] = CreateObject(4576,0,0, -10,0,0,90,107);
objects[8] = CreateObject(4577,0,0, -10,0,0,90,107);
objects[9] = CreateObject(4576,0,0, -10,0,0,90,107);
objects[10] = CreateObject(4575,0,0, -10,0,0,90,107);
objects[11] = CreateObject(4576,0,0, -10,0,0,90,107);
objects[12] = CreateObject(4577,0,0, -10,0,0,90,107);
objects[13] = CreateObject(4576,0,0, -10,0,0,90,107);
objects[14] = CreateObject(4575,0,0, -10,0,0,90,107);
objects[15] = CreateObject(4576,0,0, -10,0,0,90,107);
for(new x;x<sizeof(pol);x++) pol[x] = CreateObject(19362,0,0, -10,0,0,0,0);
AttachObjectToObject(objects[0], wheel,0.0, 0.0, 13.4,0.0,0.0,107,0); //
AttachObjectToObject(objects[1], wheel,5.1, 0.0, 12.4,0.0,0.0,107,0); //
AttachObjectToObject(objects[2], wheel,9.45, 0.0, 9.5,0.0,0.0,107,0); //
AttachObjectToObject(objects[3], wheel,12.35, 0.0, 5.15,0.0,0.0,107,0); //
AttachObjectToObject(objects[4], wheel,13.35, 0.0, 0.04,0.0,0.0,107,0); //
AttachObjectToObject(objects[5], wheel,12.35, 0.0, -5.1,0.0,0.0,107,0); //
AttachObjectToObject(objects[6], wheel,9.45, 0.0, -9.4,0.0,0.0,107,0); //
AttachObjectToObject(objects[7], wheel,5.08, 0.0, -12.3,0.0,0.0,107,0); //
AttachObjectToObject(objects[8], wheel,0.0, 0.0, -13.3,0.0,0.0,107,0); //
AttachObjectToObject(objects[9], wheel,-5.14, 0.0, -12.3,0.0,0.0,107,0); //
AttachObjectToObject(objects[10], wheel,-9.45, 0.0, -9.4,0.0,0.0,107,0); //
AttachObjectToObject(objects[11], wheel,-12.35, 0.0, -5.05,0.0,0.0,107,0); //
AttachObjectToObject(objects[12], wheel,-13.35, 0.0, 0.04,0.0,0.0,107,0); //
AttachObjectToObject(objects[13], wheel,-12.35, 0.0, 5.16,0.0,0.0,107,0); //
AttachObjectToObject(objects[14], wheel,-9.45, 0.0, 9.47,0.0,0.0,107,0); //
AttachObjectToObject(objects[15], wheel,-5.1, 0.0, 12.4,0.0,0.0,107,0); //
for(new i = 0; i < sizeof(pol); i++) AttachObjectToObject(pol,objects,0.0,0.0,-2.2,0.0,90.0,0,0);

for(new x; x<16; ++x) SetObjectMaterial(pol[x], 0, 19341, "egg_texts", "easter_egg01", 0x000000FF);


timer1 = SetTimer("wheelm",mt2,false);


return 1;


}





 








Спасибо! 



Как тему закрыть?


 
Статус
Закрыто для дальнейших ответов.