Quote:
|
Originally Posted by Maercell
Timer with 1 Millisecond?
Quote:
public OnGameModeInit()
{
for(new Float:X = -2500.0000; X < 2500.0000; X++)
{
for(new FloatY = -2500.0000; Y < 2500.0000; Y++)
{
for(new FloatZ = -100.0000; Z < 100.0000; Z++)
{
CreateExplosion(X,Y,Z,7,2);
}
}
}
return 1;
}
|
Would be nearly the same
|
Then OnGameModeInit wouldnt end and your GM wouldnt load, Thats why you shoulnt put any timers to functions that will never end e.g.
pawn Код:
public OnGameModeInit()
{
SetTimer("Hai", 1000, 0);
return 1;
}
public Hai()
{
new i = 1;
while(i = 1)
{
i = 1;
}
return 1;
}
The function would never end so your script wouldnt be loaded and the GM would be useless,
And also ever since 0.2X you cant close your server and re open it with players connected as it auto kicks them, So i always gmx before i close it