22.11.2015, 13:18
PHP код:
stock GetLetter(number){
new letter[5];
switch(number){
case 1: letter="1";
case 2: letter="2";
case 3: letter="3";
case 4: letter="4";
case 5: letter="5";
case 6: letter="6";
case 7: letter="7";
case 8: letter="8";
case 9: letter="9";
case 10: letter="0";
case 11: letter="K";
case 12: letter="L";
case 13: letter="M";
case 14: letter="N";
case 15: letter="O";
case 16: letter="P";
case 17: letter="Q";
case 18: letter="R";
case 19: letter="S";
case 20: letter="T";
case 21: letter="U";
case 22: letter="V";
case 23: letter="W";
case 24: letter="X";
case 25: letter="Y";
case 26: letter="Z";
}
return letter;
}
format(plate, sizeof(plate), "%s%s%s%s%d", GetLetter(letter[0]), GetLetter(letter[1]), GetLetter(letter[2]), GetLetter(letter[3]),number);