ID:163291
 
Is there a better way of phrasing this...

if(!findtext(N,1)&&!findtext(N,2)&&!findtext(N,3)&&!findtext(N,4)&&!findtext(N,5)&&!findtext(N,6)&&!findtext(N,7)&&!findtext(N,8)&&!findtext(N,9)&&!findtext(N,0))


Eh... er, thanks! =P

~Ease~
uhhh wtf are u tryin to do?
In response to Falacy
Make sure it has no numbers in...

*embarrased*

~Ease~

P.s. It is 02.21am so I might not be completely on the ball right now...
In response to Ease
proc/has_numbers(string)
var/length = length(string)
for(var/a = 1 to length)
var/ascii = text2ascii(string, a)
if(ascii >= 48 && ascii <= 57) return 0
return 1
In response to Ease
mob/verb/TestN(var/N as text)
for(var/i=0,i<=9,i++)
if(findtext(N,"[i]"))
world<<"[i] found in [N]"
In response to Popisfizzy
Thanky Sfizzy! =D

~Ease~
In response to Popisfizzy
Popisfizzy wrote:
> proc/has_numbers(string)
> var/length = length(string)
> for(var/a = 1 to length)
> var/ascii = text2ascii(string, length)
> if(ascii >= 48 && ascii <= 57) return 0
> return 1
>


whats the point of var/a? or of that for loop at all o.O
In response to Falacy
make a title screen for our game
In response to Falacy
A mistake on my part, which I've now corrected.