Перейти к содержанию
Авторизация  
Terhe1337

Проблема с добовлением комманд

Рекомендуемые сообщения

Terhe1337

Когда добавляю команду, все сохраняю - ничего не меняется, команда не добавляется, что делать? Мод Домик в Деревне или же Жизнь в Деревне!

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты
EzyWorld

Начнем с банального, Вы мод компилировали?
Можете хотя бы команду показать?

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты
Terhe1337

@EzyWorld, Вот логи компилирования: C:\Users\Никита\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2148) : error 021: symbol already defined: "TextDrawLetterSize"

C:\Users\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2153) : error 010: invalid function or declaration
C:\Users\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2165) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2190) : error 055: start of function body without function header
C:\Users\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2197) : error 021: symbol already defined: "SetTimer"
C:\Users\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2200) : error 021: symbol already defined: "Create3DTextLabel"
C:\Users\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2206) : error 010: invalid function or declaration
C:\Users\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2220) : error 010: invalid function or declaration
C:\Users\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2226) : error 010: invalid function or declaration
C:\Users\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2228) : error 010: invalid function or declaration
C:\Users\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2234) : error 010: invalid function or declaration
C:\Users\Никита\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2296) : error 010: invalid function or declaration
C:\Users\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2320) : error 010: invalid function or declaration
C:\Users\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2332) : error 010: invalid function or declaration
C:\Users\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2338) : error 021: symbol already defined: "SetTimer"
C:\Users\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2343) : error 021: symbol already defined: "CreateVehicle"
C:\Users\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2347) : error 010: invalid function or declaration
C:\Users\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2360) : error 010: invalid function or declaration
C:\Users\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2366) : error 010: invalid function or declaration
C:\Users\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2377) : error 010: invalid function or declaration
C:\Users\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2386) : error 010: invalid function or declaration
C:\Users\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2393) : error 010: invalid function or declaration
C:\Users\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2406) : error 010: invalid function or declaration
C:\Users\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2417) : error 010: invalid function or declaration
C:\Users\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2430) : error 010: invalid function or declaration
C:\Users\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2441) : error 010: invalid function or declaration
C:\Users\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2453) : error 010: invalid function or declaration
 
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
 
 

26 Errors. 

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты
Terhe1337

cmd:time(playerid, params[])
{
    if(!PlayerInfo[playerid][pLogin]) return SendErrorMessage(playerid,"Вы не авторизованы!");
    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);
    if (PlayerInfo[playerid][pJailTime] > 0)
    {
        format(YCMDstr, sizeof(YCMDstr), "%d %s, {CCFF33}%d часов %d минут(ы).\n\n{FFFFFF}Осталось сидеть в тюрьме: {CCFF33}%d сек.", day, mtext, hour, minuite, PlayerInfo[playerid][pJailTime]);
    }
    else
    {
        format(YCMDstr, sizeof(YCMDstr), "{FFFFFF}%d %s, {CCFF33}%d часов %d минут(ы).\n\n{FFFFFF}Время в игре (за час):{CCFF33} %i минут(ы).", day, mtext, hour, minuite, PlayerInfo[playerid][pTimeBP]);
    }
    ApplyAnimation(playerid,"COP_AMBIENT","Coplook_watch",4.1,0,0,0,0,0,1);
    ShowPlayerDialog(playerid,3861,DIALOG_STYLE_MSGBOX,"{1E90FF}Часы",YCMDstr,"Готово","");
SetPlayerChatBubble(playerid, "Посмотрел на часы", COLOR_PURPLE, 30.0, 10000);
    return 1;
}

 

Вот команда, кидал и в конец мода, и в OnPlayerCommandText

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты
Великий Доктор

Нажмите F5 и скиньте, что в окне будет.

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты
Terhe1337

 

 


Вот логи компилирования: C:\Users\Никита\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2148) : error 021: symbol already defined: "TextDrawLetterSize" C:\Users\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2153) : error 010: invalid function or declaration C:\Users\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2165) : warning 219: local variable "string" shadows a variable at a preceding level C:\Users\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2190) : error 055: start of function body without function header C:\Users\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2197) : error 021: symbol already defined: "SetTimer" C:\Users\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2200) : error 021: symbol already defined: "Create3DTextLabel" C:\Users\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2206) : error 010: invalid function or declaration C:\Users\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2220) : error 010: invalid function or declaration C:\Users\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2226) : error 010: invalid function or declaration C:\Users\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2228) : error 010: invalid function or declaration C:\Users\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2234) : error 010: invalid function or declaration C:\Users\Никита\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2296) : error 010: invalid function or declaration C:\Users\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2320) : error 010: invalid function or declaration C:\Users\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2332) : error 010: invalid function or declaration C:\Users\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2338) : error 021: symbol already defined: "SetTimer" C:\Users\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2343) : error 021: symbol already defined: "CreateVehicle" C:\Users\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2347) : error 010: invalid function or declaration C:\Users\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2360) : error 010: invalid function or declaration C:\Users\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2366) : error 010: invalid function or declaration C:\Users\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2377) : error 010: invalid function or declaration C:\Users\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2386) : error 010: invalid function or declaration C:\Users\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2393) : error 010: invalid function or declaration C:\Users\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2406) : error 010: invalid function or declaration C:\Users\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2417) : error 010: invalid function or declaration C:\Users\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2430) : error 010: invalid function or declaration C:\Users\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2441) : error 010: invalid function or declaration C:\Users\Desktop\[Country RolePlay\gamemodes\DomVDerevne.pwn(2453) : error 010: invalid function or declaration   Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase     26 Errors. 

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

Для публикации сообщений создайте учётную запись или авторизуйтесь

Вы должны быть пользователем, чтобы оставить комментарий

Создать учетную запись

Зарегистрируйте новую учётную запись в нашем сообществе. Это очень просто!

Регистрация нового пользователя

Войти

Уже есть аккаунт? Войти в систему.

Войти
Авторизация  

  • Последние посетители   0 пользователей онлайн

    Ни одного зарегистрированного пользователя не просматривает данную страницу

×

Важная информация

Мы разместили cookie-файлы на ваше устройство, чтобы помочь сделать этот сайт лучше. Вы можете изменить свои настройки cookie-файлов, или продолжить без изменения настроек.