Invert string
#1

How to make algoritm for inverting string, example:

need = deen
yes = sey

etc.
Reply
#2

I'll script you a code.

pawn Код:
stock inverse(string[])
{
    reverse(string);
    return string;
}
Seems SA:MP already has a function for reversing strings.
Reply
#3

Thanks, i just made... It work's thanks anyway
Reply
#4

Sorry, I went off to eat. Also, just saying but your Post count = 666 :P dEVIL <3 good luck
Reply
#5

lol :P

reverse is not native samp function...
Reply
#6

Reverse is a native samp function

https://sampwiki.blast.hk/wiki/Reverse
Reply
#7

Yeah sorry, I didn't mean that it was native, just there is a function around somewhere.
Reply
#8

Quote:
Originally Posted by MikeLovesToHelp
Посмотреть сообщение
Yeah sorry, I didn't mean that it was native, just there is a function around somewhere.
It IS native..
https://sampwiki.blast.hk/wiki/Reverse

Learn to read before posting.
Reply
#9

Quote:
Originally Posted by [HK]Ryder[AN]
Посмотреть сообщение
It IS native..
https://sampwiki.blast.hk/wiki/Reverse

Learn to read before posting.
I can read. I was just, paying attention elsewhere. :P But anyways, not starting a flame war with someone, but how can the reverse function be used? Seeing as that was posted in the "Useful functions" Does that mean that "SendClientMessageToAdmins" is also a native function, or something you must add yourself?
Reply
#10

A native function is (basically) one you don't have to make yourself.

Honestly, I don't know what a good use of the reverse() function would be, except for the exact reason this topic was created (to reverse strings; making hello become olleh).

In terms of SendClientMessageToAdmins() being a native function, no. That's someone you'd have to do yourself.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)