saving car colors
#6

Quote:
Originally Posted by Shinja
Посмотреть сообщение
PHP код:
for(new ij=GetVehiclePoolSize(); i<=ji++)
{
    
ChangeVehicleColors(idini_Int(i"carcolor1"), dini_Int(i"carcolor2"));

This don't work?
anyway, don't define variable inside a loop, and 256, aloooot, 5 is more than enough in this case
PHP код:
new filename[5];
for(new 
ij=GetVehiclePoolSize(); i<=ji++)
    {
    
format(filenamesizeof(filename), "%d"i);
    
carcolor1 dini_Int(filename"carcolor1");
    
carcolor2 dini_Int(filename"carcolor2");
    
ChangeVehicleColor(icarcolor1carcolor2);
    } 
Reply


Messages In This Thread
saving car colors - by Adamsy - 23.08.2016, 22:18
Re: saving car colors - by Shinja - 23.08.2016, 22:22
Re: saving car colors - by Adamsy - 23.08.2016, 22:32
Re: saving car colors - by Shinja - 23.08.2016, 22:37
Re: saving car colors - by Adamsy - 23.08.2016, 22:59
Re: saving car colors - by Shinja - 23.08.2016, 23:05
Re: saving car colors - by Adamsy - 24.08.2016, 00:26

Forum Jump:


Users browsing this thread: 1 Guest(s)