free

News

collapse

User Info

 
 
Welcome, Guest. Please login or register.
Did you miss your activation email?

* Recent Posts

Re: The Soprano Family | Royal Loyalty by Dean.
[August 03, 2025, 11:23:58 pm]


Re: Rest in peace by Dean.
[August 03, 2025, 11:23:30 pm]


Re: Stopping by by Dean.
[August 03, 2025, 11:22:35 pm]


Re: ordinary day in VCMP by Denlow
[July 28, 2025, 04:58:56 pm]


Re: The Soprano Family | Royal Loyalty by .Mario.
[July 26, 2025, 03:05:43 pm]


Re: [SA:MP]House of Sforza | The Elite Power | Estd. 2006 | LS - LV by FrankCivello
[July 17, 2025, 12:50:43 am]


NOTICE OF PARKING ENFORCEMENT CHANGES by Huntsman
[June 19, 2025, 05:22:50 pm]


Re: Stopping by by Sinister
[June 08, 2025, 01:58:04 pm]


Re: Stopping by by Ehks
[June 04, 2025, 12:25:17 am]


Re: Rest in peace by Stefanrsb
[June 02, 2025, 03:38:02 am]


Re: [SA:MP]House of Sforza | The Elite Power | Estd. 2006 | LS - LV by Stefanrsb
[June 02, 2025, 03:09:22 am]


Re: The Soprano Family | Royal Loyalty by Stefanrsb
[June 02, 2025, 03:00:31 am]

* Who's Online

  • Dot Guests: 342
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Birthday Calender

August 2025
Sun Mon Tue Wed Thu Fri Sat
1 2
3 4 5 6 7 8 9
10 11 12 13 [14] 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31

Question about scripters

PSVITA · 1681

0 Members and 1 Guest are viewing this topic.

Offline Ted

  • SA:MP Valar
  • ***
    • Posts: 4871
    With us since: 13/05/2009
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Reply #30 on: July 17, 2012, 08:07:56 am
Nice try, but I believe that script is uploaded somewhere else

Shit efficiency, arrays are far too big.. the maximum client message is 128 characters, but arrays are being declared with 256 cells, that's a waste of 128 cells

Declaring a global variable and then using local variables in every command, another 256 cells being wasted

Next time you copy and paste, make sure the code is up to standard

You find this in a lot of those popular edits still.. Which is why I say do not pick up others old habits.



Offline Impurity

  • 9mm king.
  • Regular
  • **
    • Posts: 98
  • Don't dare to come in the way of the 9mm..
  • With us since: 16/07/2012
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Reply #31 on: July 17, 2012, 08:28:32 am
"Google is your best friend".

Open it, search for PAWN(O) guides and begin to learn the basics and contiune from there, you will learn the basics and the basics will help you in the intermediate level.
If you need help, message me and I will happily help you.

-lmpurity

I got a 9mm, ready to go off any minute, because of the ban I had to delete it but if you fuck around you gonna make me respawn it eh


Offline Exterminator

  • Hero
  • ****
    • Posts: 2232
    With us since: 17/04/2011
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
  • SA:MP: Philip_Ancelotti
Reply #32 on: July 17, 2012, 12:20:25 pm
Scripting is very fun once you get familiar with it. Its not the joy of getting your script through in one try, it is the joy of succeeding after several failures.


Philip_Ancelotti - Clans & Groups Moderator - Ancelotti Boss


Offline McGarrett

  • Aloha
  • Regular
  • **
    • Posts: 1782
    With us since: 13/09/2011
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Reply #33 on: July 17, 2012, 12:24:02 pm
Most important. Don't copy paste things. Try to learn them from what they actually is.


If you are here for doing random event stuff, I'd recommend a free roam server. We're not that anymore. We're a roleplay server.


Offline zater112

  • Regular
  • **
    • Posts: 353
    With us since: 22/01/2012
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Reply #34 on: July 17, 2012, 02:53:12 pm
http://forum.sa-mp.com/showthread.php?t=357700&highlight=Simple+AFK%2FBRB+System
-No, If you browse at the sa-mp forums there is like 1000copies of the same, so yeah, i made this one  :roll:



