Counter - Strike 2D Thailand
ยินดีต้อนรับสู่เว็บ CS2D Thailand

Join the forum, it's quick and easy

Counter - Strike 2D Thailand
ยินดีต้อนรับสู่เว็บ CS2D Thailand
Counter - Strike 2D Thailand
Would you like to react to this message? Create an account in a few clicks or log in to continue.
เข้าสู่ระบบ(Log in)

ลืม(forget) password

ผู้ที่กำลัง online
ผู้ที่ online ทั้งหมด 1 คน :: ลงทะเบียน 0 คน, ซ่อน 0 คน และ 1 ผู้มาเยือน

(ไม่มี)

[ View the whole list ]


มีผู้ใช้ online พร้อมกันสูงสุด 97 คน เมื่อ Sat Jul 31, 2021 10:33 pm
Links
http://www.unrealsoftware.de
http://www.cs2d.com

วิธีถามเกี่ยวกับ LUA ต้องอ่าน

Go down

วิธีถามเกี่ยวกับ LUA ต้องอ่าน Empty วิธีถามเกี่ยวกับ LUA ต้องอ่าน

ตั้งหัวข้อ by CS2DTH Thu Apr 12, 2012 8:32 pm

สวัสดีครับผม CS2DTH จะมาแนะนำวิธีการก่อนถามเกี่ยวกับ LUA นะครับ (อ้างอิงจาก USGN.de) lol!

OK ก่อนการถาม (Before asking for help)

Dot 1- RTFC: Read The Fucking Console
ก่อนจะถามนั้นเราจะต้องดูที่คอนโซลเป็นอย่างแรกเลย เมื่อมีการ Error ของ Script เรา
วิธีดูคอนโซลกดที่ ปุ่มเปลี่ยนภาษา ถ้าเกิดการ Error จะมีตัวอักษรสีแดงในคอนโซลของเรา คล้ายแบบนี้

Code:
LUA ERROR: sys/lua/ชื่อสคริปต์.lua:บรรทัดที่ Error: คำอธิบาย

Dot 2- RTFM: Read The Friggin manual
พยายามศึกษาจาก แหล่งต่างๆ ไม่ว่าจะ จากเว็บไซต์ หนังสือ หรืออย่างอื่น

เว็บไซต์ : [You must be registered and logged in to see this link.]
หนังสือ : [You must be registered and logged in to see this link.]

Dot 3- Try to manually debug your script
พยายาม ดีบัค สคริปต์ ด้วยคำสั่ง print() ถ้าสคริปต์ของเราถูกต้องจะมีอักษรตามที่เรากำหนดขึ้นในคอนโซล
ถ้าไม่ถูกต้องก็จะไม่มี

Dot ตัวอย่าง
Code:
print(Is it miss)
หากสคริปต์เราถูกต้องจะเห็น Is it miss ในคอนโซล Very Happy

Dot 4- Use a syntax highlighter and a good coding style
ใช้โปรแกรมที่เหมาะกับการทำสคริปต์รึป่าว ในความคิดผม ควรใช้
OK Notepad++ [You must be registered and logged in to see this link.]
OK SCiTE [You must be registered and logged in to see this link.]

OK เมื่อถาม (When asking for help)
Dot 1- Describe what you're trying to achieve
ให้บรรยายสิ่งที่ต้องการทำให้สำเร็จ

Dot 2- Post your script
ถ้าหากไม่สามารถอธิบายข้อผิดพลาดหรือสิ่งที่ต้องการให้โพสสคริปต์ของคุณลงในหัวข้อนี้(ไม่ใช่กระทู้นี้นะ lol!)

Dot 3- Describe your problems
บรรยายปัญหาออกมาให้หมด

Dot 4- Make your code readable
ทำให้โพสของคุณน่าอ่านหรืออ่านออก โดยใช้คำสั่ง [code] กับสคริปต์ของคุณ ยกตัวอย่าง

Not OK addhook('spawn','miss')
OK [code]addhook('spawn','correct')[/code]

Dot 5- Choose the right title
ใช้ไตเติ้ลหรือหัวข้อที่ถูกต้อง

OK มีคนพยายามจะช่วย (Somebody could/tried to help me)

Dot 1- Be polite
สุภาพเข้าไว้ lol!

Dot 2- Ask kindly to try again
ถามต่อดีๆเพื่อจะพยายามอีกครั้ง

Arrow จบ
CS2DTH
CS2DTH
Admin
Admin

จำนวนข้อความ : 67
Points : 131
ชื่อเสียง : 1
Join date : 13/04/2011

https://cs2dth.thai-forum.net

ขึ้นไปข้างบน Go down

ขึ้นไปข้างบน


 
Permissions in this forum:
คุณไม่สามารถพิมพ์ตอบ