Operator overloading
#10

I was wondering why floats worked and mine didn't so I tried

[code=pawn]#include <a_samp>

public OnFilterScriptInit()
{
new Float:a = 5, Float:b = 5;
a++;
b--;
printf("a = %.0f, b = %.0f", a, b);
return 1;
}[/code]

and got

Quote:

a = 6, b = 6

so there's a pretty massive bug somewhere in the compiler.
Reply


Messages In This Thread
Operator overloading - by Dabombber - 21.07.2009, 00:28
Re: Operator overloading - by Correlli - 21.07.2009, 00:32
Re: Operator overloading - by Dabombber - 21.07.2009, 00:45
Re: Operator overloading - by Correlli - 21.07.2009, 00:56
Re: Operator overloading - by Dabombber - 21.07.2009, 01:05
Re: Operator overloading - by yezizhu - 21.07.2009, 01:15
Re: Operator overloading - by Correlli - 21.07.2009, 01:24
Re: Operator overloading - by yezizhu - 21.07.2009, 01:32
Re: Operator overloading - by Correlli - 21.07.2009, 01:34
Re: Operator overloading - by Dabombber - 21.07.2009, 07:55

Forum Jump:


Users browsing this thread: 2 Guest(s)