Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- BPS::DateProp(playerid)
- {
- new string[128];
- new diia, mees, aano, hoora, minuuto, seguundo;
- getdate(aano, mees, diia);
- gettime(hoora, minuuto, seguundo);
- GetPlayerName(playerid, playername, sizeof(playername));
- new curdate = getdate();
- for(new h = 0; h < sizeof(HouseInfo); h++)
- {
- if (strcmp(playername, HouseInfo[h][hOwner], true) == 0)
- {
- HouseInfo[h][hDate] = curdate;
- format(string, sizeof string, "%02d/%02d/%02d as %02d:%02d:%02d", diia, mees, aano, hoora, minuuto, seguundo);
- strmid(HouseInfo[h][hVerData], string, 0, strlen(string), 255);
- SaveCasa(h);
- }
- }
- for(new b = 0; b < sizeof(BizzInfo); b++)
- {
- if (strcmp(playername, BizzInfo[b][bOwner], true) == 0)
- {
- BizzInfo[b][bDate] = curdate;
- SalvarEmpresa(b);
- }
- }
- for(new sb = 0; sb < sizeof(SBizzInfo); sb++)
- {
- if (strcmp(playername, SBizzInfo[sb][sbOwner], true) == 0)
- {
- SBizzInfo[sb][sbDate] = curdate;
- SalvarSEmpresa(sb);
- }
- }
- for(new fb = 0; fb < sizeof(FBizzInfo); fb++)
- {
- if (strcmp(playername, FBizzInfo[fb][fbOwner], true) == 0)
- {
- FBizzInfo[fb][fbDate] = curdate;
- SalvarFEmpresa(fb);
- }
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment