[help] string comparing
#1

how can i do that when i type:

/answer ksgsg

it will check if the "ksgsg" is the same as for example "gssg"

its like : if(X ==Y) ....

sorry i didn't knew how to explane it well..

thanks
Reply
#2

pawn Код:
if(!strcmp(X, Y, true))
{
  CODE HERE
}
Reply
#3

https://sampwiki.blast.hk/wiki/Strcmp
https://sampwiki.blast.hk/wiki/Using_strcmp()
Reply
#4

thanlks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)