09.10.2015, 20:54
Evening,
I want to check if the pincode an administrator selected is 4 digits long.
I tried to do that this way.
But this is not working, if I try to compile it is showing me these errors.
I want to check if the pincode an administrator selected is 4 digits long.
I tried to do that this way.
PHP код:
if(sscanf(params, "d", pass)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /changeadminpin [Pin code]");
if(strlen(pass) < 4 || strlen(pass) > 4) return SendClientMessage(playerid, COLOR_WHITE, "SERVER: The pincode must be 4 digits.");
Код:
C:\Users\fabio\Desktop\International Roleplay\gamemodes\I-RP.pwn(2306) : error 035: argument type mismatch (argument 1) C:\Users\fabio\Desktop\International Roleplay\gamemodes\I-RP.pwn(2328) : error 035: argument type mismatch (argument 1) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.