Missing operator in includes
#1

I just stumbled upon the fact that you can assign a value to a float, but you get a warning when you do the opposite, so did the sa-mp team forget to add this operator in includes :
pawn Код:
stock operator=(Float:oper1)
    return floatround(oper1);
Which handles it as it should and repairs the warning.
Reply
#2

Hehe, simple but effective. Should be added to future float.incs in my opinion.
Reply
#3

Yes, that's exactly what I'm thinking.
Reply
#4

Well, I know you're right, however I still find this needed in some form of default include.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)