Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 4 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Updating script support, taking requests
Javist Offline
Junior Member

Posts: 46
Threads: 3
Joined: Sep 2010
Reputation: 0
#26
RE: Updating script support, taking requests

Quote: Can you make the if-else function that the parameter could turn Integers to Bools and vice-versa?
Quote:Could you rephrase this? Not sure I understand exactly.
Well.. i may mistake here, but i think, he's probably talked about the C-like "feature".
if(1), while(1), bool b = 0 ..etc.
In this case, something like this one can become handy Smile
Spoiler below!
bool toBool(int i)
{
    return i;
}
bool toBool(const char* str)
{
    return str!=NULL && strlen(str);
}
int fromBool(bool b)
{
    return b;
}


unzip, strip, touch, finger, grep, mount, fsck, more, yes, fsck, fsck, fsck, umount, sleep.
(This post was last modified: 08-28-2013, 09:27 PM by Javist.)
08-28-2013, 05:44 PM
Find


Messages In This Thread
RE: Updating script support, taking requests - by Javist - 08-28-2013, 05:44 PM



Users browsing this thread: 2 Guest(s)