Wenn du den Text kopierst werden Smiley's nicht mitkopiert
int number_ex(int a1, int a2)
{
a1 &= 0x7fffffff;
a2 &= 0x7fffffff;
int v1 = (a1 > a2 ? a2 : a1);
int v2 = (a1 > a2 ? a1 : a2);
return rand() % (v2 + 1 - v1) + v1;
}
He means that there are many commands which use the number_ex function and there are also some alias for the dice function which could be also used to crash a server.Quote:
What do you mean by that?
int from2 = from;
int to2 = to;
if ( from > to )
{
to2 = from;
from2 = to;
}
unsigned int div = to2 + 1 - from2;
if (div==0)
return 0;
return from2 + thecore_random() % div;