Если Вы нашли ответ на вопрос, пожалуйста, пометьте необходимый ответ лучшим (галочка сбоку от сообщения) и поблагодарите автора этого ответа поднятием репутации (плюс в нижней правой части сообщения). Спасибо.
Подробнее:
FAQ по форуму
Как пометить ответ лучшим

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



Не найдено.

24 posts in this topic

Спойлер

J:\Ñåðâåð TimePlay RolePlay\Ìîä\pawno\include\YSI\internal\..\y_scriptinit.inc(239) : error 017: undefined symbol "ScriptInit_OnFilterScriptExit"
J:\Ñåðâåð TimePlay RolePlay\Ìîä\pawno\include\YSI\internal\..\y_scriptinit.inc(258) : error 017: undefined symbol "ScriptInit_OnGameModeExit"
J:\Ñåðâåð TimePlay RolePlay\Ìîä\pawno\include\YSI\internal\..\y_scriptinit.inc(270) : error 017: undefined symbol "ScriptInit_OnGameModeExit"
J:\Ñåðâåð TimePlay RolePlay\Ìîä\pawno\include\YSI\y_iterate.inc(646) : error 017: undefined symbol "Itter_OnPlayerConnect"
J:\Ñåðâåð TimePlay RolePlay\Ìîä\pawno\include\YSI\y_iterate.inc(745) : error 017: undefined symbol "Itter_OnFilterScriptInit"
J:\Ñåðâåð TimePlay RolePlay\Ìîä\pawno\include\YSI\y_iterate.inc(909) : error 017: undefined symbol "Itter_OnPlayerDisconnect"
J:\Ñåðâåð TimePlay RolePlay\Ìîä\gamemodes\stel.pwn(2043) : error 017: undefined symbol "GetVehicleSpeed"
J:\Ñåðâåð TimePlay RolePlay\Ìîä\gamemodes\stel.pwn(2047) : error 017: undefined symbol "GetVehicleSpeed"
J:\Ñåðâåð TimePlay RolePlay\Ìîä\gamemodes\stel.pwn(2048) : error 017: undefined symbol "GetVehicleSpeed"
J:\Ñåðâåð TimePlay RolePlay\Ìîä\gamemodes\stel.pwn(2049) : error 017: undefined symbol "TransferMoney"
J:\Ñåðâåð TimePlay RolePlay\Ìîä\gamemodes\stel.pwn(2730) : error 017: undefined symbol "SetPlayerPosServer"
J:\Ñåðâåð TimePlay RolePlay\Ìîä\gamemodes\stel.pwn(2760) : error 017: undefined symbol "Air_Get_Pos"
J:\Ñåðâåð TimePlay RolePlay\Ìîä\gamemodes\stel.pwn(2761) : error 017: undefined symbol "Air_Gettime"
J:\Ñåðâåð TimePlay RolePlay\Ìîä\gamemodes\stel.pwn(2792) : error 017: undefined symbol "Air_Get_Pos"
J:\Ñåðâåð TimePlay RolePlay\Ìîä\gamemodes\stel.pwn(2793) : error 017: undefined symbol "Air_Gettime"
J:\Ñåðâåð TimePlay RolePlay\Ìîä\gamemodes\stel.pwn(3000) : error 017: undefined symbol "SaveAccount"
J:\Ñåðâåð TimePlay RolePlay\Ìîä\gamemodes\stel.pwn(3026) : error 017: undefined symbol "RemoveFromVehicle"
J:\Ñåðâåð TimePlay RolePlay\Ìîä\gamemodes\stel.pwn(3046) : error 017: undefined symbol "getDay"
J:\Ñåðâåð TimePlay RolePlay\Ìîä\gamemodes\stel.pwn(3066) : error 017: undefined symbol "SetHealth"
J:\Ñåðâåð TimePlay RolePlay\Ìîä\gamemodes\stel.pwn(3074) : error 017: undefined symbol "SetHealth"
J:\Ñåðâåð TimePlay RolePlay\Ìîä\gamemodes\stel.pwn(3079) : error 017: undefined symbol "IsACop"
J:\Ñåðâåð TimePlay RolePlay\Ìîä\gamemodes\stel.pwn(3090) : error 017: undefined symbol "MeAction"
J:\Ñåðâåð TimePlay RolePlay\Ìîä\gamemodes\stel.pwn(3099) : error 017: undefined symbol "IsACop"
J:\Ñåðâåð TimePlay RolePlay\Ìîä\gamemodes\stel.pwn(3112) : error 017: undefined symbol "MeAction"
J:\Ñåðâåð TimePlay RolePlay\Ìîä\gamemodes\stel.pwn(3177) : error 017: undefined symbol "Converts"
J:\Ñåðâåð TimePlay RolePlay\Ìîä\gamemodes\stel.pwn(3282) : error 017: undefined symbol "GetMoney"

Compilation aborted.

Pawn compiler 3.10.20150531     Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.


Скажите что вам скидавать так как я незнаю, все не вырянт

0

Share this post


Link to post
Share on other sites

@stibs 

Спойлер

            if(GetMoney(playerid) < price)
            {
                SendMes(targetid, COLOR_GREY, "У игрока %s недостаточно средств!", GetName(playerid));
                DeletePVar(playerid, "TicketPlayer");
                DeletePVar(playerid, "TicketSumma");
                DeletePVar(playerid, "TicketReason");
                DeletePVar(playerid, "KeyTicket");
                SCM(playerid, COLOR_GREY, "У вас не хватает денег!"); (Тут ошибка)
                return 1;
            }

