SphereCommunity
MyIdent - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: MyIdent (/Thread-MyIdent)

Pages: 1 2


MyIdent - Alias - 05-06-2012 03:47 PM

Hello, i would like to know if that's posible to make for example player have 23as4 uid, and if he write myident he get sysmessage your ident is 23as4 or two three a s four

[FUNCTION MYIDENT]
SYSMESSAGE @53 Your unicue identify number is <uid>

Thanks.


RE: MyIdent - Shaklaban - 05-06-2012 04:11 PM

i don't get what do you mean, you seem already solved your problem.


RE: MyIdent - Alias - 05-06-2012 09:03 PM

i want in sysmessage it says your ident is 0Oab7 or ziro O A B seven
Becouse few players enter incorrect uid becouse of ziro and O letter


RE: MyIdent - jeem - 05-07-2012 12:31 AM

Code:
[defname num]
def.numbers "Zero,One,Two,Three,Four,Five,Six,Seven,Eight,Nine"

[function myident]
args =
for 0 <eval strlen(<uid>) - 1>
   if <isnum <strsub <local._for> 1 <uid>>>
      args .= " <getargv <strsub <local._for> 1 <uid>> <def.numbers>>"
   else
      args .= " <strsub <local._for> 1 <uid>>"
   endif
endfor
sysmessage your id number is <args>

[function getargv]
local.toret = <strarg <args>>
args = <streat <args>>
return <argv[<local.toret>]>



RE: MyIdent - Alias - 05-07-2012 07:15 PM

Tyvm jeem ! Wink


RE: MyIdent - Vendetta - 05-08-2012 03:28 AM

wtf?

there can't be O in a hex number lol -.-


RE: MyIdent - darksun84 - 05-08-2012 07:31 AM

In soviet russia 0s are O!


RE: MyIdent - Crusader - 05-08-2012 08:19 AM

ROFL!!!


RE: MyIdent - Vendetta - 05-08-2012 04:05 PM

hex is international/mondial

the alphabet for hex is 0123456789abcdef

you think is O but is zero...


RE: MyIdent - darksun84 - 05-08-2012 06:19 PM

In soviet russia hex alphabet is oO0òÕÖØ