Make a unique number
#1

I'm trying make each vehicle has unique plate by using their vehicle id.

PHP код:
          vid AddStaticVehicleEx(vehicletype,SpawnX,SpawnY,SpawnZ,SpawnRot,Color1,Color2,(30*60),0); // respawn 30 minutes
        
        
new numplate_test[32+1];
        
format(numplate_test,32,"VEH {FF0000}%d  RP",vid);
        
SetVehicleNumberPlate(vidnumplate_test); 
Ex:If the vehicle id is 50,I want to make them + 22,so 50+22=72,the plate will be shown 'VEH 72 RP'

How do i do that?
Reply
#2

Ehh just add 22?!

PHP код:
format(numplate_test,32,"VEH {FF0000}%d  RP",vid+22); 
Reply
#3

You will need to add the desired number in format such "vid + 22" as argument, based on your example.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)