![]() |
How to test for a number...
Ok I'm stumped.. how would it be possible to check what the player says via #c, and check to see if the text is a number?
What I mean is like, if the player says "adosfj", then check if its a number, if it isn't perform an else, but if they say "23502", then it would be correct. Basically to check if its a number and not letters or other characters. |
NPC Code: Hehe I'm not that good at stuff like that...but I think that should work... |
Hmm...
NPC Code: |
:eek:
|
Hmm that seems close LM.. but its not working right for some reason.. it always says it doesn't have all numbers =/
|
Someone make a logical guess please.. *boost*
|
i have no clue y0
|
doesn't if (playersaysnumber) work?
|
hmm
i never heard of that command.. |
you could possibly use tokenize :D
|
Quote:
that was what I was like when people were comming up with these long scripts lol.... that is how I made a bank script a long time ago.. |
Quote:
|
all these new commands are confusing meh!@
i need to learn how to use keydown LM help, y0 |
| All times are GMT +2. The time now is 06:51 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.