House Password restriction - 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: House Password restriction (
/showthread.php?tid=605557)
House Password restriction -
biker122 - 21.04.2016
Fixed already.
Re: House Password restriction -
OmegaKiller72 - 21.04.2016
if(strcmp(password, HouseInfo[ pInfo[playerid][Entering_House] ][hPassword]) != 0) return SendClientMessage(playerid, COLOR_GREY, "[SERVER] "BLUE"You have entered an incorrect password.");
here you return value, and other code is unreachable! so after this line add
else
{
//next code
return 1;
}
Re: House Password restriction -
OmegaKiller72 - 21.04.2016
and show your ondialogresponse