var/list/players[]
var/mob/player/P
for(P in world)
players.Add(P)
players.Add("Cancel")
No errors on compile, but runtime error that null.Add() can't be executed... please help. Thanks in Advance,
-Nova
ID:148560
![]() Dec 31 2002, 7:23 am
|
|
var/list/players[] No errors on compile, but runtime error that null.Add() can't be executed... please help. Thanks in Advance, -Nova |
Skysaw wrote:
Nova2000 wrote: var/list/players[] No errors on compile, but runtime error that null.Add() can't be executed... please help. Thanks in Advance, These would work too: var/list/players[0] var/list/players = list() |
Nope, still not working... I have 2 places like this, login and booting...
Login Code: |
Add in:
world
New()
players = new
I think that should do that trick.