18.12.2009, 00:38
Quote:
Originally Posted by kymsar
absolute to add/minus a value,uses for x,y,z 's value ++
Код:
forward fadd(a,value); forward Float:ffadd(Float:a,Float:value); public fadd(a,value)//int { if(a<0)return a-value; else return a+value; } public Float:ffadd(Float:a,Float:value)//float(for position,health etc.) { if(a<0)return a-b; else return a+b; } |