15.03.2017, 15:46
Help me i get only numbers when i use the command
Picture: http://i.imgur.com/U5WTTFT.png
Code command:
Code array:
Code other arrays:
I want to get the code 5x Letters + 3x Numbers (like car numberplate)
Please Help ! +Rep for every help
Picture: http://i.imgur.com/U5WTTFT.png
Code command:
PHP код:
CMD:tablicki(playerid,params[])
{
if(PlayerInfo[playerid][pAdmin] >= 1337)
{
RandomTablickiBukvi(RandTablickiBukvi);
RandomTablickiBroj(RandTablickiBroj);
new str[144];
new vehicleid = GetPlayerVehicleID(playerid);
new tablickibroj = RandTablickiBukvi[0] + RandTablickiBroj[0];
MyVehicle[ConvertVehIDtoDYID(vehicleid)][MyVehTablicki][8] = tablickibroj;
if(!IsPlayerInAnyVehicle(playerid) && GetPlayerVehicleSeat(playerid) != 0) return SCM(playerid,COLOR_GRAD1,"{FF00FF}Ne ste vozac!");
format(str, sizeof (str),"{FF0000}| Vaseto vozilo: {FFFFFF}%i {FF0000}| Nova Tablicka: {FF0000}%d |",vehicleid,MyVehicle[ConvertVehIDtoDYID(vehicleid)][MyVehTablicki][8]);
SCM(playerid,COLOR_GRAD1,str);
ZacuvajCarOwnerShip(ConvertVehIDtoDYID(vehicleid));
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "{FF4040}[RL-RP]>>[GRESKA]:{FFFFFF} {FFFFFF}Nemozete da ja koristite ovaa komanda.");
}
return 1;
}
PHP код:
MyVehTablicki[16],
PHP код:
new TablickiBroj[] = {'1','2','3','4','5','6','7','8','9','0'};
new TablickiBukvi[] = {'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 RandTablickiBukvi[5];
new RandTablickiBroj[3];
Please Help ! +Rep for every help