Dateien

> > CS2D > Lua Scripts > [DEV] Improved print() 1.1
DateiübersichtCS2D-ÜbersichtLua Scripts-Übersicht

Englisch [DEV] Improved print() 1.1 >

10 Kommentare402 b, 426 Downloads

alt [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
13× editiert, zuletzt 07.11.15 06:20:06
Zugelassen von Seekay

Download Download

402 b, 426 Downloads

Kommentare

10 Kommentare
Zum Anfang Vorherige 1 Nächste Zum Anfang

Logge dich ein!

Du musst dich einloggen, um selber Kommentare verfassen zu können!Einloggen

alt

Inflexion
User Off Offline

Thanks VADemon for this awesome file!
Here's a like from my part.
Ich mag es!

alt

Xirot
User Off Offline

Looks really simple and nice.
Ich mag es!

alt Cool!

Gasip
User Off Offline

I like it thanks VADemon
Ich mag es!

alt

G3tWr3ck3d
User Off Offline

Good job
Ich mag es!

alt

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

alt

EngiN33R
Moderator Off Offline

Good tool, simple but neat.
Ich mag es!

alt

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
Ich mag es!

alt

Infinite Rain
Reviewer Off Offline

I don't really see use of it.

alt

save72
BANNED Off Offline

Wow, good
Ich mag es!

alt

sheeL
User Off Offline

Good Job 5/5
Ich mag es!
Zum Anfang Vorherige 1 Nächste Zum Anfang