Что тут не так? 

0

Share this post


Link to post
Share on other sites

@stibs

Спойлер

stock GetVehicleSpeed(playerid)
{
    new Float: x, Float: y, Float: z;
    if(IsPlayerInAnyVehicle(playerid))
        GetVehicleVelocity(GetPlayerVehicleID(playerid), x, y, z);
    else
        GetPlayerVelocity(playerid, x, y, z);
    return floatround(floatsqroot(x*x+y*y+z*z)*150);
}

 

0

Share this post


Link to post
Share on other sites

@stibs 

Спойлер

J:\Сервер TimePlay RolePlay\Мод\gamemodes\stel.pwn(9222) : fatal error 111: user error: test


Compilation aborted.

Pawn compiler 3.10.20150531              Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
 

 

0

Share this post


Link to post
Share on other sites

@Daniil Roslyakov ну вот значит пропущена скобка до того момента, как вы ставили строку #error test. 

Таким макаром и продвигайтесь, постепенно сужая выборку. Дойдете до пропущенной скобки.

0

Share this post


Link to post
Share on other sites

@stibs так я искал сразу с помощью вашего способа, и ручную, и нефига
Я могу дать скрипт с друго го форума, надеюсь не защищаете за рекламу

0

Share this post


Link to post
Share on other sites

@Daniil Roslyakov Вы до куда дошли, скиньте этот код (если до какого-то паблика, то весь паблик). И еще, в моде есть stock IsACop? 

0

Share this post


Link to post
Share on other sites

@stibs 

Спойлер

stock IsACop(playerid)
{
    switch(GetTeamID(playerid))
    {
        case TEAM_POLICIA,TEAM_DPS,TEAM_FBI: return 1;
        default: return 0;
    }
    return 0;
}


От куда я брал код Клик (Не реклама), если захотите удалите ссылку

0

Share this post


Link to post
Share on other sites

@Daniil Roslyakov Ссылки, которые публикуются не в рекламных целях разрешены. 

Попробуйте код, который вы вставляли в OnPlayerSelectedMenuRow заменить на этот:

Спойлер