Offline Reece

  • Orc
  • *****
    • Posts: 4016
  • Living.
  • With us since: 07/01/2011
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Reply #35 on: July 17, 2012, 03:22:24 pm
-No, If you browse at the sa-mp forums there is like 1000copies of the same, so yeah, i made this one  :roll:

Right and your code happens to be exactly the same as the one I linked to? Including the shit efficiently Conroy pointed out?

Yeah.. right.



Offline CBFasi

  • V:MP Moderator
  • ***
    • Posts: 3623
    With us since: 05/07/2007
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
  • SA:MP: WAS [Rstar]CBFasi
  • V:MP: [Rstar]CBFasi
Reply #36 on: July 17, 2012, 07:15:31 pm
xcasio's is not the only lot of code you have headaches with Conroy...

I started many moons ago when the easy to learn language was Basic... literally B A S I C (I cant even remember what it stands for), anyway that was 1989!
Slowly went up the range, to visual basic, did a little pascal and C++.

I many years alter player with Operation Flashpoint which uses a language with similarities to C++, so I dabbled.

I cannot remember how but at some point I volunteered or got asked to build a new fuel script here and I thought I would give it a go... having never script in pawno in my life..  Haldir helped and I sort of landed feet first in the thickest mud around... I learned as I went along... (and have yet to stop, it never ends!)
Anyone says they know it all, they are lying !!!

TIP: this is NOT the way to learn, its slow and really stressful as you are learning AND scripting for a demanding customer...

My advise, make a mini server, play around with ideas even little ideas, develop them, do things others have not done, do things you like, there are so many possibilities limited by only your imagination and ability to script.  Some of my ideas have made it into Argonath, and these are in regular use.

All I can say is good luck, don't give up, that's too easy.

SA:MP =  Pre Jul 2007 to 2010, 2012-1016
GTA-V MP =  Apr 2021+
Current Mapper and advisor


Offline JDC

  • Pope of Argonath
  • Orc
  • *****
    • Posts: 14023
  • ( ͡° ͜ʖ ͡°)
    • jdcargonath
  • With us since: 01/05/2008
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
    • A Time for Rebuilding: SA:MP HQ's 5-Point Agenda
  • SA:MP: [Rstar]JDC
  • VC:MP: [R*]JDC
  • Minecraft: JayDeeCee
  • Discord: JDC#0664
  • V:MP: [Rstar]JDC
Reply #37 on: July 18, 2012, 04:19:26 pm
Summing up what our scripters have posted into a single sentence would be a hard task. But if there is one point that would fit the criteria, then it would be that experience is the best teacher.

While it is good to learn from others, you must also do some learning on your own. As everyone is posting stories of their experience in programming, I thought I'd heap some on the bandwagon too.

I do not have much experience in the area of using different programming languages, as our teachers in high school were (sad to say) less than optimal when it comes to computers. However, as I mentioned earlier, I did some learning on my own. While others were busy carrying out the simple codes the teacher gave for simple laboratory exercises, I dabbled with the functions, screwed around, and made a little "for fun" programs of my own. Ironically, these programs I made as a result of fucking around during computer class had more intricate codes than any of the lab exercises given.

Not a very good strategy if you wanted to maintain optimum academics, but needless to say, it provided a better learning experience for me than the rest of my batch, which was rewarded when I was given an award for best in programming during my High School graduation. :)

Now that I am studying more languages after taking up Computer Science in a certain premier state university, I still enjoy the same quick learning as I had in High School for every new function I come across. Learning is a process that never ends, especially in your younger years, so make the most out of it.

Pieces of advise to sum it up:
- Experience is the best teacher.
- Learning from others is good, but do some of your own.
- Never try to master a topic until you have mastered the previous one.
- Set good standards for yourself and try to reach (or exceed!) those.
- Enjoy what you do.

I've done well with those five. You may have a different set of principles in learning (which I believe has a relative nature to it as well), but the same underlying concepts remain.

Good luck in your future endeavors.

The most important part is interacting with others and meeting people from around the world.

A Time for Rebuilding: SA:MP HQ 5-Point AgendaThe Holy Church of Argonath (Recruiting)


 


free
free
SimplePortal 2.3.7 © 2008-2025, SimplePortal