How To Script..
#8

Quote:
Originally Posted by JasonRiggs
Посмотреть сообщение
I believe that you are the wrong one, As I'm checking that if the strcmp is equal to 1 then teleport the player, Else, then send the wrong password message.
That's not how strcmp works

if the string match strcmp will sub -1 so if strcmp is not equal to 0 strings not match

PHP код:
strcmp("test""te"); //will return 2
strcmp("test""tes"); //will return 1 
PHP код:
strcmp("test""test"); //will return 0 
Reply


Messages In This Thread
How To Script.. - by Vizi10 - 16.05.2018, 19:36
Re: How To Script.. - by JasonRiggs - 16.05.2018, 19:53
Re: How To Script.. - by Vizi10 - 16.05.2018, 20:12
Re: How To Script.. - by JasonRiggs - 16.05.2018, 20:13
Re: How To Script.. - by Lokii - 16.05.2018, 20:14
Re: How To Script.. - by JasonRiggs - 16.05.2018, 20:25
Re: How To Script.. - by Vizi10 - 16.05.2018, 20:29
Re: How To Script.. - by Lokii - 16.05.2018, 20:31
Re: How To Script.. - by GTLS - 17.05.2018, 04:33

Forum Jump:


Users browsing this thread: 1 Guest(s)