Somebody helpme with sum of floats?
#2

pawn Код:
native Float:operator+(Float:oper1, Float:oper2) = floatadd;
This is an operator override for variables tagged with "Float", which is included by default with a_samp (float.inc to be exact). However, you use "float". Those are not the same things. Also, I think if you define a value with a dot, it will be implicitly treated as a variable with Float tag.

See also: https://sampwiki.blast.hk/wiki/Scripting_Basics#Tags
Reply


Messages In This Thread
Somebody helpme with sum of floats? - by OdgFox - 23.01.2018, 23:19
Re: Somebody helpme with sum of floats? - by Misiur - 23.01.2018, 23:48
Re: Somebody helpme with sum of floats? - by OdgFox - 24.01.2018, 02:40
Re: Somebody helpme with sum of floats? - by OdgFox - 24.01.2018, 02:45
Re: Somebody helpme with sum of floats? - by Dayrion - 24.01.2018, 10:53
Re: Somebody helpme with sum of floats? - by edyun - 24.01.2018, 10:57

Forum Jump:


Users browsing this thread: 3 Guest(s)