Argonath RPG - A World of its own

GTA:SA => SA:MP - San Andreas Multiplayer => SA:MP General => Topic started by: David_Omid on September 11, 2010, 07:39:40 pm

Title: SCRIPT UPDATE - no more client crashes!
Post by: David_Omid on September 11, 2010, 07:39:40 pm
Hey guys,


This may sound like a simple bug fix but as you may already know, we have had this problem long since even the RS3 scripts. I consider this to be an update if anything.

The problem:

Players/members of administration would use commands like /namehouse, /namebizz and display announcements etc with the "~" character in certain combinations in order to format their text. For example, "~r~ [test]" would make the text red.

HOWEVER, a BIG problem we had was that people would by accident use these characters in an incorrect way, such as "~r [text]". Putting an uneven number of "~" characters would crash all clients that were sent the messages.

What did this mean? Well of course, if a player were to name their house or business incorrectly, anyone near the entry point would crash as soon as they saw the name of the place and would never be able to spawn unless administration somehow helped them and changed the name of the property.

Sometimes members of administration have crashed everyone on the server by sending an invalid announcement.


A terrible fault which caused a lot of problems...UNTIL NOW!

I realised while doing C++ that I can use a certain mathematical function to work out if someone has input an invalid number of "~" characters. When I tried to do this with the Pawn language, it worked! Therefore, we will no longer have this problem!


Commands affected:

All administration ones (not named here)
/namehouse
/namebizz


This fix will be active after the next server restart.

Title: Re: SCRIPT UPDATE - no more client crashes!
Post by: Traser on September 11, 2010, 07:42:39 pm
Lol, nice
Title: Re: SCRIPT UPDATE - no more client crashes!
Post by: Nathan on September 11, 2010, 07:46:10 pm
Thanks David! This will certainly help!
Title: Re: SCRIPT UPDATE - no more client crashes!
Post by: Pandalink on September 11, 2010, 07:47:09 pm
Sometimes members of administration have crashed everyone on the server by sending an invalid announcement.

my bad
Title: Re: SCRIPT UPDATE - no more client crashes!
Post by: Hidduh on September 11, 2010, 07:47:48 pm
Thanks!
Title: Re: SCRIPT UPDATE - no more client crashes!
Post by: VeLuX on September 11, 2010, 07:57:26 pm
Good Job
Title: Re: SCRIPT UPDATE - no more client crashes!
Post by: Murdock on September 11, 2010, 08:58:49 pm
are pigs flying?
NO its David Omid rocks da' scripts!
Title: Re: SCRIPT UPDATE - no more client crashes!
Post by: Webster on September 11, 2010, 09:10:12 pm
Nice job david :)
Title: Re: SCRIPT UPDATE - no more client crashes!
Post by: newton_alex on September 11, 2010, 09:11:07 pm
 :lol:
my bad
:lol:
Title: Re: SCRIPT UPDATE - no more client crashes!
Post by: Zaila on September 11, 2010, 09:11:29 pm
my bad

lol :lol:

Good job David! :)
Title: Re: SCRIPT UPDATE - no more client crashes!
Post by: TheRock on September 11, 2010, 09:19:35 pm
Great work David.
Title: Re: SCRIPT UPDATE - no more client crashes!
Post by: Vince on September 11, 2010, 09:31:53 pm
my bad

+1 hurp

Thanks!
Title: Re: SCRIPT UPDATE - no more client crashes!
Post by: Hevar. on September 12, 2010, 12:48:03 am
Nice David ^^
Title: Re: SCRIPT UPDATE - no more client crashes!
Post by: Leon. on September 12, 2010, 04:23:10 am
I want to fuck you beyond so many dimensions that I cannot even begin to describe.
Title: Re: SCRIPT UPDATE - no more client crashes!
Post by: [NP]Monte Montague on September 12, 2010, 02:18:03 pm
I want to f**k you beyond so many dimensions that I cannot even begin to describe.

How about you keep your excitement to your life long companion - your left/ right hand  :lol:

Thanks  David :3
Title: Re: SCRIPT UPDATE - no more client crashes!
Post by: Melvin on September 13, 2010, 09:01:31 am
Nice job David ;)
Title: Re: SCRIPT UPDATE - no more client crashes!
Post by: Pazienza on September 13, 2010, 09:12:27 am
Cool
Title: Re: SCRIPT UPDATE - no more client crashes!
Post by: Jason_Wade on September 13, 2010, 04:14:17 pm
Thanks David! This will certainly help!
Title: Re: SCRIPT UPDATE - no more client crashes!
Post by: Nexxt on September 13, 2010, 08:35:10 pm
Thanks for fixing, David
SimplePortal 2.3.7 © 2008-2025, SimplePortal