++REP
#10

And now?
PHP код:
public SetPlayerDriverLicense(playerid)
{
    
printf("DEBUG: 1");
    
getdate(YearMonthDay);
    
gettime(HourMinuteSecond);
    
Day += 30;
    
printf("DEBUG: 2");
    while(
Day >= MonthDays[Month])Month++;
    
printf("DEBUG: 3");
    while(
Month >= 12)
    {
        
Year++;
        
Month -= 12;
    }
    
printf("DEBUG: 4");
    
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);
    
printf("DEBUG: End");

- 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: 1 Guest(s)