Vehicle Plate change help
#1

PHP код:
                        new id GetVehicleID(vehicleid);
                        new 
string[20];
            if(
id <= 99)
            {
                
format(stringsizeof(string),"kmk:00 %d",params);
                
SetVehicleNumberPlate(id,string);
            }
            else
            if(
id <= 999)
            {
                  
format(stringsizeof(string),"kmk:0 %d",params);
                
SetVehicleNumberPlate(idstring);
              }
              else
              if(
id <= 9999)
              {
                  
format(stringsizeof(string),"kmk: %d",params);
                
SetVehicleNumberPlate(idstring);
             } 
                        
SetVehicleToRespawn(id); 
Hi guys, i have this code to change vehicle plate, id= my vehicle system id, and params is because i am using this under CMDlate, The problem is that , when i am into a vehicle and type /plate 21 , the plate replaced with "KMK:0053" BUT it should replaced with "KMK:0021" , Someone help me please ,
thanks!
Reply


Messages In This Thread
Vehicle Plate change help - by jimis - 03.03.2016, 11:01
Re: Vehicle Plate change help - by Amit1998 - 03.03.2016, 11:14
Re: Vehicle Plate change help - by Crayder - 03.03.2016, 11:25
Re: Vehicle Plate change help - by Burridge - 03.03.2016, 11:30
Re: Vehicle Plate change help - by Crayder - 03.03.2016, 11:37
Re: Vehicle Plate change help - by jimis - 03.03.2016, 21:59

Forum Jump:


Users browsing this thread: 1 Guest(s)