![]() |
Personal Notepad
What is it?
A personal notepad scripted in GS2. What use is there for it? For anyone to be able to save quick notes whenever they please. How do I install it? Step 1. Add this to the NPC Servers rights. PHP Code:
Add this to your servers Folder Options. PHP Code:
Copy this script and save it as a weapon. PHP Code:
http://img831.imageshack.us/img831/448/notefj.png http://img714.imageshack.us/img714/6056/aboutfs.png If you spot any bugs/problems with it shout me a pm and I will try to fix ASAP :) Edit: Updated the script for better naming of GUI's to avoid conflict with any other scripts. |
I really like your use of comments. It is a good habit to keep with you and will come in handy for future developers. :) One thing I would like to comment on is the fact that you do not need to specify "levels/" before a directory in your folder configuration, and since you are not using a clientside function to retrieve the notepad's text, you don't even need it in folder configuration at all. :D
|
Well it does use this, im not sure if its classed as a clientside function?
PHP Code:
Thanks for the comment :D |
Like Tig said, you're really commenting your code in a good way, keep it up. Personally I can't understand why anyone would want to use this script over making a .txt document on their computer though...
|
hehe idk I just wanted to challenge my self ;D
Im thinking of making a Caculator. Then making them all into one GUI where you can chose what you want to do. |
Looks pretty good, only things I would comment on are inconsistent naming of GUI controls (Close_Button, etc. are likely to conflict with other scripts) and that you're hiding the windows before they're even created in NotepadOpen() and AboutOpen(). You don't really need to create the GUIs until the player uses the command to open them.
|
Quote:
|
Quote:
|
I don't think this would kill the players loading speed too dramatically.
Fair enough of it was super long.. And as for the naming of the GUI's il rename them later, but it's being used on a smallish server and doesn't conflict with anything atm. Maybe like Notepad_ButtonName? |
Quote:
|
I wouldn't use it, but very nicely done. Great use of reading from a text file.
|
hehe thanks :3
|
@who ever neg repped me for this:
i Copied and Pasted it INto my Srever and it Didn't Work. First off, learn to spell. Secondly, learn some grammar. And lastly, grow up! Seeming I'm feeling nice I have decided to write a mini tutorial so you can get it to work. Step 1: Open RC and click the weapons button. http://img204.imageshack.us/img204/5539/step1en.png Step 2: Click the "Add" button. http://img403.imageshack.us/img403/3608/step2e.png Step 3: Name it! http://img265.imageshack.us/img265/2275/step3wf.png Step 4: At the very top write this, and substitute YOUR_GRAAL_ACCOUNT for your "Graal######" number. PHP Code:
http://img580.imageshack.us/img580/5332/step4v.png Step 5: Return to your Graal window and write /notepad There, wasn't that hard now was it? |
Quote:
|
1 Attachment(s)
I'm not joking..
|
All times are GMT +2. The time now is 03:39 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.