SA-MP Forums Archive
strlen INPUTTEXT - 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: strlen INPUTTEXT (/showthread.php?tid=659790)



strlen INPUTTEXT - playstores - 16.10.2018

I know its wrong,


if(strlen(inputtext),name,true)


but how to write it correcty? just wanna check if inputtext = same value of name


Re: strlen INPUTTEXT - v1k1nG - 16.10.2018

strcmp


Re: strlen INPUTTEXT - playstores - 16.10.2018

/ already done I used

if(strcmp(inputtext, name))


thx anyway @vik


Re: strlen INPUTTEXT - v1k1nG - 16.10.2018

Quote:
Originally Posted by playstores
Посмотреть сообщение
I just wanna check if inputtext = same value of name
That's a strcmp thing. Maybe you've done it wrong?


Re: strlen INPUTTEXT - corne - 16.10.2018

pawn Код:
if(!strcmp(inputtext, name, false)
{
    //Same names
}



Re: strlen INPUTTEXT - Freaksken - 16.10.2018

See the return values on the wiki.


Re: strlen INPUTTEXT - Dennis12 - 16.10.2018

https://sampwiki.blast.hk/wiki/Strcmp

All you need ^^^


Re: strlen INPUTTEXT - Freaksken - 16.10.2018

Quote:
Originally Posted by Dennis12
Посмотреть сообщение
What's the point in replying pretty much the exact same thing...