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
-
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.
-
Lol, nice
-
Thanks David! This will certainly help!
-
Sometimes members of administration have crashed everyone on the server by sending an invalid announcement.
my bad
-
Thanks!
-
Good Job
-
are pigs flying?
NO its David Omid rocks da' scripts!
-
Nice job david :)
-
:lol:
my bad
:lol:
-
my bad
lol :lol:
Good job David! :)
-
Great work David.
-
my bad
+1 hurp
Thanks!
-
Nice David ^^
-
I want to fuck you beyond so many dimensions that I cannot even begin to describe.
-
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
-
Nice job David ;)
-
Cool
-
Thanks David! This will certainly help!
-
Thanks for fixing, David