++REP
#4

Well.

PHP код:
public SetPlayerDriverLicense(playerid)
{
    
getdate(YearMonthDay);
    
gettime(HourMinuteSecond);
    
Day += 30;
    while(
Day >= MonthDays[Month])Month++;
    while(
Month >= 12)
    {
        
Year++;
        
Month -= 12;
    }
    
pLicense[playerid][pDriver] = 1;
    
pLicense[playerid][pDriverLY] = Year;
    
pLicense[playerid][pDriverLM] = Month;
    
pLicense[playerid][pDriverLD] = Day;
    
pLicense[playerid][pDriverLH] = Hour;
    
pLicense[playerid][pDriverLMIN] = Minute;
    
pLicense[playerid][pDriverLS] = Second;
    new 
INI:File INI_Open(UserPath(playerid));
    
printf("UserPath: %s",UserPath(playerid));
    
printf("DriverLicense_Year: %i",Year);
    
INI_SetTag(File"Licenses");
    
INI_WriteInt(File"DriverLicense"1);
    
INI_WriteInt(File"DriverLicense_Year"Year);
    
INI_WriteInt(File"DriverLicense_Month"Month);
    
INI_WriteInt(File"DriverLicense_Day"Day);
    
INI_WriteInt(File"DriverLicense_Hour"Hour);
    
INI_WriteInt(File"DriverLicense_Minute"Minute);
    
INI_WriteInt(File"DriverLicense_Second"Second);
    
INI_Close(File);

What are printing here? (UserPath: & DriverLicense_Year

- Mencent
Reply


Messages In This Thread
++REP - by Mariciuc223 - 19.07.2015, 17:14
AW: ++REP - by Mencent - 19.07.2015, 17:44
Re: ++REP - by Mariciuc223 - 19.07.2015, 17:50
AW: ++REP - by Mencent - 19.07.2015, 17:55
Re: ++REP - by Mariciuc223 - 19.07.2015, 18:01
AW: ++REP - by Mencent - 19.07.2015, 18:02
Re: AW: ++REP - by Mariciuc223 - 19.07.2015, 18:05
AW: ++REP - by Mencent - 19.07.2015, 18:09
Re: ++REP - by Mariciuc223 - 19.07.2015, 18:14
AW: ++REP - by Mencent - 19.07.2015, 18:15

Forum Jump:


Users browsing this thread: 2 Guest(s)