hay leute
ich bin gerade am Selfemade und habe ein kleines problem also ich möchte objecte nach einer gewissen zeit spawnen lassen
aber mein problem ist das nichts passiert bitte schnellll um Hilfe Bitte
forward SpawnBaustelle();
forward VerschwindeBaustelle();
new BaustellenObjekte[23];
public OnGameModeInit()
{
SetTimer("SpawnBaustelle", 1200000, 0);
return 1;
}
public SpawnBaustelle()
{
BaustellenObjekte[0] = CreateObject(1435,1398.54199219,-918.62890625,38.67890167,0.00000000,0.00000000,0.00000000); //object(dyn_roadbarrier_5b) (1)
BaustellenObjekte[1] = CreateObject(1228,-891.71832275,-1108.77233887,98.37696075,0.00000000,0.00000000,344.75000000); //object(roadworkbarrier1) (1)
BaustellenObjekte[2] = CreateObject(1228,-892.65716553,-1112.19494629,98.38206482,0.00000000,0.00000000,343.50000000); //object(roadworkbarrier1) (3)
BaustellenObjekte[3] = CreateObject(1228,-893.53076172,-1115.48950195,98.38206482,0.00000000,0.00000000,344.00000000); //object(roadworkbarrier1) (4)
BaustellenObjekte[4] = CreateObject(1228,-894.39556885,-1118.70141602,98.38206482,0.00000000,0.00000000,344.00000000); //object(roadworkbarrier1) (5)
BaustellenObjekte[5] = CreateObject(1427,-893.99621582,-1117.15515137,98.50807953,0.00000000,0.00000000,75.25000000); //object(cj_roadbarrier) (1)
BaustellenObjekte[6] = CreateObject(1427,-893.09832764,-1113.86767578,98.50807953,0.00000000,0.00000000,74.49780273); //object(cj_roadbarrier) (2)
BaustellenObjekte[7] = CreateObject(1427,-892.12567139,-1110.43713379,98.50807953,0.00000000,0.00000000,73.74780273); //object(cj_roadbarrier) (3)
BaustellenObjekte[8] = CreateObject(898,-975.09088135,-1034.00219727,101.78743744,0.00000000,0.00000000,0.00000000); //object(searock02) (1)
BaustellenObjekte[9] = CreateObject(901,-967.33087158,-1028.61059570,100.84070587,0.00000000,0.00000000,0.00000000); //object(searock05) (1)
BaustellenObjekte[10] = CreateObject(906,-968.03485107,-1035.71691895,97.47954559,0.00000000,0.00000000,0.00000000); //object(p_rubblebig) (1)
BaustellenObjekte[11] = CreateObject(906,-973.77276611,-1028.28698730,97.31508636,0.00000000,0.00000000,0.00000000); //object(p_rubblebig) (2)
BaustellenObjekte[12] = CreateObject(1228,-1223.54748535,-782.28436279,63.32095337,0.00000000,0.00000000,313.24853516); //object(roadworkbarrier1) (6)
BaustellenObjekte[13] = CreateObject(1228,-1221.06225586,-779.84759521,63.32095337,0.00000000,0.00000000,313.24768066); //object(roadworkbarrier1) (7)
BaustellenObjekte[14] = CreateObject(1228,-1216.27661133,-775.25030518,63.32095337,0.00000000,0.00000000,313.24768066); //object(roadworkbarrier1) (8)
BaustellenObjekte[15] = CreateObject(1228,-1218.78649902,-777.55102539,63.32095337,0.00000000,0.00000000,313.24768066); //object(roadworkbarrier1) (9)
BaustellenObjekte[16] = CreateObject(1427,-1217.49035645,-776.39221191,63.44696808,0.00000000,0.00000000,42.49572754); //object(cj_roadbarrier) (4)
BaustellenObjekte[17] = CreateObject(1427,-1219.95581055,-778.76647949,63.44696808,0.00000000,0.00000000,43.74450684); //object(cj_roadbarrier) (5)
BaustellenObjekte[18] = CreateObject(1427,-1222.27819824,-781.11297607,63.44696808,0.00000000,0.00000000,43.74450684); //object(cj_roadbarrier) (6)
SetTimer("VerschwindeBaustelle", 1200000, 0);
return 1;
}
public VerschwindeBaustelle()
{
DestroyObject(BaustellenObjekte[0]);
DestroyObject(BaustellenObjekte[1]);
DestroyObject(BaustellenObjekte[2]);
DestroyObject(BaustellenObjekte[3]);
DestroyObject(BaustellenObjekte[4]);
DestroyObject(BaustellenObjekte[5]);
DestroyObject(BaustellenObjekte[6]);
DestroyObject(BaustellenObjekte[7]);
DestroyObject(BaustellenObjekte[8]);
DestroyObject(BaustellenObjekte[9]);
DestroyObject(BaustellenObjekte[10]);
DestroyObject(BaustellenObjekte[11]);
DestroyObject(BaustellenObjekte[12]);
DestroyObject(BaustellenObjekte[13]);
DestroyObject(BaustellenObjekte[14]);
DestroyObject(BaustellenObjekte[15]);
DestroyObject(BaustellenObjekte[16]);
DestroyObject(BaustellenObjekte[17]);
DestroyObject(BaustellenObjekte[18]);
SetTimer("SpawnBaustelle", 1200000, 0);
return 1;
}
Ich kapiere einfach nicht was falsch ist
MFG
Be_Go