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



6 posts in this topic

-------------------------------ОШИБКИ--------------------------------------
C:\Users\Desktop\rp\gamemodes\new.pwn(23166) : error 017: undefined symbol "PlayerInfo"
C:\Users\Desktop\rp\gamemodes\new.pwn(23166) : warning 215: expression has no effect
C:\Users\Desktop\rp\gamemodes\new.pwn(23166) : error 001: expected token: ";", but found "]"
C:\Users\Desktop\rp\gamemodes\new.pwn(23166) : error 029: invalid expression, assumed zero
C:\Users\Desktop\rp\gamemodes\new.pwn(23166) : fatal error 107: too many error messages on one line



(23166)    if(!strcmp(PlayerInfo[playerid][pNames], FD1, true) || !strcmp(PlayerInfo[playerid][pNames], FD2, true) || !strcmp(PlayerInfo[playerid][pNames], FD3, true))



-------------------------КОМАНДА-----------------------------------------------

CMD:addprefix(playerid, params[])
{
    if(!strcmp(PlayerInfo[playerid][pNames], FD1, true) || !strcmp(PlayerInfo[playerid][pNames], FD2, true) || !strcmp(PlayerInfo[playerid][pNames], FD3, true))
    {
        if(PlayerInfo[playerid][pAlcoInvenxua] != 12) return 1;
        new targetid_prefix, number_prefix;
        if(sscanf(params, "ii",targetid_prefix, number_prefix))
        {
            SendClientMessage(playerid, COLOR_WHITE, "Ââåäèòå /addprefix [id] [id ïðåôèêñà]");
            SendClientMessage(playerid, COLOR_WHITE, "0 - ÓÁÐÀÒÜ, 1 - Ñîçäàòåëü ïðîåêòà, 2 - Ðàçðàáîò÷èê ïðîåêòà, 3 - Ñêðèïòåð ïðîåêòà");
            SendClientMessage(playerid, COLOR_WHITE, "4 - Ðóêîâîäèòåëü ïðîåêòà, 5 - Ñëåäÿùèé çà ãåòòî, 6 - Ñëåäÿùèé çà ãîñ.ñòðóêòóðàìè, 7 - Ñëåäÿùèé çà ìàôèÿìè");
            SendClientMessage(playerid, COLOR_WHITE, "8 - Ñëåäÿùèé çà Ñàïïîðòàìè, 9 - Ñëåäÿùèé Ñàïïîðòàìè, 10 - Çàìåñòèòåëü îñíîâàòåëÿ, 11 - Ñïîíñîð ïðîåêòà");
            return SendClientMessage(playerid, COLOR_WHITE, "12 - V.I.P. Àäìèíèñòðàòîð, 13 - Áåç íàçâàíèÿ, 14 - Áåç íàçâàíèÿ, 15 - Áåç íàçâàíèÿ");
        }
        if(PlayerInfo[targetid_prefix][pAlcoInvenxua] <= 0) return SendClientMessage(playerid, COLOR_WHITE, "×åëîâåê íå àäìèíèñòðàòîð!");
        if(number_prefix != 0)
        {
            PlayerInfo[targetid_prefix][prefix_id] = number_prefix;
             format(stringer1, sizeof(stringer1), "Ãëàâíûé àäìèíèñòðàòîð %s íàçíà÷èë àäìèíèñòðàòîðà %s íà äîëæíîñòü %s", PlayerInfo[playerid][pNames], PlayerInfo[targetid_prefix][pNames], pPrefixName[PlayerInfo[targetid_prefix][prefix_id]]);
              SendClientMessageToAll(COLOR_LIGHTRED, stringer1);
        }
        else
        {
            format(stringer1, sizeof(stringer1), "Ãëàâíûé àäìèíèñòðàòîð %s ñíÿë àäìèíèñòðàòîðà %s ñ äîëæíîñòè %s", PlayerInfo[playerid][pNames], PlayerInfo[targetid_prefix][pNames], pPrefixName[PlayerInfo[targetid_prefix][prefix_id]]);
              SendClientMessageToAll(COLOR_LIGHTRED, stringer1);
              PlayerInfo[targetid_prefix][prefix_id] = number_prefix;
        }
    }
    return 1;
}

 

Share this post


Link to post
Share on other sites

@Канал Parrot PlayerInfo заменить на свою переменную данных игрока (можно посмотреть использование в другой команде / системе). 

Share this post


Link to post
Share on other sites

DEST  Теперь вот что у меня вылезло я незн как убрать

(23167) : error 017: undefined symbol "FD1"
(23167) : error 029: invalid expression, assumed zero
(23167) : error 017: undefined symbol "FD2"
(23167) : fatal error 107: too many error messages on one line


if(pInfo[playerid][pNames], FD1, true) || (pInfo[playerid][pNames], FD2, true) || (pInfo[playerid][pNames], FD3, true));

 

Edited by Канал Parrot

Share this post


Link to post
Share on other sites

@Канал Parrot уберите эту строку

Share this post


Link to post
Share on other sites
6 часов назад, Канал Parrot сказал:

DEST  Теперь вот что у меня вылезло я незн как убрать


(23167) : error 017: undefined symbol "FD1"
(23167) : error 029: invalid expression, assumed zero
(23167) : error 017: undefined symbol "FD2"
(23167) : fatal error 107: too many error messages on one line


if(pInfo[playerid][pNames], FD1, true) || (pInfo[playerid][pNames], FD2, true) || (pInfo[playerid][pNames], FD3, true));

 

Уберите затем сделайте свою проверку на админа к примеру PI[playerid][pAdmin] и тд... 

Share this post


Link to post
Share on other sites

Покемон  и DEST, спасибо сразу бы сказали что нужно просто убрать эту строку и сделать свою проверку на адм

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • Alexey_Astrovskiy
      By Alexey_Astrovskiy
      Помогите перенести мигалки с ексайтинга(не пиар) в свой мод.