• trouble printing entindex
    13 replies, posted
done
Ask a moderator to lock your topic then.
wait i'm getting other errors [editline]11:33PM[/editline] whenever I make a table of entindexes and I use in initpostentity "if table.HasValue(table, v:EntIndex()) then" it won't work...
try v:EntIndex()
[QUOTE=Map in a box;22715618]try v:EntIndex()[/QUOTE] And isn't that what i'm just doing?
-snip- le, v:EntIndex) -snip- Your using v:EntIndex, not v:EntIndex()
[QUOTE=Map in a box;22715664]-snip- le, v:EntIndex) -snip- Your using v:EntIndex, not v:EntIndex()[/QUOTE] [QUOTE=Deep Throat;22715572]wait i'm getting other errors [editline]11:33PM[/editline] whenever I make a table of entindexes and I use in initpostentity "if table.HasValue(table, v:EntIndex()) then" it won't work...[/QUOTE]
What are the errors?
please help it just doesnt work
Have you tried getting the IDs in MP with: [B]lua_run concommand.Add("stuffhere", function(ply) print(ply:GetEyeTrace().Entity:EntIndex()) end)[/B]? Just bind a key to this command and tap it to get the SERVER ID of the thing you want.
the ID is different I just hope it works
Of course it will you silly.
If the number of slots differs the ID will be different. To fix that use ent:EntIndex() - MaxPlayers() to save and number + MaxPlayers() to load.
You have a variable named table overriding the table library. Rename your variable.
Sorry, you need to Log In to post a reply to this thread.