if(Current == Admin) 
        { 
        if (dostup[playerid] != 1) return ShowPlayerDialog(playerid,2934,DIALOG_STYLE_INPUT,"Админ авторизация","Введите пароль\n\nПароль должен состоять из латинских букв и цифр\n\tразмером от 6 до 15 символов","Вход","Отмена"); 
        ShowMenuForPlayer(Admin,playerid); 
        new ClickedPlayerName[MAX_PLAYER_NAME],pName[MAX_PLAYER_NAME]; GetPlayerName(SpecAd[playerid],ClickedPlayerName,24); GetPlayerName(playerid,pName,24); 
        switch(row) 
        { 
        case 0: 
        { 
        StartSpectate(playerid,SpecAd[playerid]); 
        } 
        case 1: 
        { 
        new string[128]; 
        if(PlayerInfo[playerid][pAdmin] <= 1) return SendClientMessage(playerid, COLOR_WHITE, "Вам надо иметь 1 lvl админки или выше!"); ShowMenuForPlayer(Admin,playerid); 
        if(PlayerInfo[SpecAd[playerid]][pMuted] == 0) 
        { 
        if (dostup[playerid] != 1) return ShowPlayerDialog(playerid,2934,DIALOG_STYLE_PASSWORD,"Админ авторизация","Введите пароль\n\nПароль должен состоять из латинских букв и цифр\nразмером от 6 до 15 символов","Вход","Отмена"); 
        format(string, sizeof(string), "%s получил бан чата от администратора %s ",ClickedPlayerName, pName ); 
        SendClientMessageToAll(COLOR_LIGHTRED, string); 
        PlayerInfo[SpecAd[playerid]][pMuteTime] = 300; 
        PlayerInfo[SpecAd[playerid]][pMuted] = 1; 
        ShowMenuForPlayer(Admin,playerid); 
        } 
        else 
        { 
        format(string, sizeof(string), "Администратор %s снял бан чата у %s ", pName,ClickedPlayerName ); 
        SendClientMessageToAll(COLOR_LIGHTRED, string); 
        PlayerInfo[SpecAd[playerid]][pMuteTime] = 0; 
        PlayerInfo[SpecAd[playerid]][pMuted] = 0; 
        ShowMenuForPlayer(Admin,playerid); 
        } 
        } 
        case 2: 
        { 
              if(PlayerInfo[playerid][pAdmin] <= 1) return SendClientMessage(playerid, COLOR_WHITE, "Вам надо иметь 1 lvl админки или выше!"); ShowMenuForPlayer(Admin,playerid); 
            ShowPlayerDialog(playerid,13997,DIALOG_STYLE_INPUT,"Кик","Введите причину","Кик","Отмена"); 
        } 
        case 3: 
        { 
              if(PlayerInfo[playerid][pAdmin] <= 2) return SendClientMessage(playerid, COLOR_WHITE, "Вам надо иметь 2 lvl админки или выше!"); ShowMenuForPlayer(Admin,playerid); 
            ShowPlayerDialog(playerid,13998,DIALOG_STYLE_INPUT,"Варн","Введите причину","Варн","Отмена"); 
        } 
        case 4: 
        { 
              if(PlayerInfo[playerid][pAdmin] <= 2) return SendClientMessage(playerid, COLOR_WHITE, "Вам надо иметь 2 lvl админки или выше!"); ShowMenuForPlayer(Admin,playerid); 
            ShowPlayerDialog(playerid,13999,DIALOG_STYLE_INPUT,"Бан","Введите причину","Бан","Отмена"); 
        } 
        case 5: 
        { 
        if(PlayerInfo[playerid][pAdmin] <= 2) return SendClientMessage(playerid, COLOR_WHITE, "Вам надо иметь 2 lvl админки или выше!"); ShowMenuForPlayer(Admin,playerid); 
        new Float:shealth; 
        new Float:slx, Float:sly, Float:slz; 
        new name[MAX_PLAYER_NAME]; 
        new sendername[MAX_PLAYER_NAME]; 
        GetPlayerName(playerid ,name , sizeof(name)); 
        GetPlayerName(SpecAd[playerid] ,sendername , sizeof(sendername)); 
        GetPlayerHealth(SpecAd[playerid], shealth); 
        SetPlayerHealthAC(SpecAd[playerid], shealth-5); 
        GetPlayerPos(SpecAd[playerid], slx, sly, slz); 
        SetPlayerPosServer(SpecAd[playerid], slx, sly, slz+5); 
        PlayerPlaySound(SpecAd[playerid], 1130, slx, sly, slz+5); 
        new string[128]; 
        format(string, sizeof(string), "Админ %s дал поджопник %s",name,sendername); 
        ABroadCast(COLOR_LIGHTRED,string,1); 
        SendClientMessage(SpecAd[playerid], COLOR_LIGHTRED, string); 
        } 
        case 6: 
        { 
        new mess[256]; 
        format(mess, sizeof(mess), "/getstats %d",SpecAd[playerid]); 
        OnPlayerCommandText(playerid,mess); 
        } 
        case 7: 
        { 
        new giveplayer[256]; 
        new playersip[256]; 
        GetPlayerName(SpecAd[playerid], giveplayer, sizeof(giveplayer)); 
        GetPlayerIp(SpecAd[playerid],playersip,sizeof(playersip)); 
        new string[128]; 
        format(string, sizeof(string), "[%s] IP: %s",giveplayer,playersip); 
        SendClientMessage(playerid,0x6495EDFF,string); 
        } 
        case 8: 
        { 
        if(PlayerInfo[playerid][pAdmin] <= 2) return SendClientMessage(playerid, COLOR_WHITE, "Вам надо иметь 2 lvl админки или выше!"); ShowMenuForPlayer(Admin,playerid); 
          GetPlayerHealth(SpecAd[playerid],GMHP[SpecAd[playerid]][0]); 
        GetVehicleHealth(GetPlayerVehicleID(SpecAd[playerid]),VEHHP[SpecAd[playerid]][0]); 
        GetPlayerArmour(SpecAd[playerid], GMARMOUR[SpecAd[playerid]][0]); 
        SetPlayerHealthAC(SpecAd[playerid], 100.0); 
        player_NoCheckTimeVeh[SpecAd[playerid]] = 3; 
        SetVehicleHealth(GetPlayerVehicleID(SpecAd[playerid]),10000.0); 
        SetPlayerArmourAC(SpecAd[playerid], 0); 
        SetTimerEx("GETHP",1000,false,"i",SpecAd[playerid]); 
        new Float:boomx, Float:boomy, Float:boomz; 
        GetPlayerPos(SpecAd[playerid],boomx, boomy, boomz); 
        CreateExplosion(boomx, boomy , boomz, 5, 2); 
        ShowMenuForPlayer(Admin,playerid); 
        } 
        case 10: 
        { 
        if(GetPlayerState(playerid) == PLAYER_STATE_SPECTATING) 
        { 
            StopSpectate(playerid); 
            SetPlayerHealthAC(playerid, 100); 
        } 
            SpawnPlayer(playerid); 
            HideMenuForPlayer(Admin,playerid); 
        } 
        case 9: 
        { 
            if(PlayerInfo[playerid][pAdmin] <= 2) return SendClientMessage(playerid, COLOR_WHITE, "Вам надо иметь 3 lvl админки или выше!"); ShowMenuForPlayer(Admin,playerid); 
            { 
                new stringskill[800]; 
                new points[6],percent[2] = "%"; 
                points[0] = 100 - PlayerInfo[SpecAd[playerid]][pGunSkill][0]; 
                points[1] = 100 - PlayerInfo[SpecAd[playerid]][pGunSkill][1]; 
                points[2] = 100 - PlayerInfo[SpecAd[playerid]][pGunSkill][2]; 
                points[3] = 100 - PlayerInfo[SpecAd[playerid]][pGunSkill][3]; 
                points[4] = 100 - PlayerInfo[SpecAd[playerid]][pGunSkill][4]; 
                points[5] = 100 - PlayerInfo[SpecAd[playerid]][pGunSkill][5]; 
                format(stringskill,sizeof(stringskill), "Nick player:\t %s\n\nSDPistol:\t[%s]%d%s\nDeagle:\t[%s]%d%s\nShotGun:\t[%s]%d%s\nMP5\t\t[%s]%d%s\nAK47:\t\t[%s]%d%s\nM4A1:\t\t[%s]%d%s", 
                getName(SpecAd[playerid]), 
                ToDevelopSkills(PlayerInfo[SpecAd[playerid]][pGunSkill][0],points[0]),PlayerInfo[SpecAd[playerid]][pGunSkill][0],percent, 
                ToDevelopSkills(PlayerInfo[SpecAd[playerid]][pGunSkill][1],points[1]),PlayerInfo[SpecAd[playerid]][pGunSkill][1],percent, 
                ToDevelopSkills(PlayerInfo[SpecAd[playerid]][pGunSkill][2],points[2]),PlayerInfo[SpecAd[playerid]][pGunSkill][2],percent, 
                ToDevelopSkills(PlayerInfo[SpecAd[playerid]][pGunSkill][3],points[3]),PlayerInfo[SpecAd[playerid]][pGunSkill][3],percent, 
                ToDevelopSkills(PlayerInfo[SpecAd[playerid]][pGunSkill][4],points[4]),PlayerInfo[SpecAd[playerid]][pGunSkill][4],percent, 
                ToDevelopSkills(PlayerInfo[SpecAd[playerid]][pGunSkill][5],points[5]),PlayerInfo[SpecAd[playerid]][pGunSkill][5],percent); 
                ShowPlayerDialog(playerid,43,DIALOG_STYLE_MSGBOX, "Скиллы игрока",stringskill, "Закрыть", ""); 
            } 
        } 
        case 11: 
        { 
        if(GetPlayerState(playerid) == PLAYER_STATE_SPECTATING) 
        { 
            StopSpectate(playerid); 
            SetPlayerHealthAC(playerid, 100); 
        } 
            SpawnPlayer(playerid); 
            HideMenuForPlayer(Admin,playerid); 
            } 
        } 

 

 

0

Share this post


Link to post
Share on other sites

@stibs 

Спойлер

public OnPlayerSelectedMenuRow(playerid, row)
{
if(Current == Admin)
        {
        if (dostup[playerid] != 1) return ShowPlayerDialog(playerid,2934,DIALOG_STYLE_INPUT,"Aaiei aaoi?ecaoey","Aaaaeoa ia?ieu\n\nIa?ieu aie?ai ninoiyou ec eaoeineeo aoea e oeo?\n\t?acia?ii io 6 ai 15 neiaieia","Aoia","Ioiaia");
        ShowMenuForPlayer(Admin,playerid);
        new ClickedPlayerName[MAX_PLAYER_NAME],pName[MAX_PLAYER_NAME]; GetPlayerName(SpecAd[playerid],ClickedPlayerName,24); GetPlayerName(playerid,pName,24);
        switch(row)
        {
        case 0:
        {
        StartSpectate(playerid,SpecAd[playerid]);
        }
        case 1:
        {
        new string[128];
        if(PlayerInfo[playerid][pAdmin] <= 1) return SendClientMessage(playerid, COLOR_WHITE, "Aai iaai eiaou 1 lvl aaieiee eee auoa!"); ShowMenuForPlayer(Admin,playerid);
        if(PlayerInfo[SpecAd[playerid]][pMuted] == 0)
        {
        if (dostup[playerid] != 1) return ShowPlayerDialog(playerid,2934,DIALOG_STYLE_PASSWORD,"Aaiei aaoi?ecaoey","Aaaaeoa ia?ieu\n\nIa?ieu aie?ai ninoiyou ec eaoeineeo aoea e oeo?\n?acia?ii io 6 ai 15 neiaieia","Aoia","Ioiaia");
        format(string, sizeof(string), "%s iieo?ee aai ?aoa io aaieieno?aoi?a %s ",ClickedPlayerName, pName );
        SendClientMessageToAll(COLOR_LIGHTRED, string);
        PlayerInfo[SpecAd[playerid]][pMuteTime] = 300;
        PlayerInfo[SpecAd[playerid]][pMuted] = 1;
        ShowMenuForPlayer(Admin,playerid);
        }
        else
        {
        format(string, sizeof(string), "Aaieieno?aoi? %s niye aai ?aoa o %s ", pName,ClickedPlayerName );
        SendClientMessageToAll(COLOR_LIGHTRED, string);
        PlayerInfo[SpecAd[playerid]][pMuteTime] = 0;
        PlayerInfo[SpecAd[playerid]][pMuted] = 0;
        ShowMenuForPlayer(Admin,playerid);
        }
        }
        case 2:
        {
              if(PlayerInfo[playerid][pAdmin] <= 2) return SendClientMessage(playerid, COLOR_WHITE, "Aai iaai eiaou 2 lvl aaieiee eee auoa!"); ShowMenuForPlayer(Admin,playerid);
            ShowPlayerDialog(playerid,13997,DIALOG_STYLE_INPUT,"Eee","Aaaaeoa i?e?eio","Eee","Ioiaia");
        }
        case 3:
        {
              if(PlayerInfo[playerid][pAdmin] <= 4) return SendClientMessage(playerid, COLOR_WHITE, "Aai iaai eiaou 4 lvl aaieiee eee auoa!"); ShowMenuForPlayer(Admin,playerid);
            ShowPlayerDialog(playerid,13998,DIALOG_STYLE_INPUT,"Aa?i","Aaaaeoa i?e?eio","Aa?i","Ioiaia");
        }
        case 4:
        {
              if(PlayerInfo[playerid][pAdmin] <= 5) return SendClientMessage(playerid, COLOR_WHITE, "Aai iaai eiaou 5 lvl aaieiee eee auoa!"); ShowMenuForPlayer(Admin,playerid);
            ShowPlayerDialog(playerid,13999,DIALOG_STYLE_INPUT,"Aai","Aaaaeoa i?e?eio","Aai","Ioiaia");
        }
        case 5:
        {
        if(PlayerInfo[playerid][pAdmin] <= 2) return SendClientMessage(playerid, COLOR_WHITE, "Aai iaai eiaou 2 lvl aaieiee eee auoa!"); ShowMenuForPlayer(Admin,playerid);
        new Float:shealth;
        new Float:slx, Float:sly, Float:slz;
        new name[MAX_PLAYER_NAME];
        new sendername[MAX_PLAYER_NAME];
        GetPlayerName(playerid ,name , sizeof(name));
        GetPlayerName(SpecAd[playerid] ,sendername , sizeof(sendername));
        GetPlayerHealth(SpecAd[playerid], shealth);
        SetPlayerHealthAC(SpecAd[playerid], shealth-5);
        GetPlayerPos(SpecAd[playerid], slx, sly, slz);
        SetPlayerPosServer(SpecAd[playerid], slx, sly, slz+5);
        PlayerPlaySound(SpecAd[playerid], 1130, slx, sly, slz+5);
        new string[128];
        format(string, sizeof(string), "Aaiei %s aae iia?iiiee %s",name,sendername);
        ABroadCast(COLOR_LIGHTRED,string,1);
        SendClientMessage(SpecAd[playerid], COLOR_LIGHTRED, string);
        }
        case 6:
        {
        new mess[256];
        format(mess, sizeof(mess), "/check %d",SpecAd[playerid]);
        OnPlayerCommandText(playerid,mess);
        }
        case 7:
        {
        new giveplayer[256];
        new playersip[256];
        GetPlayerName(SpecAd[playerid], giveplayer, sizeof(giveplayer));
        GetPlayerIp(SpecAd[playerid],playersip,sizeof(playersip));
        new string[128];
        format(string, sizeof(string), "[%s] IP: %s",giveplayer,playersip);
        SendClientMessage(playerid,0x6495EDFF,string);
        }
        case 8:
        {
        if(PlayerInfo[playerid][pAdmin] <= 2) return SendClientMessage(playerid, COLOR_WHITE, "Aai iaai eiaou 2 lvl aaieiee eee auoa!"); ShowMenuForPlayer(Admin,playerid);
          GetPlayerHealth(SpecAd[playerid],GMHP[SpecAd[playerid]][0]);
        GetVehicleHealth(GetPlayerVehicleID(SpecAd[playerid]),VEHHP[SpecAd[playerid]][0]);
        GetPlayerArmour(SpecAd[playerid], GMARMOUR[SpecAd[playerid]][0]);
        SetPlayerHealthAC(SpecAd[playerid], 100.0);
        player_NoCheckTimeVeh[SpecAd[playerid]] = 3;
        SetVehicleHealth(GetPlayerVehicleID(SpecAd[playerid]),10000.0);
        SetPlayerArmourAC(SpecAd[playerid], 0);
        SetTimerEx("GETHP",1000,false,"i",SpecAd[playerid]);
        new Float:boomx, Float:boomy, Float:boomz;
        GetPlayerPos(SpecAd[playerid],boomx, boomy, boomz);
        CreateExplosion(boomx, boomy , boomz, 5, 2);
        ShowMenuForPlayer(Admin,playerid);
        }
        case 10:
        {
        if(GetPlayerState(playerid) == PLAYER_STATE_SPECTATING)
        {
            StopSpectate(playerid);
            SetPlayerHealthAC(playerid, 100);
        }
            SpawnPlayer(playerid);
            HideMenuForPlayer(Admin,playerid);
        }
        case 9:
        {
            if(PlayerInfo[playerid][pAdmin] <= 2) return SendClientMessage(playerid, COLOR_WHITE, "Aai iaai eiaou 2 lvl aaieiee eee auoa!"); ShowMenuForPlayer(Admin,playerid);
            {
                new stringskill[800];
                new points[6],percent[2] = "%";
                points[0] = 100 - PlayerInfo[SpecAd[playerid]][pGunSkill][0];
                points[1] = 100 - PlayerInfo[SpecAd[playerid]][pGunSkill][1];
                points[2] = 100 - PlayerInfo[SpecAd[playerid]][pGunSkill][2];
                points[3] = 100 - PlayerInfo[SpecAd[playerid]][pGunSkill][3];
                points[4] = 100 - PlayerInfo[SpecAd[playerid]][pGunSkill][4];
                points[5] = 100 - PlayerInfo[SpecAd[playerid]][pGunSkill][5];
                format(stringskill,sizeof(stringskill), "Nick player:\t %s\n\nSDPistol:\t[%s]%d%s\nDeagle:\t[%s]%d%s\nShotGun:\t[%s]%d%s\nMP5\t\t[%s]%d%s\nAK47:\t\t[%s]%d%s\nM4A1:\t\t[%s]%d%s",
                getName(SpecAd[playerid]),
                ToDevelopSkills(PlayerInfo[SpecAd[playerid]][pGunSkill][0],points[0]),PlayerInfo[SpecAd[playerid]][pGunSkill][0],percent,
                ToDevelopSkills(PlayerInfo[SpecAd[playerid]][pGunSkill][1],points[1]),PlayerInfo[SpecAd[playerid]][pGunSkill][1],percent,
                ToDevelopSkills(PlayerInfo[SpecAd[playerid]][pGunSkill][2],points[2]),PlayerInfo[SpecAd[playerid]][pGunSkill][2],percent,
                ToDevelopSkills(PlayerInfo[SpecAd[playerid]][pGunSkill][3],points[3]),PlayerInfo[SpecAd[playerid]][pGunSkill][3],percent,
                ToDevelopSkills(PlayerInfo[SpecAd[playerid]][pGunSkill][4],points[4]),PlayerInfo[SpecAd[playerid]][pGunSkill][4],percent,
                ToDevelopSkills(PlayerInfo[SpecAd[playerid]][pGunSkill][5],points[5]),PlayerInfo[SpecAd[playerid]][pGunSkill][5],percent);
                ShowPlayerDialog(playerid,43,DIALOG_STYLE_MSGBOX, "Neeeeu ea?iea",stringskill, "Cae?uou", "");
            }
        }
        case 11:
        {
        if(GetPlayerState(playerid) == PLAYER_STATE_SPECTATING)
        {
            StopSpectate(playerid);
            SetPlayerHealthAC(playerid, 100);
        }
            SpawnPlayer(playerid);
            HideMenuForPlayer(Admin,playerid);
            }
        }
    return 1;
}

Спойлер

forward TeleportTimer(playerid); 
public TeleportTimer(playerid) 

    SetPlayerPosServer(playerid, TeleportDest[playerid][0],TeleportDest[playerid][1],TeleportDest[playerid][2]); 
    SetPlayerInterior(playerid, TeleportDestNoFloat[playerid][0]); 
    SetPlayerVirtualWorld(playerid, TeleportDestNoFloat[playerid][1]); 
    return true; 
}  

Спойлер

stock StopSpectate(playerid)
{
    HideMenuForPlayer(Admin,playerid);
    SetTimerEx(TeleportTimer,1000,false,i,playerid);
    return 1;
}

 

0

Share this post


Link to post
Share on other sites

@stibs 

Спойлер

forward UpdateSpeedometr(i);
public UpdateSpeedometr(i)
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        new tttgtg;
        new strr1[256];
        tttgtg = GetPlayerAmmo(SpecAd);
        new Float:hppp;
        new Float:aermor;
        GetPlayerArmour(SpecAd,aermor);
        GetPlayerHealth(SpecAd,hppp);
        if(PlayerInfo[pAdmin] >= 2)
        {
            if(IsPlayerInAnyVehicle(SpecAd))
               {
                new Float:health;
                GetVehicleHealth(GetPlayerVehicleID(SpecAd),health);
                format(strr1, sizeof(strr1),"%s~n~[ID:%d]~n~~n~~r~Armour: ~w~%.0f~n~~g~HP: ~w~%.0f~n~~g~CAR HP: ~w~%.0f~n~~r~MONEY:~w~%d~n~~b~AMMO: ~w~%d~n~~p~WARNS: ~w~%d~n~~y~PING: ~w~%d~n~~b~SPEED: ~w~%d~n~~b~OGRAN: ~w~%d",getName(SpecAd),SpecAd,aermor,hppp,health,PlayerInfo[SpecAd][pCash],tttgtg,PlayerInfo[SpecAd][pWarns],GetPlayerPing(SpecAd),SpeedVehicle(SpecAd),Limiter[SpecAd]);
                TextDrawSetString(FULLRECON,strr1);
            }
        if(!IsPlayerInAnyVehicle(SpecAd))
        {
        format(strr1, sizeof(strr1),"%s~n~[ID:%d]~n~~n~~r~Armour: ~w~%.0f~n~~g~HP: ~w~%.0f~n~~g~BANK:~w~%d~n~~r~MONEY:~w~%d~n~~b~AMMO: ~w~%d~n~~p~WARNS: ~w~%d~n~~y~PING: ~w~%d~n~~b~SPEED: ~w~%d",getName(SpecAd),SpecAd,aermor,hppp,PlayerInfo[SpecAd][pBank],PlayerInfo[SpecAd][pCash],tttgtg,PlayerInfo[SpecAd][pWarns],GetPlayerPing(SpecAd),SpeedVehicle(SpecAd));
        TextDrawSetString(FULLRECON,strr1);
        }
    }
    if(!IsPlayerInAnyVehicle(i)) return true;
    if(GetPlayerState(i) == PLAYER_STATE_DRIVER)
    {
        new vehicleid = GetPlayerVehicleID(i);
        if(IsAPlane(vehicleid) == 0 && IsABoat(vehicleid) == 0 && IsAVel(vehicleid) == 0)
        {
            new str[64],Float:vehhealth;
            GetVehicleHealth(vehicleid, vehhealth);
            new Float:km = GetVehicleSpeed(i) / 1500.0; Milleage[vehicleid] += km;
            f(str, "Состояние: %.1f%",vehhealth),RussianString(str);
               PlayerTextDrawSetString(i,SpeedMetr[4], str);
               
               f(str, "Пробег: %.1f КМ",Milleage[vehicleid]),RussianString(str);
            PlayerTextDrawSetString(i,SpeedMetr[3], str);
               f(str, "Топливо: %d л.", Fuel[vehicleid]),RussianString(str);
               PlayerTextDrawSetString(i,SpeedMetr[2], str);
               f(str,"%s",VehicleNames[GetVehicleModel(vehicleid)-400]);//,RussianString(str);
            PlayerTextDrawSetString(i,SpeedMetr[1], str);
            if(IsLocked[vehicleid]) str = "Двери: Закрыты";
            else str = "Двери: Открыты";
            RussianString(str),PlayerTextDrawSetString(i,SpeedMetr[5], str);
            if(Engine[vehicleid]) str = "Двигатель: Заведён";
            else str = "Двигатель: Заглушён";
            RussianString(str),PlayerTextDrawSetString(i,SpeedMetr[6], str);
            if(Lights[vehicleid]) str = "Свет: Включён";
            else str = "Свет: Выключен";
            RussianString(str),PlayerTextDrawSetString(i,SpeedMetr[7], str);
            /*if(!IsPlayerInAnyVehicle(i))
            {
                for(new p; p < 12; p++) PlayerTextDrawHide(i,SpeedPlayerText[p]);
                PlayerTextDrawHide(i, radar_speed);
                TextDrawHideForPlayer(i, show_speed[1]); TextDrawHideForPlayer(i, show_speed[2]);
            }*/
        }
    }
    return true;
}

 

 

