25.11.2012, 10:58
Okay i found the solution. Give me a minute to post it! Your array was the problems.
EDIT:
Change your arrays first.
Then change this portion as it is!
EDIT:
Change your arrays first.
pawn Код:
new const NumeriuRaides[][] = { "A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z" };
new const NumeriuSkaiciai[] = {0,1,2,3,4,5,6,7,8,9};
pawn Код:
new msg[10],randletter = random(sizeof(NumeriuRaides)),randdigit = random(sizeof(NumeriuSkaiciai));
format(msg,sizeof(msg),"%s%s%s:%d%d%d",NumeriuRaides[randletter],NumeriuRaides[randletter],NumeriuRaides[randletter],NumeriuSkaiciai[randdigit],NumeriuSkaiciai[randdigit],NumeriuSkaiciai[randdigit]);
format(tInfo[nuomTransp][Numeriai],8,"%s",msg);
SetVehicleNumberPlate(nuomTransp,tInfo[nuomTransp][Numeriai]);
SetVehicleToRespawn(nuomTransp);