Quote:
Originally Posted by Lokii
@JasonRiggs
PHP код:
if(strcmp(HouseInfo[houseid][hPassword], inputtext, true, 32)
{
SetPlayerPos(playerid,139.4020,1368.8059,1083.8636);
}
else
{
SendClientMessage(playerid,0xFF0000AA,"Wrong Password!");
// Re-show the login dialog
ShowPlayerDialog(playerid, 1000, DIALOG_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], inputtext, true))
|
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.