I don't know... maybe try another way
function script Sample {
setarray .@card_id, 4357,4359,4361,4363,4365,4367,4457,4463,4462,4459,4456,4458,4441,4408,4430,4263,4403,4419,4376,4399,4407,4451;
set .@size, getarraysize( .@card_id );
for ( set .@i, 0; .@i < .@size; set .@i, .@i+1 )
set .@total, .@total + isequippedcnt( .@card_id[.@i] );
if( .@total > 2 ){
message strcharinfo(0),"You can't equipo more than 2 of these cards, Biolab, Nidhoggur, Naght, Tendrilrion, Mammoth, Rata, Duneyrr,Fallen Bishop, Gloom, Ifrit, Incantation, Kiel, Ktullanux, Tanee, Thanatos, Randgris, Crothen.";
nude;
}
}