Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: Fuzzy168 on October 14, 2011, 07:17:53 am

Title: 2 Questions..
Post by: Fuzzy168 on October 14, 2011, 07:17:53 am
1. What is the differences between stock and public?

2. How to encrypt Pawn password? Not like Gups 1.16
Title: Re: 2 Questions..
Post by: eDz0r on October 14, 2011, 03:28:05 pm
1. stock is used to make functions and public is for do something when something happend
2. With dutils.inc (i think)
Title: Re: 2 Questions..
Post by: stormeus on October 14, 2011, 10:57:08 pm
1. stock just tells the Pawn compiler to see if the function is used. If it isn't, it doesn't get added to the compiled script. public is pretty much the same as stock, except it's always compiled in and can be accessed from any script that includes it.

2. dutils.inc does not have encryption. I'll work on a customized SHA-256 implementation later. The SA:MP forum probably has encryption functions too.
Title: Re: 2 Questions..
Post by: Fuzzy168 on October 15, 2011, 05:42:17 pm
Quote from: stormeus
SHA-256
What is that?

Quote from: stormeus
The SA:MP forum probably has encryption functions too.
Can't find one..  :-\
Title: Re: 2 Questions..
Post by: stormeus on October 15, 2011, 07:21:00 pm
http://en.wikipedia.org/wiki/Secure_Hash_Algorithm

And here's an MD5 implementation by Y_Less for an SA:MP include. It should work on VC:MP, but I haven't tested it.
http://forum.sa-mp.com/showpost.php?p=869025&postcount=5
Title: Re: 2 Questions..
Post by: Fuzzy168 on October 16, 2011, 12:05:16 pm
Madara Warchief use Dutils to encrypt. Is it safe?
Title: Re: 2 Questions..
Post by: stormeus on October 16, 2011, 07:36:04 pm
I can't guarantee that it's safe. I can't guarantee MD5 is safe either, but it's safer.