0

Share this post


Link to post
Share on other sites

Замените: 
 

Спойлер

forward UpdateSpeedometr(i);
public UpdateSpeedometr(i)
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        new tttgtg;
        new strr1[256];
        tttgtg = GetPlayerAmmo(SpecAd);
        new Float:hppp;
        new Float:aermor;
        GetPlayerArmour(SpecAd,aermor);
        GetPlayerHealth(SpecAd,hppp);
        if(PlayerInfo[pAdmin] >= 2)
        {
            if(IsPlayerInAnyVehicle(SpecAd))
               {
                new Float:health;
                GetVehicleHealth(GetPlayerVehicleID(SpecAd),health);
                format(strr1, sizeof(strr1),"%s~n~[ID:%d]~n~~n~~r~Armour: ~w~%.0f~n~~g~HP: ~w~%.0f~n~~g~CAR HP: ~w~%.0f~n~~r~MONEY:~w~%d~n~~b~AMMO: ~w~%d~n~~p~WARNS: ~w~%d~n~~y~PING: ~w~%d~n~~b~SPEED: ~w~%d~n~~b~OGRAN: ~w~%d",getName(SpecAd),SpecAd,aermor,hppp,health,PlayerInfo[SpecAd][pCash],tttgtg,PlayerInfo[SpecAd][pWarns],GetPlayerPing(SpecAd),SpeedVehicle(SpecAd),Limiter[SpecAd]);
                TextDrawSetString(FULLRECON,strr1);
            }
        }
        if(!IsPlayerInAnyVehicle(SpecAd))
        {
        format(strr1, sizeof(strr1),"%s~n~[ID:%d]~n~~n~~r~Armour: ~w~%.0f~n~~g~HP: ~w~%.0f~n~~g~BANK:~w~%d~n~~r~MONEY:~w~%d~n~~b~AMMO: ~w~%d~n~~p~WARNS: ~w~%d~n~~y~PING: ~w~%d~n~~b~SPEED: ~w~%d",getName(SpecAd),SpecAd,aermor,hppp,PlayerInfo[SpecAd][pBank],PlayerInfo[SpecAd][pCash],tttgtg,PlayerInfo[SpecAd][pWarns],GetPlayerPing(SpecAd),SpeedVehicle(SpecAd));
        TextDrawSetString(FULLRECON,strr1);
        }
    }
    if(!IsPlayerInAnyVehicle(i)) return true;
    if(GetPlayerState(i) == PLAYER_STATE_DRIVER)
    {
        new vehicleid = GetPlayerVehicleID(i);
        if(IsAPlane(vehicleid) == 0 && IsABoat(vehicleid) == 0 && IsAVel(vehicleid) == 0)
        {
            new str[64],Float:vehhealth;
            GetVehicleHealth(vehicleid, vehhealth);
            new Float:km = GetVehicleSpeed(i) / 1500.0; Milleage[vehicleid] += km;
            f(str, "Состояние: %.1f%",vehhealth),RussianString(str);
               PlayerTextDrawSetString(i,SpeedMetr[4], str);
               
               f(str, "Пробег: %.1f КМ",Milleage[vehicleid]),RussianString(str);
            PlayerTextDrawSetString(i,SpeedMetr[3], str);
               f(str, "Топливо: %d л.", Fuel[vehicleid]),RussianString(str);
               PlayerTextDrawSetString(i,SpeedMetr[2], str);
               f(str,"%s",VehicleNames[GetVehicleModel(vehicleid)-400]);//,RussianString(str);
            PlayerTextDrawSetString(i,SpeedMetr[1], str);
            if(IsLocked[vehicleid]) str = "Двери: Закрыты";
            else str = "Двери: Открыты";
            RussianString(str),PlayerTextDrawSetString(i,SpeedMetr[5], str);
            if(Engine[vehicleid]) str = "Двигатель: Заведён";
            else str = "Двигатель: Заглушён";
            RussianString(str),PlayerTextDrawSetString(i,SpeedMetr[6], str);
            if(Lights[vehicleid]) str = "Свет: Включён";
            else str = "Свет: Выключен";
            RussianString(str),PlayerTextDrawSetString(i,SpeedMetr[7], str);
            /*if(!IsPlayerInAnyVehicle(i))
            {
                for(new p; p < 12; p++) PlayerTextDrawHide(i,SpeedPlayerText[p]);
                PlayerTextDrawHide(i, radar_speed);
                TextDrawHideForPlayer(i, show_speed[1]); TextDrawHideForPlayer(i, show_speed[2]);
            }*/
        }
    }
    return true;
}

 

 

