SA-MP Forums Archive
Questionable... but help meh - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Other (https://sampforum.blast.hk/forumdisplay.php?fid=7)
+--- Forum: Everything and Nothing (https://sampforum.blast.hk/forumdisplay.php?fid=23)
+--- Thread: Questionable... but help meh (/showthread.php?tid=200947)



Questionable... but help meh - RSX - 19.12.2010

So it's a dumb C question and discussion maybe.. how do I stuck a float into cell.. without converting it?
I need to construct something that has an int type, but returns a float... i know it's stupid as fck, but I've got my point to that. I've tried pointers so far but it didn't worked out so well, i just need to return that crappy 4 bytes.. I just got an idea to try itoa(<thefloat>) then atoi(<theint>) but I'm not sure about the effects. Anyone knows how to avoid types in C and just make it do what i say it to.