gate password not working
#8

Quote:
Originally Posted by Crodox RP
Посмотреть сообщение
Simple, strcmp dosent work like that, you are checking if the password entered is NOT the correct one
Change
Код:
if(!strcmp(inputtext, NEWSGATE_PASSWORD, true))
to
Код:
if(strcmp(inputtext, NEWSGATE_PASSWORD, true))
- [FF]Cody_Beer
Quote:
Originally Posted by Crodox RP
Посмотреть сообщение
Apparently someone didnt see my post, either way changing the way i said would have the same effect

- [FF]Cody_Beer
Sorry, but both of those statements are wrong. "strcmp" returns 0 if the strings match therefore they will receive the "incorrect password" message when doing it your way. The correct way would be doing:

pawn Код:
if(!strcmp(NEWSGATE_PASSWORD, inputtext, true))
Reply


Messages In This Thread
gate password not working - by yarrum3 - 13.12.2010, 03:05
Re: gate password not working - by [WF]Demon - 13.12.2010, 08:02
Re: gate password not working - by SuperS82 - 13.12.2010, 08:03
Re: gate password not working - by [WF]Demon - 13.12.2010, 08:06
Re: gate password not working - by SuperS82 - 13.12.2010, 08:11
Re: gate password not working - by Voldemort - 13.12.2010, 08:24
Re: gate password not working - by yarrum3 - 13.12.2010, 08:45
Re: gate password not working - by Scenario - 13.12.2010, 09:41

Forum Jump:


Users browsing this thread: 1 Guest(s)