Item problems
#3
(03-14-2012, 08:52 PM)FakeTruth Wrote: It should be IsValidItem with capital I
Rofl, thanks but im having another issue now
its not showing players in game and is failing to call the GetAllPlayers function

Code:
[23:51:19] Streaming chunks centered on [26, 13]
[23:51:19] Entity #1 (cPlayer) at [26 0 13] spawning for player "justin"
[23:51:19] Spawning player "justin" at {421.00, 92.60, 214.00}
[23:51:25] 1. Stack size: 0
[23:51:25] 2. Stack size: 1
[23:51:25] 3. Stack size: 2
[23:51:25] Calling bound function! :D
[23:51:25] -- Plugins/Core.lua:283: attempt to call method 'GetAllPlayers' (a nil value)
[23:51:25] error. Stack size: 0
[23:51:53] 1. Stack size: 0
[23:51:53] 2. Stack size: 1
[23:51:53] 3. Stack size: 2
[23:51:53] Calling bound function! :D
[23:51:53] -- Plugins/Core.lua:283: attempt to call method 'GetAllPlayers' (a nil value)
[23:51:53] error. Stack size: 0
[23:52:00] 1. Stack size: 0
[23:52:00] 2. Stack size: 1
[23:52:00] 3. Stack size: 2
[23:52:00] Calling bound function! :D
[23:52:00] ok. Stack size: 0
[23:52:23] Server console command: "say WTF"
[23:52:23] ยง5[SERVER] WTF
[23:52:30] Server console command: "stop"
[23:52:30] Shutting down server...
[23:52:30] <<<<>>>>SIGNALLED SEMAPHORE
[23:52:30] Saving all chunks...
[23:52:30] Deleting client "justin"
[23:52:30] ClientHandle at 06CF03B0 destroyed

Code:
function HandlePlayerListCommand( Split, Player )
    local World = Player:GetWorld()
    local PlayerList = World:GetAllPlayers()

    local Message = cChatColor.Green .. "Connected players: (".. cChatColor.White.. #PlayerList .. cChatColor.Green .. ")"
    Player:SendMessage( Message )

    local PlayerTable = {}
    for i, TempPlayer in ipairs( PlayerList ) do
        local PlayerName = TempPlayer:GetName()
        table.insert(PlayerTable, PlayerName )
    end

    Player:SendMessage( table.concat(PlayerTable, " ") )
    return true
end

now im not sure if that is a reason why its messing up but in game when someone joins it dosnt show them in game or on the list when you press tab, but the server acknowledges them being there and it ticks and what not. if i try to warp them to me, give them something, or teleport to them i cant. it says the player cannot be found, or it just dosnt do anything i turned off all the plugins other than the ones contained within the core.lua by the way thats the segment thats calling the error so far



the map also only generates the beginning area, it dosnt go beyond that it just drops off to nothing
Reply
Thanks given by:


Messages In This Thread
Item problems - by distroyed123 - 03-14-2012, 08:44 AM
RE: Item problems - by FakeTruth - 03-14-2012, 08:52 PM
RE: Item problems - by distroyed123 - 03-15-2012, 02:02 PM
RE: Item problems - by xoft - 03-15-2012, 05:54 PM
RE: Item problems - by FakeTruth - 03-15-2012, 08:18 PM
RE: Item problems - by distroyed123 - 03-16-2012, 10:29 AM
RE: Item problems - by xoft - 03-16-2012, 06:01 PM
RE: Item problems - by distroyed123 - 03-17-2012, 02:13 AM
RE: Item problems - by FakeTruth - 03-17-2012, 02:44 AM
RE: Item problems - by distroyed123 - 03-17-2012, 04:42 AM
RE: Item problems - by xoft - 03-17-2012, 10:54 PM
RE: Item problems - by distroyed123 - 03-18-2012, 09:45 AM



Users browsing this thread: 2 Guest(s)