Ordinals - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Ordinals (
/showthread.php?tid=352682)
Ordinals -
Cody_Maverak - 20.06.2012
Hello,
I recently developed my own way of encrypting passwords in PHP. It revolves around converting a character its ordinal value.
Код:
$c = ord($input[$]) where $input is a string
Now I would like to do this inside PAWNO, but I have absolutely no idea how to go about doing this (****** isn't any help here).
Please Help,
Cody_Maverak
Re: Ordinals -
Cody_Maverak - 20.06.2012
Nevermind...figured it out with:
Код:
new text;
text='V';
new value[256];
valstr(value, text);
print(value); prints out the number 86