Check for Lower and UPPER case

Hi,

I am using this script which checks players names but i want it to check for upper and lower case names as it only checks for upper case , would anyone know what i would need to do to change this ?

Many thanks

/*
*/
_vec = _this select 0;
_type = _this select 1;
private [ "_vec","_was_engineon", "_name", "_narray","_letter0","_letter1","_letter2","_letter3","_letter4","_letter5","_letter6","_cnt"];

//if (!isServer) then {
while {true} do {
//check driver
if (player == driver _vec || (player == gunner _vec && _type==1) || player == commander _vec) then {
_name=name player;
_narray= toArray(_name);
_letter0=(_narray select 0);
_letter1=(_narray select 1);
_letter2=(_narray select 2);
_letter3=(_narray select 3);
_letter4=(_narray select 4);
_letter5=(_narray select 5);
_letter6=(_narray select 6);
_cnt=count _narray;
if (_cnt<8) then {
player action ["Eject",_vec];
player commandChat "Restricted to -1PARA - Only" ;
_vec engineOn false;
} else {
if (((_letter0==45)&&(_letter1==49)&&(_letter2==80)&&(_letter3==65)&&(_letter4==82)&&(_letter5==65)&&(_letter6==45))) then {
} else {
player action ["Eject",_vec];
player commandChat "Restricted 1PARA" ;
_vec engineOn false;
};
};
};
sleep 3;
I hope you realize this is a C/C++ forum. If you want help with scripting you should go somewhere dedicated for that or at least tell us the name of the system you are using. :P
Topic archived. No new replies allowed.