Blockland Forums > Modification Help

RTB Development

Pages: << < (756/889) > >>

Nexus:


--- Code: ---//rtb functions.cs

//- isInt (determines whether or not a string contains an integer)
function isInt(%string)
{
%numbers = "0123456789";
for(%i=0;%i<strLen(%string);%i++)
{
%char = getSubStr(%string,%i,1);
if(strPos(%numbers,%char) $= -1)
return 0;
}
return 1;
}
--- End code ---


--- Code: ---===>echo(isint(-5));
0
--- End code ---

aaaaaaaaaaaa


--- Code: ---//not_rtb.cs
function isint(%x)
{
if(%x $= mfloor(%x))
return 1;
return 0;
}
--- End code ---


--- Code: ---==>echo(isint(-5));
1
--- End code ---

Now that's more like it

Negative numbers are integers

edit:
also strings like 5.000

Crown2:


--- Quote from: -Jetz- on November 06, 2011, 06:50:52 PM ---Could we eventually have personalized friend requests, specifically, a custom message sent with the request? I get friend requests from random people I'm not sure if I know, and accepting it just so I can ask why they sent it is a bit annoying.

It would also be nice to have some way of knowing if someone accepts messages from non-friends before I actually send them one.

--- End quote ---
Yeah I would like this to, I get random requests. I'd like a reason :p

Demian:

God damnit. Once again my RTB add-on groups have deleted themselves.

Ephialtes:

I still can't replicate a case that causes the groups to get deleted. It seems to be really obscure. Did you modify the groups recently prior to the deletion?

Derroith:

We the community should make up a bunch of stuff for then Infomaniac to say, that'd be awesome, we would have like 300 tips!

Pages: << < (756/889) > >>

Go to full version