0

Share this post


Link to post
Share on other sites

@stibs 

Спойлер

J:\Сервер TimePlay RolePlay\Мод\gamemodes\stel.pwn(2050) : error 017: undefined symbol "TransferMoney"
J:\Сервер TimePlay RolePlay\Мод\gamemodes\stel.pwn(2731) : error 017: undefined symbol "SetPlayerPosServer"
J:\Сервер TimePlay RolePlay\Мод\gamemodes\stel.pwn(2761) : error 017: undefined symbol "Air_Get_Pos"
J:\Сервер TimePlay RolePlay\Мод\gamemodes\stel.pwn(2762) : error 017: undefined symbol "Air_Gettime"
J:\Сервер TimePlay RolePlay\Мод\gamemodes\stel.pwn(2793) : error 017: undefined symbol "Air_Get_Pos"
J:\Сервер TimePlay RolePlay\Мод\gamemodes\stel.pwn(2794) : error 017: undefined symbol "Air_Gettime"
J:\Сервер TimePlay RolePlay\Мод\gamemodes\stel.pwn(3047) : error 017: undefined symbol "getDay"
J:\Сервер TimePlay RolePlay\Мод\gamemodes\stel.pwn(3091) : error 017: undefined symbol "MeAction"
J:\Сервер TimePlay RolePlay\Мод\gamemodes\stel.pwn(3113) : error 017: undefined symbol "MeAction"
J:\Сервер TimePlay RolePlay\Мод\gamemodes\stel.pwn(3283) : error 017: undefined symbol "TransferMoney"
J:\Сервер TimePlay RolePlay\Мод\gamemodes\stel.pwn(3336) : error 017: undefined symbol "SKick"
J:\Сервер TimePlay RolePlay\Мод\gamemodes\stel.pwn(3355) : error 017: undefined symbol "GetDistanceVehicle"
J:\Сервер TimePlay RolePlay\Мод\gamemodes\stel.pwn(3509) : error 017: undefined symbol "WHDataUpdate"
J:\Сервер TimePlay RolePlay\Мод\gamemodes\stel.pwn(3521) : error 017: undefined symbol "RussianString"
J:\Сервер TimePlay RolePlay\Мод\gamemodes\stel.pwn(3524) : error 017: undefined symbol "RussianString"
J:\Сервер TimePlay RolePlay\Мод\gamemodes\stel.pwn(3545) : error 017: undefined symbol "Fraction_Rang"
J:\Сервер TimePlay RolePlay\Мод\gamemodes\stel.pwn(3671) : warning 219: local variable "i" shadows a variable at a preceding level
J:\Сервер TimePlay RolePlay\Мод\gamemodes\stel.pwn(3675) : error 035: argument type mismatch (argument 1)
J:\Сервер TimePlay RolePlay\Мод\gamemodes\stel.pwn(3678) : error 035: argument type mismatch (argument 1)
J:\Сервер TimePlay RolePlay\Мод\gamemodes\stel.pwn(3679) : error 035: argument type mismatch (argument 1)
J:\Сервер TimePlay RolePlay\Мод\gamemodes\stel.pwn(3680) : error 017: undefined symbol "PlayerInfo"
J:\Сервер TimePlay RolePlay\Мод\gamemodes\stel.pwn(3680) : warning 215: expression has no effect
J:\Сервер TimePlay RolePlay\Мод\gamemodes\stel.pwn(3680) : error 001: expected token: ";", but found "]"
J:\Сервер TimePlay RolePlay\Мод\gamemodes\stel.pwn(3680) : error 029: invalid expression, assumed zero
J:\Сервер TimePlay RolePlay\Мод\gamemodes\stel.pwn(3680) : fatal error 107: too many error messages on one line

Compilation aborted.

Pawn compiler 3.10.20150531              Copyright (c) 1997-2006, ITB CompuPhase


23 Errors.

 

0

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

    • GLADE
      By GLADE
      Пожалуйста войдите или зарегистрируйтесь чтобы увидеть эту link.


      Пожалуйста войдите или зарегистрируйтесь чтобы увидеть эту link.
      Aurora RP (доработка)
      Хранение данных (версия MySQL): R41-3.
      Командный процессор: Pawn.CMD.
      Количество строк в моде (без маппинга): 63907.
      Анти-чит: Nexius-AC.

      Под доработку взята версия Aurora за декабрь 2018.
      Автор данного мода: oscar_floyd.
      Автор данной доработки: GLADE (я).

      На доработку мода ушло около одного месяца.

      Что было сделано:
       
      Пожалуйста войдите или зарегистрируйтесь чтобы увидеть эту spoiler.
       
    • sidoren.00@mail.ru
      By sidoren.00@mail.ru
      вот весь код"вроде не чего не забыл " , проблема не сохраняется тюнинг , помогите плиз
       
       
       
      Пожалуйста войдите или зарегистрируйтесь чтобы увидеть эту spoiler.