Checking if inputtext is 4 digits.
#3

There are better ways, but rearranging your code will do fine:
pawn Код:
if(strlen(params) != 4) return SendClientMessage(playerid, COLOR_WHITE, "SERVER: The pincode must be 4 digits.");
        if(sscanf(params, "d", pass)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /changeadminpin [Pin code]");
Reply


Messages In This Thread
Checking if inputtext is 4 digits. - by faff - 09.10.2015, 20:54
Re: Checking if inputtext is 4 digits. - by ThePhenix - 09.10.2015, 20:56
Re: Checking if inputtext is 4 digits. - by Crayder - 09.10.2015, 21:00
Re: Checking if inputtext is 4 digits. - by faff - 09.10.2015, 21:01
Re: Checking if inputtext is 4 digits. - by faff - 09.10.2015, 21:06
Re: Checking if inputtext is 4 digits. - by faff - 09.10.2015, 21:15
Re: Checking if inputtext is 4 digits. - by Ahmad45123 - 09.10.2015, 21:19
Re: Checking if inputtext is 4 digits. - by faff - 09.10.2015, 21:40
Re: Checking if inputtext is 4 digits. - by Crayder - 09.10.2015, 21:53
Re: Checking if inputtext is 4 digits. - by Ahmad45123 - 09.10.2015, 22:08

Forum Jump:


Users browsing this thread: 2 Guest(s)