Tag mismatch
#8

Quote:
Originally Posted by [XST]O_x
Посмотреть сообщение
No no,you got me wrong,the RotateObject function is absolutely fine,it's in one of the includes I use,the problem is in the specific combination of RotateObject and gInfo[gateid][dif],for example if I'd take the number 3 and position it instead of gInfo[gateid][dif],everything would be fine,but I really need the subtracted result for the rotation to be smooth.
Well then the problem is that RotateObject only accepts integers, not floats in that argument. So the fix is quite simple

pawn Код:
RotateObject(gInfo[gid][gObj],gInfo[gid][oldRX],gInfo[gid][oldRY],gInfo[gid][oldRZ],floatround(gInfo[gid][dif]),gInfo[gid][rSpeed]);
Or else store it as an integer in the first place using the same method.
Reply


Messages In This Thread
Tag mismatch - by [XST]O_x - 08.08.2010, 20:26
Re: Tag mismatch - by JaTochNietDan - 08.08.2010, 20:52
Re: Tag mismatch - by [XST]O_x - 08.08.2010, 20:57
Re: Tag mismatch - by JaTochNietDan - 08.08.2010, 21:07
Re: Tag mismatch - by [XST]O_x - 08.08.2010, 21:14
Re: Tag mismatch - by JaTochNietDan - 08.08.2010, 21:16
Re: Tag mismatch - by [XST]O_x - 08.08.2010, 21:19
Re: Tag mismatch - by JaTochNietDan - 08.08.2010, 21:22
Re: Tag mismatch - by [XST]O_x - 08.08.2010, 21:26

Forum Jump:


Users browsing this thread: 1 Guest(s)