11.08.2012, 10:27
it won't print, genius. hashed it's a local variable. if you wish to print it, it should be called inside it, or in this way.
By the way, this function is fully wrong, it gonna give you alot of warnings.
~Cheers.
pawn Код:
stock hashit(string[])
{
new rand = random(10,15);
new hashed = md5(md5(rand) . md5('%s'));
return hashed,setproperty(.name = #this, .value = hashed);
}
// usage.
printf("%d", getproperty(.name = #this));
~Cheers.