How To Script..
#6

Quote:
Originally Posted by Lokii
Посмотреть сообщение
@JasonRiggs

PHP код:
if(strcmp(HouseInfo[houseid][hPassword], inputtexttrue32)
            {
                
SetPlayerPos(playerid,139.4020,1368.8059,1083.8636);  
            }
            else
            {
                
SendClientMessage(playerid,0xFF0000AA,"Wrong Password!"); 
 
                
// Re-show the login dialog
                
ShowPlayerDialog(playerid1000DIALOG_STYLE_PASSWORD"House Password""Please enter your house password:""Login""Cancel");
            } 
that means if the password is wrong = right and if its right = wrong!

you should check if strcmp equal to 0

PHP код:
if(!strcmp(HouseInfo[houseid][hPassword], inputtexttrue)) 
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.
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)