1 post in this topic

Как это выглядит?

Спойлер

We0NHdo.png

Спойлер

if(strcmp(cmd, "/time", true) == 0)
    {
    new mtext[20];
    new year, month,day;
    getdate(year, month, day);
    if(month == 1) { mtext = "Января"; }
    else if(month == 2) { mtext = "Февраля"; }
    else if(month == 3) { mtext = "Марта"; }
    else if(month == 4) { mtext = "Апреля"; }
    else if(month == 5) { mtext = "Мая"; }
    else if(month == 6) { mtext = "Июня"; }
    else if(month == 7) { mtext = "Июля"; }
    else if(month == 8) { mtext = "Августа"; }
    else if(month == 9) { mtext = "Сентября"; }
    else if(month == 10) { mtext = "Октября"; }
    else if(month == 11) { mtext = "Ноября"; }
    else if(month == 12) { mtext = "Декабря"; }
    new hour,minuite,second;
    gettime(hour,minuite,second);
    FixHour(hour);
    hour = shifthour;
    if (minuite < 10)
    {
    format(string, sizeof(string), "{e49b0f}Получение текущего времени и даты\n{faeedd}_____________________________________\n\n{faeedd}Сегодняшняя дата:\t{3caa3c}%d %s 2013 год\n{faeedd}Текущее время:\t{007fff}%d:%d\n{faeedd}_____________________________________", day, mtext, hour, minuite);
    ShowPlayerDialog(playerid,8888, DIALOG_STYLE_MSGBOX, " ", string, "Закрыть", "");
    }
    if (PlayerInfo[playerid][pJailTime] > 0)
    {
    format(string, sizeof(string), "{e49b0f}Получение текущего времени и даты\n{faeedd}_____________________________________\n\n{faeedd}Сегодняшняя дата:\t{3caa3c}%d %s 2013 год\n{faeedd}Текущее время:\t{007fff}%d:%d\n{faeedd}Осталось сидеть:\t{ea7500}%d секунд\n{faeedd}_____________________________________", day, mtext, hour, minuite,PlayerInfo[playerid][pJailTime]-10);
    ShowPlayerDialog(playerid,8888, DIALOG_STYLE_MSGBOX, " ", string, "Закрыть", "");
    }
    else
    {
    format(string, sizeof(string), "{e49b0f}Получение текущего времени и даты\n{faeedd}_____________________________________\n\n{faeedd}Сегодняшняя дата:\t{3caa3c}%d %s 2013 год\n{faeedd}Текущее время:\t{007fff}%d:%d\n{faeedd}_____________________________________", day, mtext, hour, minuite);
    ShowPlayerDialog(playerid,8888, DIALOG_STYLE_MSGBOX, " ", string, "Закрыть", "");
    }
    ApplyAnimation(playerid,"COP_AMBIENT","Coplook_watch",4.1,0,0,0,0,0,1);
    format(string, sizeof(string), "%s посмотрел(а) на свои часы", sendername);
    ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    return true;
    }  

 

 

Share this post


Link to post
Share on other sites

Your content will need to be approved by a moderator

Guest
You are commenting as a guest. If you have an account, please sign in.
Reply to this topic...

×   You have pasted content with formatting.   Remove formatting

  Only 75 emoticons maximum are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

Loading...
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • Guest володя
      By Guest володя
      C:\Users\vilin\Desktop\Hot RP\gamemodes\hot.pwn(67) : warning 215: expression has no effect
      C:\Users\vilin\Desktop\Hot RP\gamemodes\hot.pwn(114 -- 121) : error 001: expected token: "-string end-", but found "-identifier-"
      C:\Users\vilin\Desktop\Hot RP\gamemodes\hot.pwn(121) : warning 217: loose indentation
      C:\Users\vilin\Desktop\Hot RP\gamemodes\hot.pwn(121) : warning 215: expression has no effect
      C:\Users\vilin\Desktop\Hot RP\gamemodes\hot.pwn(121 -- 124) : warning 215: expression has no effect
      Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase

      1 Error.
      Вот код: