Returning strings or floats
#2

There is absolutely no need for multiple filterscripts, use callback hooking and compile them into the gamemode but to answer your question try this.

#include <a_samp>

pawn Code:
main() {
    new Float:t = Test();
    printf("%f", t);
}

forward Float:Test();
public Float:Test() { return 1.0; }
You can test that code on this website.

http://slice-vps.nl:7070/
Reply


Messages In This Thread
Returning strings or floats - by PowerPC603 - 19.12.2013, 17:41
Re: Returning strings or floats - by Pottus - 19.12.2013, 18:01
Re: Returning strings or floats - by Patrick - 19.12.2013, 18:19
Re: Returning strings or floats - by Emmet_ - 19.12.2013, 18:28
Re: Returning strings or floats - by PowerPC603 - 19.12.2013, 20:30
Re: Returning strings or floats - by PowerPC603 - 19.12.2013, 21:29

Forum Jump:


Users browsing this thread: 2 Guest(s)