30.11.2010, 20:51
(
Последний раз редактировалось Cacoby; 02.12.2010 в 22:42.
)
deleted -.-
stock RandPlate()
{
new i, Result[24], Letter[2], Number[2];
while(i < 4)
{
switch(random(27))
{
case 0: Letter = "A";
case 1: Letter = "B";
case 2: Letter = "C";
case 4: Letter = "D";
case 5: Letter = "E";
case 6: Letter = "F";
case 7: Letter = "G";
case 8: Letter = "H";
case 9: Letter = "I";
case 10: Letter = "J";
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";
}
strcat(Result, Letter);
switch(random(11))
{
case 0: Number = "0";
case 1: Number = "1";
case 2: Number = "2";
case 4: Number = "3";
case 5: Number = "4";
case 6: Number = "5";
case 7: Number = "6";
case 8: Number = "7";
case 9: Number = "8";
case 10: Number = "9";
}
strcat(Result, Number);
i++;
}
return Result;
}
stock RandPlate() { new result[10]; for(new i=0;i<4;i++) { result[i] = random(24)+65; result[i+1] = random(9)+48; } return result; }
for(new i=1; i<MAX_VEHICLES; i++)