Files

> > CS2D > Lua Scripts > [DEV] Improved print() 1.1
Files overviewCS2D overviewLua Scripts overview

English [DEV] Improved print() 1.1 >

10 comments402 b, 465 Downloads

old [DEV] Improved print() 1.1

VADemon
User Off Offline

[Developer Tools] Improved print

The one and only feature:
provides the same print() functionality as the normal Lua does. Namely, you can now print multiple arguments and any type of argument (a table, boolean etc.) (Because I'm pissed off 'optimizing' the code for CS2D that I previously test in LuaDemo)

• Works with all types, replaces tabs (\t).
• The standard print() is still avaible under LUA_PRINT()

See screenshots for examples.

Install:
drop the print.lua into your /lua/autorun/ folder

Changelog 1.1: fixed for printing a single variable // oh, Flacko reported that first. Thank you then

Licensed under WTFPLv2 IMG:https://www.wtfpl.net/wp-content/uploads/2012/12/wtfpl-badge-2.png
edited 13×, last 07.11.15 06:20:06 am
Approved by Seekay

Download Download

402 b, 465 Downloads

Comments

10 comments
To the start Previous 1 Next To the start

Log in!

You need to log in to be able to write comments!Log in

old

Inflexion
User Off Offline

Thanks VADemon for this awesome file!
Here's a like from my part.
I like it!

old

Xirot
User Off Offline

Looks really simple and nice.
I like it!

old Cool!

Gasip
User Off Offline

I like it thanks VADemon
I like it!

old

G3tWr3ck3d
User Off Offline

Good job
I like it!

old

VADemon
User Off Offline

@user Flacko:
Oh fuck. I thought I've reuploaded the fixed version yeasterday already
Due to testing I had to remove LUA_PRINT() from that line what first time caused CS2D to print about 10MB of crap to console
Im gonna reupload it right now

old

EngiN33R
Moderator Off Offline

Good tool, simple but neat.
I like it!

old

Flacko
User Off Offline

I like it because of the license.
However, this line is causing a bug:
1
if #t==1 then return nil end --very small improvement

Passing a single parameter won't print anything
I like it!

old

Infinite Rain
Reviewer Off Offline

I don't really see use of it.

old

save72
BANNED Off Offline

Wow, good
I like it!

old

sheeL
User Off Offline

Good Job 5/5
I like it!
To the start Previous 1 Next To the start