Quote:
Originally Posted by S34Qu4K3
Thanks Exolent
More questions  :
if i want to operate with the first array Itīs well that i use:
??
How can i convert all the words using the ASCII alphabet to a number ej: A= 97, B=98 etc
Thank you and sorry for all my doubts
|
Using that code, here is what you would get:
Code:
// szInput = "Testing"
szPieces[ 0 ][ 0 ] = 'T'
szPieces[ 0 ][ 1 ] = 'e'
szPieces[ 1 ][ 0 ] = 's'
szPieces[ 1 ][ 1 ] = 't'
szPieces[ 2 ][ 0 ] = 'i'
szPieces[ 2 ][ 1 ] = 'n'
szPieces[ 3 ][ 0 ] = 'g'
szPieces[ 4 ][ 1 ] = '^0' or 0
Characters in Pawn are also integers.
Try this:
Code:
server_print( "'a' = %i", 'a' )
It will output:
Also, a=97, b=98, and A=65, B=66.
__________________