Creating Objects with arrays
#9

I can give you my functions so you can convert Float to Digit
pawn Код:
forward FloatToDigit(Float:Value);
forward Float:DigitToFloat(Value);

public FloatToDigit(Float:Value)
{
    new string[256];
    format(string,256,"%.0f",Value);
    new Digit = strval(string);
    return Digit;
}
public Float:DigitToFloat(Value)
{
    new string[256];
    format(string,256,"%d",Value);
    new Float:Digit = floatstr(string);
    return Digit;
}
Reply


Messages In This Thread
Creating Objects with arrays - by Toni - 28.07.2010, 02:22
Re: Creating Objects with arrays - by mastasquizy - 28.07.2010, 02:29
Re: Creating Objects with arrays - by Toni - 28.07.2010, 02:34
Re: Creating Objects with arrays - by mastasquizy - 28.07.2010, 02:41
Re: Creating Objects with arrays - by Toni - 28.07.2010, 02:45
Re: Creating Objects with arrays - by John_F - 28.07.2010, 02:52
Re: Creating Objects with arrays - by mastasquizy - 28.07.2010, 03:05
Re: Creating Objects with arrays - by smeti - 28.07.2010, 07:54
Re: Creating Objects with arrays - by ikey07 - 28.07.2010, 08:23
Re: Creating Objects with arrays - by deather - 28.07.2010, 09:22

Forum Jump:


Users browsing this thread: 1 Guest(s)