|
 |
|
|
|
|
|
Attention:
This is for the discussion and releasing of tutorials for modifying GTA. Anything that isn't a tutorial will be deleted without notification.
- Please read the Official Modification Forum Rules & Procedure BEFORE posting!
- Data topics: The following topics contain information for formatting and writing tutorials.
- Requests are to be made in the pinned topic.
- New topics to this forum are subject to moderation, and will not appear immediately. Pending approval by a moderator, if a topic is deemed unsuitable it will be deleted without notification.
|
GTAGarage.com free mod hosting from GTANet, simply login with your GTAForums account details
GTAModding.com GTANet's modding wiki
GTA Modding Chatroom provided by irc.gtanet.com (Don't have an IRC client? Click here)
|
[IV | .NET] Writing .net scripts in C# For .netscripthook
 |
|
 |
| |
Gokaic  |
Posted: Saturday, May 15 2010, 07:06
|
Rat

Group: Members
Joined: Jan 17, 2006


|
I was going to ask how this was done, but I decided to do a bit of research and thought I'd post my findings. Please correct me if I'm wrong, because I haven't had a chance to test this. This is how you would set information to a .ini file. I'm using the ini file format from the original tutorial for continuity: | CODE | Settings.SetValue("INTERVAL", "SETTINGS", [VALUE]);
|
where [VALUE] is the value you are trying to set. So let's say you have an integer with a set amount, and you want to write this amount into your ini file. | CODE | int i = 10000; Settings.SetValue("INTERVAL", "SETTINGS", i);
|
EDIT: Sorry to dig up a few month old post, but I thought if I can help some green scripters learn how to make the next greatest mod, it would be worth it, and it would also be nice to continue this tutorial so we can all learn how to create better scripts. This post has been edited by Gokaic on Saturday, May 15 2010, 07:09
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
pedro2555  |
Posted: Saturday, Sep 8 2012, 15:43
|
Rat

Group: Members
Joined: Sep 2, 2012

|
| QUOTE (CaptainDingo @ Saturday, Mar 7 2009, 00:08) | I appreciate all the time you took to do this, but unfortunately this is worthless for people like me who don't know C# already. 
It's probably hard for someone who already knows it all, but from my perspective, this is nearly impossible. I can read it five times over and still not understand it, at all. I mean, I understand variables, strings, variable and string operations, but I don't understand the structure encased around them one bit.
It's a shame because I have a logical mind for programming, but nobody has come along yet who is really capable of teaching me how to actually program successfully. Like what's a method? What's "public class tutScriptVS : Script" do? What is "(object sender, GTA.KeyEventsArgs e)" all this stuff for? What does any of it mean? It looks like gibberish to me. Arg is the sound I make when I take a huge crap, and that's all I know. 
It's all the little things like this that coders take for granted when they're trying to teach and gloss over or ignore them, but that seriously make me feel confused and unable to learn any of this. | I will try yo give a full starter tutorial for C#. Next week should be ready
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:
Pages:
(3) 1 [2] 3
Track this topic
Receive email notification when a reply has been made to this topic and you are not active on the board.
Subscribe to this forum
Receive email notification when a new topic is posted in this forum and you are not active on the board.
Download / Print this Topic
Download this topic in different formats or view a printer friendly version.
| |
 |
|
 |
|
|
|
|