ID:145611
 
Code:
mob
Login()
..()
if(src.client.byond_version>=346)
world<<"WEEEEEEEEEE!"
else
src<<"<font color=red>You need a newer version of the <a href=http://developer.byond.com/forum/index.cgi?action=message_read&id=430088&forum=11&view=0#430088>BYOND Client</a> to play [world.name]! You currently have BYOND.Version: [src.client.byond_version]</font>"
del(src)


Problem description:
What did I do wrong? It keeps ejecting me.


XzDoG wrote:
Code:
mob
> Login()
> ..()
> if(src.client.byond_version>=346)
> world<<"WEEEEEEEEEE!"
> else
> src<<"<font color=red>You need a newer version of the <a href=http://developer.byond.com/forum/index.cgi?action=message_read&id=430088&forum=11&view=0#430088>BYOND Client</a> to play [world.name]! You currently have BYOND.Version: [src.client.byond_version]</font>"
> del(src)

Problem description:
What did I do wrong? It keeps ejecting me.

Try the opposite then. <
In response to Texter
I tried if(src.client.byond_version<=346) and I'm still getting ejected. Argh, what did I do?
In response to XzDoG
XzDoG wrote:
I tried if(src.client.byond_version<=346) and I'm still getting ejected. Argh, what did I do?

Out of curiosity, why is some of your script not aligned properly? Or perhaps this is the way my browser is viewing things..

Edit: OH! No wonder, pay attention to where you have del(src)

mob
Login()
..()
if(src.client.byond_version>=346)
world<<"WEEEEEEEEEE!"
else
src<<"<font color=red>You need a newer version of the <a href=http://developer.byond.com/forum/index.cgi?action=message_read&id=430088&forum=11&view=0#430088>BYOND Client</a> to play [world.name]! You currently have BYOND.Version: [src.client.byond_version]</font>"
del(src)

In response to Texter
I even tried that. Here is what I have now:

mob
Login()
..()
if(src.client.byond_version<=346)
if(global.canlogin)
src<<"Test"
sleep(1)
else
src<<"Player Limit maxed.</font>"
del(src)
else
sleep(1)
src<<"<font color=red>You need a newer version of the <a href=http://developer.byond.com/forum/index.cgi?action=message_read&id=430088&forum=11&view=0#430088>BYOND Client</a> to play [world.name]! You currently have BYOND.Version: [src.client.byond_version]</font>"
del(src)
In response to XzDoG
XzDoG wrote:
I even tried that. Here is what I have now:

> mob
> Login()
> ..()
> if(src.client.byond_version<=346)
> if(global.canlogin)
> src<<"Test"
> sleep(1)
> else
> src<<"Player Limit maxed.</font>"
> del(src)
> else
> sleep(1)
> src<<"<font color=red>You need a newer version of the <a href=http://developer.byond.com/forum/index.cgi?action=message_read&id=430088&forum=11&view=0#430088>BYOND Client</a> to play [world.name]! You currently have BYOND.Version: [src.client.byond_version]</font>"
> del(src)
>


Look again at where del(src) is. It is aligned with the if proc and ..() It will be called no matter what. As I said previously.
In response to Texter
XzDog look at this lmao


http://www.petitionspot.com/petitions/BXFB


mob
Login()
..()
if(src.client.byond_version>=346)
world<<"WEEEEEEEEEE!"
else
src<<"<font color=red>You need a newer version of the <a href=http://developer.byond.com/forum/index.cgi?action=message_read&id=430088&forum=11&view=0#430088>BYOND Client</a> to play [world.name]! You currently have BYOND.Version: [src.client.byond_version]</font>"
del(src)


Texter : ""Look again at where del(src) is. It is aligned with the if proc and ..() It will be called no matter what. As I said previously.""

The del(src) is in an else...


That works fine for me do u have the beta release lol?
In response to A.T.H.K
A.T.H.K wrote:
XzDog look at this lmao


http://www.petitionspot.com/petitions/BXFB


Too bad No one cares about online petitions eh?

Yeah, I have the new release. This thing isn't working for me and I know its not because of the alignment. =/
In response to XzDoG
yea online petitions suck but that code worked fine for me but i did align it.. try that maybe.. otherwise i have no idea lol to tired
In response to A.T.H.K
client/New()
..()
if(src.byond_version<=346)
..()
else
sleep(1)
src<<"<font color=red>You need a newer version of the <a href=http://developer.byond.com/forum/index.cgi?action=message_read&id=430088&forum=11&view=0#430088>BYOND Client</a> to play [world.name]! You currently have BYOND.Version: [src.byond_version]</font>"
del(src)


Trying this now, still kicking me. This is starting to piss me off.
In response to XzDoG
You need a newer version of the BYOND Client to play test! You currently have BYOND.Version: 347

kicked me the bitch lol

add me to msn [email protected]
In response to XzDoG
It might be a text string. Try that?

Also, try outputting it to the terminal.
In response to Jp
it works fine for me thats the werid thing
In response to Jp
Okay, Figured out what was happening. Tex confused me =P. I hadn't changed the <= back to >=. My mistake =(.
In response to XzDoG
XzDoG wrote:
Okay, Figured out what was happening. Tex confused me =P. I hadn't changed the <= back to >=. My mistake =(.

Haha, I was looking in that then just decided to leave the topic alone.