SA-MP Forums Archive
Y_ini Help !! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Y_ini Help !! (/showthread.php?tid=598403)



Y_ini Help !! - Amunra - 12.01.2016

Hi ,
I Have problem to Change <Dini> to <YSI/Y_ini> .... I Have a problem to change this
PHP код:
    if(dini_Int(fname,"vowned3") == vehicleid) {
        
dini_IntSet(fname"vowned3",0);
        
dini_IntSet(fname"vowner3",0);
    }
    if(
dini_Int(fname,"vowned4") == vehicleid) {
        
dini_IntSet(fname"vowned4",0);
        
dini_IntSet(fname"vowner4",0);
    }
    if(
dini_Int(fname,"vowned5") == vehicleid) {
        
dini_IntSet(fname"vowned5",0);
        
dini_IntSet(fname"vowner5",0);
    }
    if(
dini_Int(fname,"vowned6") == vehicleid) {
        
dini_IntSet(fname"vowned6",0);
        
dini_IntSet(fname"vowner6",0);
    }
    if(
dini_Int(fname,"vowned7") == vehicleid) {
        
dini_IntSet(fname"vowned7",0);
        
dini_IntSet(fname"vowner7",0);
    }
    if(
dini_Int(fname,"vowned8") == vehicleid) {
        
dini_IntSet(fname"vowned8",0);
        
dini_IntSet(fname"vowner8",0);
    }
    if(
dini_Int(fname,"vowned10") == vehicleid) {
        
dini_IntSet(fname"vowned10",0);
        
dini_IntSet(fname"vowner10",0);
    }
    if(
dini_Int(fname,"vowned10") == vehicleid) {
        
dini_IntSet(fname"vowned10",0);
        
dini_IntSet(fname"vowner10",0); 
If in Dini.inc That How to Change This to y_ini... Because i Not know function y_ini to replace the dini_IntSet ?



Re: Y_ini Help !! - saffierr - 12.01.2016

dini_IntSet to > INI_WriteInt
dini_Int to > INI_Int.
But I suggest you to re-create the thingy you have there, because it is completely different.


Re: Y_ini Help !! - Amunra - 12.01.2016

Quote:
Originally Posted by saffierr
Посмотреть сообщение
dini_IntSet to > INI_WriteInt
dini_Int to > INI_Int.
But I suggest you to re-create the thingy you have there, because it is completely different.
Repped but Can you change My gamemode dini system to y_ini system ?


Re: Y_ini Help !! - saffierr - 12.01.2016

I suggest you to read tutorials, here is one of them:
https://sampforum.blast.hk/showthread.php?tid=570912