Error 017 undefined symbol textdraw

Здравствуйте пользователи CR-MP.RU! Помогите решить ошибку при сохранении мода Ошибка C:Users????DesktopМодgamemodesnew.pwn(2223) : error 017: undefined symbol Textdraw C:Users????DesktopМодgamemodesnew.pwn(2223) : warning 215: expression has no effect C:Users????DesktopМодgamemo...

Здравствуйте пользователи CR-MP.RU!

Помогите решить ошибку при сохранении мода 

Ошибка 


C:Users????DesktopМодgamemodesnew.pwn(2223) : error 017: undefined symbol "Textdraw"
C:Users????DesktopМодgamemodesnew.pwn(2223) : warning 215: expression has no effect
C:Users????DesktopМодgamemodesnew.pwn(2223) : error 001: expected token: ";", but found "]"
C:Users????DesktopМодgamemodesnew.pwn(2223) : error 029: invalid expression, assumed zero
C:Users????DesktopМодgamemodesnew.pwn(2223) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

4 Errors.

Строчки 


PlayerTextDrawHide(playerid,Textdraw[0][playerid]);
PlayerTextDrawHide(playerid,Textdraw[1][playerid]); PlayerTextDrawHide(playerid,Textdraw[2][playerid]);
PlayerTextDrawHide(playerid,Textdraw[3][playerid]); PlayerTextDrawHide(playerid,Textdraw[4][playerid]);
PlayerTextDrawHide(playerid,Textdraw[6][playerid]);

Регистрация
10 Апр 2016
Сообщения
73
Лучшие ответы
0
Репутация
1
Возраст
25

  • #1

Я не понимаю почему при создании текстдравов высвечиваются эти ошибки. Помогите кто может, плес…

Код:

new.pwn(1160) : error 017: undefined symbol "playerid"
gamemodesnew.pwn(1162) : error 017: undefined symbol "playerid"
gamemodesnew.pwn(1163) : error 017: undefined symbol "playerid"
gamemodesnew.pwn(1164) : error 017: undefined symbol "playerid"
gamemodesnew.pwn(1165) : error 017: undefined symbol "playerid"
gamemodesnew.pwn(1166) : error 017: undefined symbol "playerid"
gamemodesnew.pwn(1167) : error 017: undefined symbol "playerid"
gamemodesnew.pwn(1168) : error 017: undefined symbol "playerid"
gamemodesnew.pwn(1169) : error 017: undefined symbol "playerid"
gamemodesnew.pwn(1171) : error 017: undefined symbol "playerid"

Текстдравы обьявлены так:

Код:

new Text:text[MAX_PLAYERS]; // это просто пример

Вот один из моих текстдравов:

Код:

    KMShow[playerid] = TextDrawCreate(383.000000, 408.000000, "KM/H");
    TextDrawBackgroundColor(KMShow[playerid], 255);
    TextDrawFont(KMShow[playerid], 2);
    TextDrawLetterSize(KMShow[playerid], 0.200000, 1.000000);
    TextDrawColor(KMShow[playerid], -1);
    TextDrawSetOutline(KMShow[playerid], 0);
    TextDrawSetProportional(KMShow[playerid], 1);
    TextDrawSetShadow(KMShow[playerid], 1);

Содержание

  1. Error 017 undefined symbol setdynamicobjectmaterial
  2. Error 017 undefined symbol setdynamicobjectmaterial
  3. Поделиться сообщением
  4. 18 ответов на этот вопрос
  5. Последние посетители 0 пользователей онлайн
  6. Похожий контент
  7. Форум Pawn.Wiki — Воплоти мечту в реальность!: Кучень Error+Waring — Форум Pawn.Wiki — Воплоти мечту в реальность!

Error 017 undefined symbol setdynamicobjectmaterial

Your missing a < or >somewhere in your script. From personal experience i get similar errors when i miss a bracket somewhere in my mode.

If you cant find it take a look around in the tools section there is a few programs that look for missing brackets.

This is You must conclude it in the first line that Blue colour

This is Saying Undefined !

#define SetDynamicObjectMaterialText
#define CreateDynamicObjectEx
#define CreateDynamicObjectEx
#define SetDynamicObjectMaterial
#define CreateDynamicObjectEx
#define SetDynamicObjectMaterial
#define CreateDynamicObjectEx
#define SetDynamicObjectMaterial
#define CreateDynamicObjectEx
#define SetDynamicObjectMaterial
#define CreateDynamicObjectEx
#define SetDynamicObjectMaterialText
#define CreateDynamicObjectEx
#define SetDynamicObjectMaterialText
#define SetDynamicObjectMaterialText
#define SetDynamicObjectMaterialText
#define SetDynamicObjectMaterialText
#define Streamer_SetArrayData
#define SetDynamicObjectMaterialText
#define CreateDynamicCircleEx
#define CreateDynamicCircleEx
#define CreateDynamicCircleEx

I think This is Problem

Please REP Me.

Thank you Mars, it helped

But I got a problem with another gamemode and I get the folowing errors:

C:UsersD&GDesktopnfsw.pwn(364) : error 029: invalid expression, assumed zero
C:UsersD&GDesktopnfsw.pwn(454) : warning 202: number of arguments does not match definition
C:UsersD&GDesktopnfsw.pwn(461) : error 017: undefined symbol «CheckSet»
C:UsersD&GDesktopnfsw.pwn(462) : error 017: undefined symbol «CheckSet»
C:UsersD&GDesktopnfsw.pwn(463) : error 017: undefined symbol «CheckSet»
C:UsersD&GDesktopnfsw.pwn(464) : error 017: undefined symbol «SetMaxPing»
C:UsersD&GDesktopnfsw.pwn(465) : error 017: undefined symbol «SetWeaponAllowed»
C:UsersD&GDesktopnfsw.pwn(466) : error 017: undefined symbol «AntiCheatSetUpdateDelay»
C:UsersD&GDesktopnfsw.pwn(476) : error 017: undefined symbol «SetDynamicObjectMaterialText»
C:UsersD&GDesktopnfsw.pwn(495) : error 017: undefined symbol «CreateDynamicObjectEx»
C:UsersD&GDesktopnfsw.pwn(496) : error 017: undefined symbol «CreateDynamicObjectEx»
C:UsersD&GDesktopnfsw.pwn(497) : error 017: undefined symbol «SetDynamicObjectMaterial»
C:UsersD&GDesktopnfsw.pwn(49 : error 017: undefined symbol «CreateDynamicObjectEx»
C:UsersD&GDesktopnfsw.pwn(499) : error 017: undefined symbol «SetDynamicObjectMaterial»
C:UsersD&GDesktopnfsw.pwn(500) : error 017: undefined symbol «CreateDynamicObjectEx»
C:UsersD&GDesktopnfsw.pwn(501) : error 017: undefined symbol «SetDynamicObjectMaterial»
C:UsersD&GDesktopnfsw.pwn(502) : error 017: undefined symbol «CreateDynamicObjectEx»
C:UsersD&GDesktopnfsw.pwn(503) : error 017: undefined symbol «SetDynamicObjectMaterial»
C:UsersD&GDesktopnfsw.pwn(505) : error 017: undefined symbol «CreateDynamicObjectEx»
C:UsersD&GDesktopnfsw.pwn(506) : error 017: undefined symbol «SetDynamicObjectMaterialText»
C:UsersD&GDesktopnfsw.pwn(507) : error 017: undefined symbol «CreateDynamicObjectEx»
C:UsersD&GDesktopnfsw.pwn(50 : error 017: undefined symbol «SetDynamicObjectMaterialText»
C:UsersD&GDesktopnfsw.pwn(509) : error 017: undefined symbol «SetDynamicObjectMaterialText»
C:UsersD&GDesktopnfsw.pwn(510) : error 017: undefined symbol «CreateDynamicObjectEx»
C:UsersD&GDesktopnfsw.pwn(511) : error 017: undefined symbol «SetDynamicObjectMaterialText»
C:UsersD&GDesktopnfsw.pwn(512) : error 017: undefined symbol «SetDynamicObjectMaterialText»
C:UsersD&GDesktoppawnoincludenfswcenter_and _club.txt(25 : error 017: undefined symbol «Streamer_SetArrayData»

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

update you streamer to latest version
click here to download latest version: https://github.com/samp-incognito/sa. ugin-2.7.3.zip

then upload its include and plugin, then recompile script

C:UsersD&GDesktopsamp03z_svr_R1_win32pawnoin cludestreamer.inc(167) : error 017: undefined symbol «OBJECT_MATERIAL_SIZE_256x128»
C:UsersD&GDesktopsamp03z_svr_R1_win32pawnonf sw.pwn(364) : error 029: invalid expression, assumed zero
C:UsersD&GDesktopsamp03z_svr_R1_win32pawnonf sw.pwn(454) : warning 202: number of arguments does not match definition
C:UsersD&GDesktopsamp03z_svr_R1_win32pawnonf sw.pwn(461) : error 017: undefined symbol «CheckSet»
C:UsersD&GDesktopsamp03z_svr_R1_win32pawnonf sw.pwn(462) : error 017: undefined symbol «CheckSet»
C:UsersD&GDesktopsamp03z_svr_R1_win32pawnonf sw.pwn(463) : error 017: undefined symbol «CheckSet»
C:UsersD&GDesktopsamp03z_svr_R1_win32pawnonf sw.pwn(464) : error 017: undefined symbol «SetMaxPing»
C:UsersD&GDesktopsamp03z_svr_R1_win32pawnonf sw.pwn(465) : error 017: undefined symbol «SetWeaponAllowed»
C:UsersD&GDesktopsamp03z_svr_R1_win32pawnonf sw.pwn(466) : error 017: undefined symbol «AntiCheatSetUpdateDelay»
C:UsersD&GDesktopsamp03z_svr_R1_win32pawnonf sw.pwn(476) : error 017: undefined symbol «OBJECT_MATERIAL_SIZE_64x64»
C:UsersD&GDesktopsamp03z_svr_R1_win32pawnonf sw.pwn(506) : error 017: undefined symbol «OBJECT_MATERIAL_SIZE_32x32»
C:UsersD&GDesktopsamp03z_svr_R1_win32pawnonf sw.pwn(50 : error 017: undefined symbol «OBJECT_MATERIAL_SIZE_32x32»
C:UsersD&GDesktopsamp03z_svr_R1_win32pawnonf sw.pwn(509) : error 017: undefined symbol «OBJECT_MATERIAL_SIZE_32x32»
C:UsersD&GDesktopsamp03z_svr_R1_win32pawnonf sw.pwn(511) : error 017: undefined symbol «OBJECT_MATERIAL_SIZE_32x32»
C:UsersD&GDesktopsamp03z_svr_R1_win32pawnonf sw.pwn(512) : error 017: undefined symbol «OBJECT_MATERIAL_SIZE_32x32»
C:UsersD&GDesktopsamp03z_svr_R1_win32pawnoin cludenfswcenter_and_club.txt(272) : error 017: undefined symbol «OBJECT_MATERIAL_SIZE_256x128»
C:UsersD&GDesktopsamp03z_svr_R1_win32pawnoin cludenfswcenter_and_club.txt(277) : error 017: undefined symbol «OBJECT_MATERIAL_SIZE_256x128»
C:UsersD&GDesktopsamp03z_svr_R1_win32pawnoin cludenfswcenter_and_club.txt(280) : error 017: undefined symbol «OBJECT_MATERIAL_SIZE_256x128»
C:UsersD&GDesktopsamp03z_svr_R1_win32pawnoin cludenfswheights_and_paradise.txt(6) : error 017: undefined symbol «OBJECT_MATERIAL_SIZE_256x128»
C:UsersD&GDesktopsamp03z_svr_R1_win32pawnoin cludenfswheights_and_paradise.txt(319) : error 017: undefined symbol «OBJECT_MATERIAL_SIZE_256x128»
C:UsersD&GDesktopsamp03z_svr_R1_win32pawnoin cludenfswheights_and_paradise.txt(324) : error 017: undefined symbol «OBJECT_MATERIAL_SIZE_256x128»
C:UsersD&GDesktopsamp03z_svr_R1_win32pawnoin cludenfswgarcia_and_flats.txt(236) : error 017: undefined symbol «OBJECT_MATERIAL_SIZE_256x128»
C:UsersD&GDesktopsamp03z_svr_R1_win32pawnoin cludenfswgarcia_and_flats.txt(241) : error 017: undefined symbol «OBJECT_MATERIAL_SIZE_256x128»
C:UsersD&GDesktopsamp03z_svr_R1_win32pawnoin cludenfswverona_heights.txt(295) : error 017: undefined symbol «OBJECT_MATERIAL_SIZE_256x128»
C:UsersD&GDesktopsamp03z_svr_R1_win32pawnoin cludenfswverona_heights.txt(300) : error 017: undefined symbol «OBJECT_MATERIAL_SIZE_256x128»
C:UsersD&GDesktopsamp03z_svr_R1_win32pawnoin cludenfswglobal_textdraws.txt(102) : error 017: undefined symbol «TextDrawSetSelectable»
C:UsersD&GDesktopsamp03z_svr_R1_win32pawnoin cludenfswglobal_textdraws.txt(115) : error 017: undefined symbol «TextDrawSetSelectable»

Источник

Error 017 undefined symbol setdynamicobjectmaterial

    Активный Сообщений: 207
    Регистрация: 05.11.2017
    КПД: 9%

Доброе утро уже, у меня такая проблема, был интерьер и я решил его заретекстурить, все сделал, добавил инту обратно начал компилировать, и тут пошло, почему не признает функцию ретекстура? прошу помочь, вот ошибки.

С такой проблемой впервые столкнулся.

Заметка от Гость , создано 7 ноября, 2017

Берете код еще под спойлер! Как это делать вы можете посмотреть в разделе: «Дополнительно -> FAQ».

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

Ссылка на сообщение

Опубликовал DENIS.P. ,Опубликовано 8 ноября, 2017

18 ответов на этот вопрос

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

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

Похожий контент

Работает на IPS Community Suite 4
2017 — н.в. PAWNO-RUS.RU
При копировании материалов с сайта ссылка на наш форум обязательна!

Вы видите это сообщение, так как вы не вошли или не зарегистрировались. Чтобы получить более расширенные возможности войдите или зарегистрируйтесь.

Однако без регистрации Вы также сможете пользоваться форумом.

Источник

Форум Pawn.Wiki — Воплоти мечту в реальность!: Кучень Error+Waring — Форум Pawn.Wiki — Воплоти мечту в реальность!

  • Pawn скриптинг
  • Первая помощь
  • Проблемы с компилированием
  • Правила форума
  • Просмотр новых публикаций

  • Группа: Пользователи
  • Сообщений: 13
  • Регистрация: 03 апреля 15

C:Users. Desktop. gamemodesRealLife.pwn(19386) : warning 202: number of arguments does not match definition
C:Users. Desktop. gamemodesRealLife.pwn(19386) : warning 202: number of arguments does not match definition
C:Users. Desktop. gamemodesRealLife.pwn(19386) : warning 202: number of arguments does not match definition
C:Users. Desktop. gamemodesRealLife.pwn(19404) : warning 202: number of arguments does not match definition
C:Users. Desktop. gamemodesRealLife.pwn(19404) : warning 202: number of arguments does not match definition
C:Users. Desktop. gamemodesRealLife.pwn(19404) : warning 202: number of arguments does not match definition
C:Users. Desktop. gamemodesRealLife.pwn(19422) : warning 202: number of arguments does not match definition
C:Users. Desktop. gamemodesRealLife.pwn(19422) : warning 202: number of arguments does not match definition
C:Users. Desktop. gamemodesRealLife.pwn(19422) : warning 202: number of arguments does not match definition
C:Users. Desktop. gamemodesRealLife.pwn(19440) : warning 202: number of arguments does not match definition
C:Users. Desktop. gamemodesRealLife.pwn(19440) : warning 202: number of arguments does not match definition
C:Users. Desktop. gamemodesRealLife.pwn(19440) : warning 202: number of arguments does not match definition
C:Users. Desktop. gamemodesRealLife.pwn(19458) : warning 202: number of arguments does not match definition
C:Users. Desktop. gamemodesRealLife.pwn(19458) : warning 202: number of arguments does not match definition
C:Users. Desktop. gamemodesRealLife.pwn(19458) : warning 202: number of arguments does not match definition
C:Users. Desktop. gamemodesRealLife.pwn(19476) : warning 202: number of arguments does not match definition
C:Users. Desktop. gamemodesRealLife.pwn(19476) : warning 202: number of arguments does not match definition
C:Users. Desktop. gamemodesRealLife.pwn(19476) : warning 202: number of arguments does not match definition
C:Users. Desktop. gamemodesRealLife.pwn(34385) : error 017: undefined symbol «AttachDynamicObjectToVehicle»
C:Users. Desktop. gamemodesRealLife.pwn(34386) : error 017: undefined symbol «AttachDynamicObjectToVehicle»
C:Users. Desktop. gamemodesRealLife.pwn(34387) : error 017: undefined symbol «AttachDynamicObjectToVehicle»
C:Users. Desktop. gamemodesRealLife.pwn(34388) : error 017: undefined symbol «AttachDynamicObjectToVehicle»
C:Users. Desktop. gamemodesRealLife.pwn(34390) : error 017: undefined symbol «AttachDynamicObjectToVehicle»
C:Users. Desktop. gamemodesRealLife.pwn(34391) : error 017: undefined symbol «AttachDynamicObjectToVehicle»
C:Users. Desktop. gamemodesRealLife.pwn(34392) : error 017: undefined symbol «AttachDynamicObjectToVehicle»
C:Users. Desktop. gamemodesRealLife.pwn(34393) : error 017: undefined symbol «AttachDynamicObjectToVehicle»
C:Users. Desktop. gamemodesRealLife.pwn(34395) : error 017: undefined symbol «AttachDynamicObjectToVehicle»
C:Users. Desktop. gamemodesRealLife.pwn(34397) : error 017: undefined symbol «AttachDynamicObjectToVehicle»
C:Users. Desktop. gamemodesRealLife.pwn(34398) : error 017: undefined symbol «AttachDynamicObjectToVehicle»
C:Users. Desktop. gamemodesRealLife.pwn(34399) : error 017: undefined symbol «AttachDynamicObjectToVehicle»
C:Users. Desktop. gamemodesRealLife.pwn(34400) : error 017: undefined symbol «AttachDynamicObjectToVehicle»
C:Users. Desktop. gamemodesRealLife.pwn(34401) : error 017: undefined symbol «AttachDynamicObjectToVehicle»
C:Users. Desktop. gamemodesRealLife.pwn(34403) : error 017: undefined symbol «AttachDynamicObjectToVehicle»
C:Users. Desktop. gamemodesRealLife.pwn(34404) : error 017: undefined symbol «AttachDynamicObjectToVehicle»
C:Users. Desktop. gamemodesRealLife.pwn(34405) : error 017: undefined symbol «AttachDynamicObjectToVehicle»
C:Users. Desktop. gamemodesRealLife.pwn(36522) : error 017: undefined symbol «SetDynamicObjectMaterial»
C:Users. Desktop. gamemodesRealLife.pwn(36523) : error 017: undefined symbol «SetDynamicObjectMaterial»
C:Users. Desktop. gamemodesRealLife.pwn(36524) : error 017: undefined symbol «SetDynamicObjectMaterial»
C:Users. Desktop. gamemodesRealLife.pwn(36525) : error 017: undefined symbol «SetDynamicObjectMaterial»
C:Users. Desktop. gamemodesRealLife.pwn(36526) : error 017: undefined symbol «SetDynamicObjectMaterial»
C:Users. Desktop. gamemodesRealLife.pwn(36527) : error 017: undefined symbol «SetDynamicObjectMaterial»
C:Users. Desktop. gamemodesRealLife.pwn(36528) : error 017: undefined symbol «SetDynamicObjectMaterial»
C:Users. Desktop. gamemodesRealLife.pwn(36529) : error 017: undefined symbol «SetDynamicObjectMaterial»
C:Users. Desktop. gamemodesRealLife.pwn(36530) : error 017: undefined symbol «SetDynamicObjectMaterial»

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

#pragma dynamic 5900 // . . ?? . ? ?? . . ?? . . .
//========================= . . ==================================
#define ModeName «RL-RP | v1.3.1» // On
//#define HostName » > | Testing» // Off
#define ServerName «Modern State Role-Play» // On
//#define SiteName «real-life-rp.tk» // Off
//============================== . =========================================
#define START_LVL 1 // . . .
#define START_CASH 150000 // . . .
#define START_PASPORT 0 // 0 — . . 1 ? .
#define START_ADMLVL 0 // . . . 0 — . .
#define START_CarLic 0 // . ?? .
#define START_DONATE 500 // . . .
#define START_ADMPASS 2038 // . -.
//=========================== . ======================================
#undef MAX_PLAYERS //. . -?? . (. . . )
#define MAX_PLAYERS 50 //. . ?? . ?? . -?? .
#undef MAX_VEHICLES //. . -?? . (. . . )
#define MAX_VEHICLES 1000 //. . -?? .
// ======================== [ Streamer by Incognito ] ==========================
#define CreateObject CreateDynamicObject // . . ?? . )))
#define MoveObject MoveDynamicObject // . . . . ?? . )
#define AttachObjectToVehicle AttachDynamicObjectToVehicle // . ? . ?? . . )
//#define Create3DTextLabel CreateDynamic3DTextLabel // ?? . ?? . . ? . )
// =============================================================================
#define Ammo_SDPISTOL 5 // . . . . . 1% . SD Pistol
#define Ammo_DEAGLE 5 // . . . . . 1% . Deagle
#define Ammo_SHOTGUN 7 // . . . . . 1% . ShotGun
#define Ammo_MP5 12 // . . . . . 1% . MP5
#define Ammo_AK47 15 // . . . . . 1% . AK-47
#define Ammo_M4A1 15 // . . . . . 1% . M4
#define publics%0(%1) forward%0(%1); public%0(%1) // . . . ?? . . . . .
#define SCM SendClientMessage // . . . .
#define SCMTA SendClientMessageToAll // . . . . . .
#define SPD ShowPlayerDialog // . . . .
#define GPN GetPlayerName(playerid, playername, sizeof(playername)); // . . . . .
#define GGPN GetPlayerName(giveplayerid, giveplayername, sizeof(giveplayername)); // . . . . . .
#define kick SetTimerEx(«Kickk»,100,false,»i»,playerid); // . . .
#define gkick SetTimerEx(«Kickk»,100,false,»i»,giveplayerid); // . . . . .
#define ESCM SCM(playerid, COLOR_GREY, «?? ?? . . . . «); // . . .
#define ISCM SCM(playerid, COLOR_GREY, «. ?? . «); // . . .
//================================== Dialogs ===================================
#define DSL DIALOG_STYLE_LIST // .
#define DSI DIALOG_STYLE_INPUT // . .
#define DSM DIALOG_STYLE_MSGBOX // .
#define DSP DIALOG_STYLE_PASSWORD // . . .
//

#define cvet_x01 0x3399FFAA // .
#define cvet_01 «<3399ff>» // .
#define cvet_02 «» // .
// =====
#define COLOR_GRAD1 0xB4B5B7FF // .
#define COLOR_GRAD2 0xBFC0C2FF // .
#define COLOR_GRAD3 0xCBCCCEFF // .
#define COLOR_GRAD4 0xD8D8D8FF // .
#define COLOR_ORANGE 0xFF9900AA // .
#define COLOR_USE 0x7FB151FF // .
#define COLOR_BLUE 0x33AAFFFF // .
#define COLOR_SALMON 0xFA8072AA // .
#define COLOR_INDIGO 0x4B00B0AA // .
#define COLOR_BLACK 0x000000AA // .
#define COLOR_GREY 0xAFAFAFAA // .
#define COLOR_GREEN 0x33AA33AA // .
#define COLOR_RED 0xFF0000AA // .
#define COLOR_LIGHTRED 0xFF6347AA // . .
#define COLOR_LIGHTBLUE 0x33CCFFAA // . .
#define COLOR_LIGHTGREEN 0x9ACD32AA // . .
#define COLOR_YELLOW 0xFFFF00AA // .
#define COLOR_YELLOW2 0xF5DEB3AA // .
#define COLOR_WHITE 0xFFFFFFAA // .
#define COLOR_REDD 0x9F0000AA // .
#define COLOR_FADE1 0xE6E6E6E6 // .
#define COLOR_FADE2 0xC8C8C8C8 // .
#define COLOR_FADE3 0xAAAAAAAA // .
#define COLOR_FADE4 0x8C8C8C8C // .
#define COLOR_FADE5 0x6E6E6E6E // .
#define COLOR_PURPLE 0xC2A2DAAA // .
#define COLOR_ALLDEPT 0xFF8282AA // .
#define COLOR_NEWS 0xFFA500AA // .
#define COLOR_OOC 0xE0FFFFAA // .
#define TEAM_HIT_COLOR 0xFFFFFF00 // .
#define TEAM_BLUE_COLOR 0x8D8DFF00 // .
#define TEAM_GROVE_COLOR 0x00D900C8 // .
#define TEAM_AZTECAS_COLOR 0x01FCFFC8 // .
#define TEAM_CYAN_COLOR 0xFF8282AA // .
#define COLOR_GOLUB 0x1DE3CBAA // .
//

new pdgateLS;new pdgateArm;new pdgateSF;new pdgateFBR;new pdgateFBI;new pdgateLV; // .
new objmigfbi[17]; // fbi .
new buyvehdom; // . . . ?? . 1
new mashina[MAX_PLAYERS]; // . . . ?? . 1
new scolor1[MAX_PLAYERS];// . . . ?? . 1
new bool:UseEnter[MAX_PLAYERS]; // TEST 1
new IDVEH[MAX_PLAYERS]; // Test 2 1
new Text:Logotip[8];//.
new Collectionit[MAX_PLAYERS]; // .
new WithBush[MAX_PLAYERS]; // .
new Text3D: JobText2; // .
new edmats[6]; // LSa
new objectplayerid;
new hitpic[2];
new HelperDuty[MAX_PLAYERS]; // .
new FormaFracPic[17]; // . .
new pas; // .
new FormaFrac[MAX_PLAYERS]; // . .
new ammomerls; // .
new marvert[2]; // .
new Inkasator[5]; // .
new PlayerIsInkasator[MAX_PLAYERS]; // .
new trashtruck[5]; // . .
new hitid = 999;
new GoChase[MAX_PLAYERS];
new GetChased[MAX_PLAYERS];
new GotHit[MAX_PLAYERS];
new swatcar[15];
new carpost[9]; // . .
new Float: gInkasatorPoints[2][3] = // .
<
<-2153.6104,251.0052,35.4414>,
<-2153.6104,251.0052,35.4414>
>;
new ammonac[6]; // . .
new mavlic; // .
new AdvertTime; // .
new TOTALADVERT[3]; // .
new robber; // . .
new CountVezit; // . .
new ReportQ[MAX_PLAYERS][128]; // .
new AdvertiseTimerEx; // . .
new FreshTimer; // .
new radiols; // .
enum adInfo
<
adPhone,
adText[128],
adName[MAX_PLAYER_NAME]
>;
new AdvertInfo[30][3][adInfo]; // .
new Float: Venue[4][3] = // .
<
<-305.3935,-1334.0796,8.2550>,
<-311.4154,-1359.4165,9.0605>,
<-256.1160,-1385.5819,10.0414>,
<-191.2922,-1380.0945,5.0030>
>;
new CountExTimer; // AFK
new OtherTimerEx; // .
new PickupTimer; // . .
new GzCheckTimer; // . .
new MzCheckTimer; // . .
new war = 0; // .
new radiosf; // SFN
new radiolv; // LVN
new UnJailTimer; // .
new hamcvhod; // .
new hamcqvhod; // .
new IPMSG[5][] = // .
<
<«IP . . . . ?? . n»>,
<«. . IP . . . . . . . nn»>,
<«. . . . /. . n»>,
<«. /mm — . . nn»>,
<«. . . . n»>
>;
new giveplayerid; // ?? . .
new playername[MAX_PLAYER_NAME]; // . .
new giveplayername[MAX_PLAYER_NAME]; // . . .
new startwar = 0; // .
new CarLeasing[MAX_PLAYERS]; // . . .
new Bumper[MAX_PLAYERS]; // .
new Bumper2[MAX_PLAYERS];
new Bumper3[MAX_PLAYERS];
new Bumper4[MAX_PLAYERS]; // .
new Kolesa[MAX_PLAYERS];
new Kolesa2[MAX_PLAYERS]; // .
new PaintJob[MAX_PLAYERS];
new PaintJob2[MAX_PLAYERS]; // .
new Color[MAX_PLAYERS]; // . .
new Color1[MAX_PLAYERS];
new Color3[MAX_PLAYERS];
new Color4[MAX_PLAYERS]; // . .
new Gidra[MAX_PLAYERS];
new Gidra2[MAX_PLAYERS]; // .
new Spoiler[MAX_PLAYERS];
new Spoiler2[MAX_PLAYERS]; // .
new Nitro[MAX_PLAYERS];
new Nitro2[MAX_PLAYERS]; // .
new sellzone[MAX_PLAYERS]; // .
new Bags[MAX_PLAYERS]; // .
new WithBag[MAX_PLAYERS]; // .
new zips[MAX_PLAYERS]; // . .
new zons; // .
new seans[MAX_PLAYERS]; // .
new medicss[6]; // .
new Krisha[MAX_PLAYERS]; // .
new KrishaOffer[MAX_PLAYERS]; // .
new chekmaterialslv[10]; // LVa
new chekmaterialssf[3]; // SFa
new addd[3]; // News
new balonchik[MAX_PLAYERS]; // .
new TicketOffer[MAX_PLAYERS]; // .
new TicketMoney[MAX_PLAYERS]; // .
new Timerkk[MAX_PLAYERS]; // . . ?? .
new enterbiz[MAX_PLAYERS]; // .
new changenam[25]; // . .
new gSpectateID[MAX_PLAYERS]; // .
new zvonok[MAX_PLAYERS]; // News
new send[MAX_PLAYERS]; // .
new alhambra; // .
new shotbur[2]; // .
new pizza[3]; // .
new sabrina; // .
new grovebar; // .
new jizzy; // .
new pigpen; // .
new startaddiction[MAX_PLAYERS]; // .
new chet[MAX_PLAYERS]; // . .
new arace; // .
new EndingRaceRound = 1; // .
new RacingPlayers = 0; // .
new FirstRaceWinner = 999; // .
new PlayerRacing[MAX_PLAYERS]; // .
new SecondRaceWinner = 999; // .
new ThirdRaceWinner = 999; // .
new PaintballPlayers = 0; // .
new PaintballRound = 1; // .
new PaintballWinner = 999; // .
new PaintballWinnerKills = 0; // .
new PlayerPaintballing[MAX_PLAYERS]; // .
new PlayerPaintballKills[MAX_PLAYERS]; // .
new PicCP[MAX_PLAYERS]; // .
new createdvehicles[MAX_VEHICLES]; // /veh
new swatgun;
new createdvehs; // /veh
new caridhouse[MAX_PLAYERS]; // .
new createdcar; // .
new JobCarTime[MAX_PLAYERS]; // .
new BusStopTime[MAX_PLAYERS]; // . .
new VehicleNames[212][] = // . .
<
«Landstalker»,»Bravura»,»Buffalo»,»Linerunner»,»Perrenial» ,»Sentinel»,»Dumper»,»Firetruck»,»Trashmaster»,»Stretch» ,»Manana»,»Infernus»,
«Voodoo»,»Pony»,»Mule»,»Cheetah»,»Ambulance»,» Leviathan»,»Moonbeam»,»Esperanto»,»Taxi»,»Washington»,» Bobcat»,»Mr.Whoopee»,»BF Injection»,
«Hunter»,»Premier»,»Enforcer»,»Securicar»,»Banshee» ,»Predator»,»Bus»,»Rhino»,»Barracks»,»Hotknife»,» Trailer»,»Previon»,»Coach»,»Cabbie»,
«Stallion»,»Rumpo»,»RC Bandit»,»Romero»,»Packer»,»Monster»,»Admiral»,»Squalo» ,»Seasparrow»,»Pizzaboy»,»Tram»,»Trailer»,»Turismo», «Speeder»,
«Reefer»,»Tropic»,»Flatbed»,»Yankee»,»Caddy»,» Solair»,»Berkley’s RC Van»,»Skimmer»,»PCJ-600″,»Faggio»,»Freeway»,»RC Barron»,»RC Raider»,
«Glendale»,»Oceanic»,»Sanchez»,»Sparrow»,»Patriot», «Quad»,»Coastguard»,»Dinghy»,»Hermes»,»Sabre»,» Rustler»,»Zr-350″,»Walton»,»Regina»,
«Comet»,»BMX»,»Burrito»,»Camper»,»Marquis»,»Baggage» ,»Dozer»,»Maverick»,»News Chopper»,»Rancher»,»FBI Rancher»,»Virgo»,»Greenwood»,
«Jetmax»,»Hotring»,»Sandking»,»Blista Compact»,»Police Maverick»,»Boxville»,»Benson»,»Mesa»,»RC Goblin»,»Hotring A»,»Hotring B»,
«Bloodring Banger»,»Rancher»,»Super GT»,»Elegant»,»Journey»,»Bike»,»Mountain Bike»,»Beagle»,»Cropdust»,»Stunt»,»Tanker»,»RoadTrain» ,
«Nebula»,»Majestic»,»Buccaneer»,»Shamal»,»Hydra»,» FCR-900″,»NRG-500″,»HPV1000″,»Cement Truck»,»Tow Truck»,»Fortune»,»Cadrona»,»FBI Truck»,
«Willard»,»Forklift»,»Tractor»,»Combine»,»Feltzer», «Remington»,»Slamvan»,»Blade»,»Freight»,»Streak»,» Vortex»,»Vincent»,»Bullet»,»Clover»,
«Sadler»,»Firetruck»,»Hustler»,»Intruder»,»Primo»,» Cargobob»,»Tampa»,»Sunrise»,»Merit»,»Utility»,»Nevada» ,»Yosemite»,»Windsor»,»Monster A»,
«Monster B»,»Uranus»,»Jester»,»Sultan»,»Stratum»,»Elegy» ,»Raindance»,»RC Tiger»,»Flash»,»Tahoma»,»Savanna»,»Bandito»,»Freight» ,»Trailer»,
«Kart»,»Mower»,»Duneride»,»Sweeper»,»Broadway»,» Tornado»,»AT-400″,»DFT-30″,»Huntley»,»Stafford»,»BF- 400″,»Newsvan»,»Tug»,»Trailer A»,»Emperor»,
«Wayfarer»,»Euros»,»Hotdog»,»Club»,»Trailer B»,»Trailer C»,»Andromada»,»Dodo»,»RC Cam»,»Launch»,»Police Car»,»Police Car»,
«Police Car»,»Police Ranger»,»Picador»,»S.W.A.T.»,»Alpha»,»Phoenix»,»Glendale» ,»Sadler»,»L Trailer A»,»L Trailer B»,
«Stair Trailer»,»Boxville»,»Farm Plow»,»U Trailer»
>;
new ShopCar[86][2] = < <400,40000>,<567,90000>,<549,80000>,<547,95000>,<546,60000>,<543,40000>,<527,70000>,<526,75000>,<518, 95000>,
<517,50000>,<516,70000>,<492,90000>,<479,30000>,<478,30000>,<475,90000>,<466,60000>,<458,40000>,<439, 70000>,<436,65000>,<404,20000>,
<419,45000>,<586,65000>,<581,200000>,<461,250000>,<418,120000>,<603,300000>,<589,140000>,<580,150000>, <579,110000>,<561,180000>,<555,200000>,
<554,20000>,<534,150000>,<533,170000>,<505,120000>,<491,60000>,<489,140000>,<445,125000>,<421,115000>, <401,75000>,<600,70000>,<585,65000>,
<576,80000>,<575,40000>,<566,100000>,<551,70000>,<550,69000>,<540,33000>,<536,80000>,<529,44000>,<507, 65000>,<474,130000>,<467,115000>,
<426,170000>,<422,60000>,<412,115000>,<405,130000>,<477,210000>,<471,10000>,<468,180000>,<463,300000>, <521,500000>,<602,200000>,<587,210000>,
<565,310000>,<562,220000>,<560,400000>,<559,340000>,<558,270000>,<545,300000>,<535,350000>,<480,500000>, <402,540000>,<503,1500000>,<502,1600000>,
<494,1700000>,<495,2000000>,<424,1500000>,<434,1000000>,<522,3000000>,<541,1100000>,<506,1900000>,<451, 3000000>,<429,900000>,<415,1200000>,<411,5000000>>;
new autoshoppick[4]; //newcar2 1
new PlayerText:ShopText[MAX_PLAYERS];
new Text:AutoShopText[12];
new BusStop[MAX_PLAYERS]; // . .
new AutoBusJob[MAX_PLAYERS]; // . .
new AutoBusCheck[MAX_PLAYERS]; // . .
new AutoBusMoney[MAX_PLAYERS]; // . .
new sellgun; // . .
new sellgun1; // . .
new sellgun2; // . .
new sellgun3; // . .
new sellgun4; // . .
new PEfir[MAX_PLAYERS]; // News
new Pefir[MAX_PLAYERS]; // News
new bool: robh[MAX_PLAYERS]; // .
new TransportDuty[MAX_PLAYERS]; // .
new TransportValue[MAX_PLAYERS]; // .
new TransportMoney[MAX_PLAYERS]; // .
new TransportTime[MAX_PLAYERS]; // .
new TransportCost[MAX_PLAYERS]; // .
new TransportDriver[MAX_PLAYERS]; // .
new WantNickChange[MAX_PLAYERS][MAX_PLAYER_NAME]; // . .
new InviteOffer[MAX_PLAYERS]; // .
new HealOffer[MAX_PLAYERS]; // .
new HealPrice[MAX_PLAYERS]; // .
new healpricls = 10; // .
new healpricsf = 10; // .
new healpriclv = 10; // .
new smspricesf = 50; // .
new smspricels = 50; // .
new smspricelv = 50; // .
new smssf = 0; // News
new smsls = 0; // News
new smslv = 0; // News
new gcontract[MAX_PLAYERS]; // .
new cenabenza[MAX_PLAYERS]; // .
new Text3D: taxi3d[MAX_VEHICLES]; // .
new Text3D: mashinist3d[MAX_VEHICLES]; // .
new Text3D: Meh3d[MAX_VEHICLES]; // .
new Text3D: fare3dtext[MAX_VEHICLES]; // . .
new keys[MAX_PLAYERS]; // .
new DrugOffer[MAX_PLAYERS]; // .
new DrugPrice[MAX_PLAYERS]; // .
new DrugGramm[MAX_PLAYERS]; // .
new ZoneOffer[MAX_PLAYERS]; // .
new ZonePrice[MAX_PLAYERS]; // .
new FreeOffer[MAX_PLAYERS]; // .
new FreePrice[MAX_PLAYERS]; // .
new cbjstore[150]; // .
new TakingLesson[MAX_PLAYERS]; // .
new Menu: ChoseSkin; // . . .
new Menu: bomj[2]; // . . . .
new Menu: skinshopmagaz[2]; // . . .
new clearanim[MAX_PLAYERS]; // .
new ChosenPlayer[MAX_PLAYERS]; // .
new IsLocked[MAX_VEHICLES]; // .
new bool: Works[MAX_PLAYERS]; // .
new JobCP[MAX_PLAYERS]; // .
new GruzCP[MAX_PLAYERS]; // .
new usemats[MAX_PLAYERS]; // .
new JobAmmount[MAX_PLAYERS]; // .
new OldSkin[MAX_PLAYERS]; // .
new bool: EngineState[MAX_PLAYERS]; // . .
new forma[MAX_PLAYERS]; // .
enum afker
<
TickEx,
ChekEx,
VarEx,
bool: pSpawnEx,
bool:AFKEx
>
new PlayerEx[MAX_PLAYERS][afker]; // AFK
new MaterialsInTheWagon[MAX_VEHICLES]; // .
new SeitCar[MAX_PLAYERS]; // .
new Seitfers[MAX_PLAYERS]; // .
new Seitferma0[MAX_PLAYERS]; // .
new proverkaforma[MAX_PLAYERS]; // .
new FarmWorks[MAX_PLAYERS]; // .
new Download[MAX_PLAYERS]; // .
new CollectionStarted[MAX_PLAYERS]; // .
new Combine[1], FarmCar0[1]; // .
new FarmInfoPic; // .
new PText[MAX_PLAYERS][256]; // .
new CloakroomFarm; // .
new collection; // .
new WithPickup[MAX_PLAYERS]; // .
new Army[3]; // .
enum
<
FCHECKPOINT_0,
FCHECKPOINT_1,
FCHECKPOINT_2,
FCHECKPOINT_3,
FCHECKPOINT_4,
FCHECKPOINT_5,
FCHECKPOINT_6,
FCHECKPOINT_7,
FCHECKPOINT_8,
FCHECKPOINT_9,
FCHECKPOINT_10,
FCHECKPOINT_11,
FCHECKPOINT_12,
FCHECKPOINT_13,
FCHECKPOINT_14,
FCHECKPOINT_15
>
enum farmInfo
<
fOwned,
fOwner[MAX_PLAYER_NAME],
fProdukt,
fMafia,
fTill,
fEntranceCost,
fBuyPrice,
fCenazerno,
fSownSeeds,
fAmountOfGrain,
fcenaprod,
fzernozakup,
f1zams[MAX_PLAYER_NAME],
f2zams[MAX_PLAYER_NAME],
f3zams[MAX_PLAYER_NAME],
f1fermers[MAX_PLAYER_NAME],
f2fermers[MAX_PLAYER_NAME],
f3fermers[MAX_PLAYER_NAME],
f4fermers[MAX_PLAYER_NAME],
f5fermers[MAX_PLAYER_NAME],
Float:fmestoX,
Float:fmestoY,
Float:fmestoZ,
fidferm,
frandoms,
frandoms2,
fInCar,
flock
>;
new FarmInfo[1][farmInfo]; // .
new keyip[MAX_PLAYERS]; // . .
new Tazer[MAX_PLAYERS]; // .
new CreatedCars[100]; // /veh
new CreatedCar = 0; // /veh
new Medics = 0; // .
new PCash[MAX_PLAYERS]; // .
new MedicCall = 999; // .
new Police = 0; // .
new PoliceCall = 999; // .
new Mechanics = 0; // .
new MechanicCall = 999; // .
new TaxiDrivers = 0; // .
new TaxiCall = 999; // .
new SpawnChange[MAX_PLAYERS]; // . .
new PlayerTied[MAX_PLAYERS]; // /tie
new PlayerCuffed[MAX_PLAYERS]; // /cuff
new PlayerCuffedTime[MAX_PLAYERS]; // /cuff
new LiveOffer[MAX_PLAYERS]; // News
new LiveOfferls[MAX_PLAYERS]; // News
new LiveOfferlv[MAX_PLAYERS]; // News
new TalkingLive[MAX_PLAYERS]; // News
new TalkingLivels[MAX_PLAYERS]; // News
new TalkingLivelv[MAX_PLAYERS]; // News
new SelectChar[MAX_PLAYERS]; // . .
new SelectCharID[MAX_PLAYERS]; // . .
new SelectCharPlace[MAX_PLAYERS]; // . .
new CharPrice[MAX_PLAYERS]; // . .
new ChosenSkin[MAX_PLAYERS]; // . .
new InviteSkin[MAX_PLAYERS]; // . .
new CP[MAX_PLAYERS]; // .
new RaceCP[MAX_PLAYERS]; // .
new RepairOffer[MAX_PLAYERS]; // .
new RepairPrice[MAX_PLAYERS]; // .
new RefillOffer[MAX_PLAYERS]; // .
new RefillPrice[MAX_PLAYERS]; // .
new Float: X12, Float: Y12, Float: Z12; // .
new HouseOffer[MAX_PLAYERS]; // .
new CarOffer[MAX_PLAYERS]; // .
new CarPrice[MAX_PLAYERS]; // .
new HousePrice[MAX_PLAYERS]; // .
new WantedPoints[MAX_PLAYERS]; // .
new WantedLevel[MAX_PLAYERS]; // .
new gPlayerCheckpointStatus[MAX_PLAYERS]; // .
new gPlayerLogged[MAX_PLAYERS]; // .
new gNews[MAX_PLAYERS]; // News
new lNews[MAX_PLAYERS]; // News
new LvNews[MAX_PLAYERS]; // News
new CellTime[MAX_PLAYERS]; // .
new PhoneOnline[MAX_PLAYERS]; // .
new Mobile[MAX_PLAYERS]; // .
new Tel[MAX_PLAYERS]; // .
new CallCost[MAX_PLAYERS]; // .
new bool: gPlayerAccount[MAX_PLAYERS]; // .
new gCarLock[MAX_VEHICLES]; // .
new noooc = 1; // noooc
new dchat = 1; // /d
new dtimer = 3000; // /d
new ghour = 0; // .
new gminute = 0; // .
new gsecond = 0; // .
new wtime = 15; // .
new timeshift = 0; // .
new shifthour; // .
new levelexp = 4; // Exp
new MatsArmyCar[MAX_PLAYERS]; // .
new VertMats[MAX_PLAYERS]; // .
new vertmatbi = 0; // .
new armmatbi = 300000; // LVa .
new armmatsf = 200000; // SFa .
new lspdmatbi = 100000; // LSPD .
new armmatls = 100000; // LSa .
new sfpdmats = 100000; // SFPD .
new lvpdmats = 100000; // LVDP .
new fbimats = 100000; // FBI .
new yakuzamats = 100000; // Yacuza .
new rmmats = 100000; // . . .
new lcnmats = 100000; // LCN .
new hamcmatbi = 100000; // . .
new rifamatbi = 100000; // Rifa .
new ballasmatbi = 100000; // Ballas .
new groovmatbi = 100000; // Grove .
new vagosmatbi = 100000; // Vagos .
new aztekmatbi = 100000; // Aztecs .
new lsaammo; // LSa
new lsamaterials; // LSa
new bonus;
new bankk = 1;
new matsfuravagos[1]; // . Vagos
new matsfuragrove[1]; // . Grove
new matsfuraactek[1]; // . Aztecs
new matsfurarifa[1]; // . Rifa
new matsfura[1]; // . Ballas
new benzovoz[8]; // . .
new comptruck[8]; // . .
new hitfound = 0;
new matsfurahell[1]; // . .
new legalmods[48][22] = // . -?? . . . . ? ?? .
<
<400, 1024,1021,1020,1019,1018,1013,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000>,
<401, 1145,1144,1143,1142,1020,1019,1017,1013,1007,1006,1005,1004,1003,1001,0000,0000,0000,0000>,
<404, 1021,1020,1019,1017,1016,1013,1007,1002,1000,0000,0000,0000,0000,0000,0000,0000,0000,0000>,
<405, 1023,1021,1020,1019,1018,1014,1001,1000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000>,
<410, 1024,1023,1021,1020,1019,1017,1013,1007,1003,1001,0000,0000,0000,0000,0000,0000,0000,0000>,
<415, 1023,1019,1018,1017,1007,1003,1001,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000>,
<418, 1021,1020,1016,1006,1002,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000>,
<420, 1021,1019,1005,1004,1003,1001,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000>,
<421, 1023,1021,1020,1019,1018,1016,1014,1000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000>,
<422, 1021,1020,1019,1017,1013,1007,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000>,
<426, 1021,1019,1006,1005,1004,1003,1001,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000>,
<436, 1022,1021,1020,1019,1017,1013,1007,1006,1003,1001,0000,0000,0000,0000,0000,0000,0000,0000>,
<439, 1145,1144,1143,1142,1023,1017,1013,1007,1003,1001,0000,0000,0000,0000,0000,0000,0000,0000>,
<477, 1021,1020,1019,1018,1017,1007,1006,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000>,
<478, 1024,1022,1021,1020,1013,1012,1005,1004,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000>,
<489, 1024,1020,1019,1018,1016,1013,1006,1005,1004,1002,1000,0000,0000,0000,0000,0000,0000,0000>,
<491, 1145,1144,1143,1142,1023,1021,1020,1019,1018,1017,1014,1007,1003,0000,0000,0000,0000,0000>,
<492, 1016,1006,1005,1004,1000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000>,
<496, 1143,1142,1023,1020,1019,1017,1011,1007,1006,1003,1002,1001,0000,0000,0000,0000,0000,0000>,
<500, 1024,1021,1020,1019,1013,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000>,
<516, 1021,1020,1019,1018,1017,1016,1015,1007,1004,1002,1000,0000,0000,0000,0000,0000,0000,0000>,
<517, 1145,1144,1143,1142,1023,1020,1019,1018,1017,1016,1007,1003,1002,0000,0000,0000,0000,0000>,
<518, 1145,1144,1143,1142,1023,1020,1018,1017,1013,1007,1006,1005,1003,1001,0000,0000,0000,0000>,
<527, 1021,1020,1018,1017,1015,1014,1007,1001,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000>,
<529, 1023,1020,1019,1018,1017,1012,1011,1007,1006,1003,1001,0000,0000,0000,0000,0000,0000,0000>,
<534, 1185,1180,1179,1178,1127,1126,1125,1124,1123,1122,1106,1101,1100,0000,0000,0000,0000,0000>,
<535, 1121,1120,1119,1118,1117,1116,1115,1114,1113,1110,1109,0000,0000,0000,0000,0000,0000,0000>,
<536, 1184,1183,1182,1181,1128,1108,1107,1105,1104,1103,0000,0000,0000,0000,0000,0000,0000,0000>,
<540, 1145,1144,1143,1142,1024,1023,1020,1019,1018,1017,1007,1006,1004,1001,0000,0000,0000,0000>,
<542, 1145,1144,1021,1020,1019,1018,1015,1014,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000>,
<546, 1145,1144,1143,1142,1024,1023,1019,1018,1017,1007,1006,1004,1002,1001,0000,0000,0000,0000>,
<547, 1143,1142,1021,1020,1019,1018,1016,1003,1000,0000,0000,0000,0000,0000,0000,0000,0000,0000>,
<549, 1145,1144,1143,1142,1023,1020,1019,1018,1017,1012,1011,1007,1003,1001,0000,0000,0000,0000>,
<550, 1145,1144,1143,1142,1023,1020,1019,1018,1006,1005,1004,1003,1001,0000,0000,0000,0000,0000>,
<551, 1023,1021,1020,1019,1018,1016,1006,1005,1003,1002,0000,0000,0000,0000,0000,0000,0000,0000>,
<558, 1168,1167,1166,1165,1164,1163,1095,1094,1093,1092,1091,1090,1089,1088,0000,0000,0000,0000>,
<559, 1173,1162,1161,1160,1159,1158,1072,1071,1070,1069,1068,1067,1066,1065,0000,0000,0000,0000>,
<560, 1170,1169,1141,1140,1139,1138,1033,1032,1031,1030,1029,1028,1027,1026,0000,0000,0000,0000>,
<561, 1157,1156,1155,1154,1064,1063,1062,1061,1060,1059,1058,1057,1056,1055,1031,1030,1027,1026>,
<562, 1172,1171,1149,1148,1147,1146,1041,1040,1039,1038,1037,1036,1035,1034,0000,0000,0000,0000>,
<565, 1153,1152,1151,1150,1054,1053,1052,1051,1050,1049,1048,1047,1046,1045,0000,0000,0000,0000>,
<567, 1189,1188,1187,1186,1133,1132,1131,1130,1129,1102,0000,0000,0000,0000,0000,0000,0000,0000>,
<575, 1177,1176,1175,1174,1099,1044,1043,1042,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000>,
<576, 1193,1192,1191,1190,1137,1136,1135,1134,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000>,
<580, 1023,1020,1018,1017,1007,1006,1001,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000>,
<589, 1145,1144,1024,1020,1018,1017,1016,1013,1007,1006,1005,1004,1000,0000,0000,0000,0000,0000>,
<600, 1022,1020,1018,1017,1013,1007,1006,1005,1004,0000,0000,0000,0000,0000,0000,0000,0000,0000>,
<603, 1145,1144,1143,1142,1024,1023,1020,1019,1018,1017,1007,1006,1001,0000,0000,0000,0000,0000>
>;
new lsnewscar[6]; // . LSN
new lvnewscar[6]; // . LVN
new lvpdcar[23]; // . LVPD
new liccarsf[5]; // .
new licmotsf[4]; // .
new taxicar[26]; // . Taxi
new mashinist; // . .
new bus[14]; // . . .
new mehanik[19]; // . .
new rentcarsf[7]; // . . ? SF
new rentcarls[11]; // . . LS
new rentcarlv[16]; // . . LV
new medicsls[10]; // . . LS
new medicslv[8]; // . . LV
new passs[2];
new sapdcar[27]; // . LSPD
new fbicar[36]; // . FBI
new cnncar[5]; // . SFN
new sfpdcar[36]; // . SFPD
new medmav; // . .
new cnnmav; // . News
new armycarsf[21]; // . SFa
new yakcar[7]; // . Yacuza
new ruscar[12]; // . . .
new govcar[5]; // . .
new lcncar[9]; // . LCN
new medicssf[9]; // . . SF
new armcar[43]; // . LVa
new gunscar[3]; // .
new grovecar[13]; // . Grove
new ballascar[12]; // . Ballas
new coronoscar[14]; // . Aztecs
new vagoscar[12]; // . Vagos
new rifacar[13]; // . Rifa
new arenda[MAX_VEHICLES]; // . .
new lsacar[20]; // . LSa
new hamccar[10]; // . .
new mysti; // .
new paint[3]; // .
new paintguns[4]; // .
new shop[6]; // . .
new victim[2]; // . .
new racepic[2]; // .
new lspic[3]; // LSN
new lvpic[2]; // LVN
new mayorpic; // .
new rmpic[2]; // . .
new addictionenter;
new addictionexit;
new lcnpic[2]; // LCN
new yakuzapic[2]; // Yacuza
new sfnewspic[4]; // SFN
new fracgunpic[5]; // . ? .
new fbi[6]; // FBI . /.
new lspd[6]; // LSPD
new sfpd[6]; // SFPD
new gangpic[5]; // Gangs
new lvpd[7]; // LVPD
new armijavhod;
new armijavihod;
new avtosh[4]; // .
new hallexit; // .
new hallenter[2]; // .
new bankpic[2]; // .
new ballasenter[2]; // Ballas
new rifaenter[2]; // Rifa
new lilprobeinn;
new vagospic[2]; // Vagos
new aztecpic[2]; // Aztecs
new PlayerMurder[MAX_PLAYERS];
new MurderPlayers = 0;
new task[MAX_PLAYERS];
new taskdone[MAX_PLAYERS];
new swat[2];
new tasker[MAX_PLAYERS];
new grove[2]; // Grove
new BigEar[MAX_PLAYERS];
new scar[3];
new autostealing;
new streetcar[15]; // Street Racers
new cashs; // .
new hitcar[7];
new dollar;
new clothes; // .
new skinshop[4]; // . .
new gunarm[2]; // . ? .
new zip[2]; // . .
new zone[2]; // LVa
new warehousearmy[4];
new freeze[MAX_PLAYERS]; // .
new Ubka[MAX_PLAYERS]; // .
new Ubka2[MAX_PLAYERS];
new Ubka3[MAX_PLAYERS];
new Ubka4[MAX_PLAYERS]; // .
new Vozduh[MAX_PLAYERS];
new Vozduh2[MAX_PLAYERS]; // .
new Gluh[MAX_PLAYERS];
new Gluh2[MAX_PLAYERS]; // .
new Float: Fuell[MAX_VEHICLES]; // .
enum nInfo
<
nLcn, // LCN
nYakuza, // Yacuza
nRm // . .
>;
enum fInfo
<
fLsnews, // LSN
fSfnews, // SFN
fLvnews, // LVN
fBallas, // Ballas
fVagos, // Vagos
fGrove, // Grove
fAztek, // Aztecs
fRifa, // Rifa
fKazna, // .
fHamc, // .
>;
new MafiaBank[1][nInfo]; // . .
new FracBank[1][fInfo]; // . .
enum bInfo
<
bOwned,
bOwner[64],
bMessage[256],
bExtortion[MAX_PLAYER_NAME],
Float: bEntranceX,
Float: bEntranceY,
Float: bEntranceZ,
Float: bExitX,
Float: bExitY,
Float: bExitZ,
bBuyPrice,
bZahvat,
bEntranceCost,
bTill,
bLocked,
bInterior,
bProducts,
bMaxProducts,
bPriceProd,
Text3D: bLabel,
b2Till,
bPrice,
Float: bBarX,
Float: bBarY,
Float: bBarZ,
bMafia,
bCapture
>;
new BizzInfo[19][bInfo]; // .
enum sbInfo
<
sbOwned,
sbOwner[64],
sbMessage[256],
Float:sbEntranceX,
Float:sbEntranceY,
Float:sbEntranceZ,
sbLevelNeeded,
sbBuyPrice,
sbEntranceCost,
sbPrice,
sbTill,
s2bTill,
sbLocked,
sbInterior,
sbProducts,
sbMafia,
sbPriceProd,
Text3D: sbLabel
>;
new SBizzInfo[11][sbInfo]; // .
new Text: ModelShow[MAX_PLAYERS]; // .
new Text: SpeedShow[MAX_PLAYERS]; // .
new Text: HealthShow[MAX_PLAYERS]; // .
new Text: FuelShow[MAX_PLAYERS]; // .
new dostup[MAX_PLAYERS]; // . -.
new Dostup[MAX_PLAYERS]; // . -.
new Kapot[MAX_PLAYERS];
new Kapot2[MAX_PLAYERS]; // .
new Far[MAX_PLAYERS];
new Far2[MAX_PLAYERS];// .
new Text: StatusShow[MAX_PLAYERS]; // .
new Text: EngineShow[MAX_PLAYERS]; // .
new PlayerText: privcar[MAX_PLAYERS]; // .
new SpeedoTimer; // .
new str1[64]; // .
new str2[64]; // .
new str3[64]; // .
new str4[64]; // .
new str5[64]; // .
new str6[64]; // .
new Text: Box[1]; // .
new Float: RandomTrashRoot[][3] = // . .
<
<2105.2805,-1806.5771,13.5547>,
<-1721.1195,1359.7371,7.1853>,
<-1808.5029,945.5192,24.8906>,
<2083.4275,2224.5137,11.0234>,
<2351.9424,2533.4480,10.8203>,
<2756.7314,2477.3457,11.0625>,
<2638.6826,1849.7474,11.0234>,
<203.3442,-202.2144,1.5781>,
<2332.0339,75.0940,26.6210>
>;
new LessonCar[MAX_PLAYERS]; // .
new LessonStat[MAX_PLAYERS]; // .
new pLessonCar[MAX_PLAYERS]; // .
enum
<
CHECKPOINT_1,
CHECKPOINT_2,
CHECKPOINT_3,
CHECKPOINT_4,
CHECKPOINT_5,
CHECKPOINT_6,
CHECKPOINT_7,
CHECKPOINT_8,
CHECKPOINT_9,
CHECKPOINT_10,
CHECKPOINT_11,
CHECKPOINT_13,
CHECKPOINT_14,
CHECKPOINT_15,
CHECKPOINT_16,
CHECKPOINT_17,
CHECKPOINT_18,
CHECKPOINT_19,
CHECKPOINT_20,
CHECKPOINT_21,
CHECKPOINT_22,
CHECKPOINT_23,
CHECKPOINT_24,
CHECKPOINT_25,
CHECKPOINT_26,
CHECKPOINT_27,
CHECKPOINT_28,
CHECKPOINT_29,
CHECKPOINT_30,
CHECKPOINT_31,
CHECKPOINT_32,
CHECKPOINT_33,
CHECKPOINT_34,
CHECKPOINT_35,
CHECKPOINT_36,
CHECKPOINT_37,
CHECKPOINT_38,
CHECKPOINT_40,
CHECKPOINT_41,
CHECKPOINT_42,
CHECKPOINT_43,
CHECKPOINT_44,
CHECKPOINT_45,
CHECKPOINT_46,
CHECKPOINT_47,
CHECKPOINT_48,
CHECKPOINT_49,
CHECKPOINT_50,
CHECKPOINT_51,
CHECKPOINT_52,
CHECKPOINT_53,
CHECKPOINT_54,
CHECKPOINT_55,
CHECKPOINT_56,
CHECKPOINT_57,
CHECKPOINT_58,
CHECKPOINT_59,
CHECKPOINT_60,
CHECKPOINT_61,
CHECKPOINT_62,
CHECKPOINT_63,
CHECKPOINT_64,
CHECKPOINT_65,
CHECKPOINT_66
>
new pAutoBusLS[MAX_PLAYERS]; // . .
enum
<
CHECKPOINT_1,
CHECKPOINT_2,
CHECKPOINT_3,
CHECKPOINT_4,
CHECKPOINT_5,
CHECKPOINT_6,
CHECKPOINT_7,
CHECKPOINT_8,
CHECKPOINT_9,
CHECKPOINT_10,
CHECKPOINT_11,
CHECKPOINT_13,
CHECKPOINT_14,
CHECKPOINT_15,
CHECKPOINT_16,
CHECKPOINT_17,
CHECKPOINT_18,
CHECKPOINT_19,
CHECKPOINT_20,
CHECKPOINT_21,
CHECKPOINT_22,
CHECKPOINT_23,
CHECKPOINT_24,
CHECKPOINT_25,
CHECKPOINT_26,
CHECKPOINT_27,
CHECKPOINT_28,
CHECKPOINT_29,
CHECKPOINT_30,
CHECKPOINT_31,
CHECKPOINT_32,
CHECKPOINT_33,
CHECKPOINT_34,
CHECKPOINT_35,
CHECKPOINT_36,
CHECKPOINT_37,
CHECKPOINT_38,
CHECKPOINT_40,
CHECKPOINT_41,
CHECKPOINT_42,
CHECKPOINT_43,
CHECKPOINT_44,
CHECKPOINT_45,
CHECKPOINT_46,
CHECKPOINT_47,
CHECKPOINT_48,
CHECKPOINT_49,
CHECKPOINT_50,
CHECKPOINT_51,
CHECKPOINT_52,
CHECKPOINT_53,
CHECKPOINT_54,
CHECKPOINT_55,
CHECKPOINT_56,
CHECKPOINT_57,
CHECKPOINT_58,
CHECKPOINT_59,
CHECKPOINT_60,
CHECKPOINT_61,
CHECKPOINT_62,
CHECKPOINT_63,
CHECKPOINT_64,
CHECKPOINT_65,
CHECKPOINT_66,
CHECKPOINT_67,
CHECKPOINT_68,
CHECKPOINT_69,
CHECKPOINT_70,
CHECKPOINT_71,
CHECKPOINT_72,
CHECKPOINT_73,
CHECKPOINT_74,
CHECKPOINT_75,
CHECKPOINT_76,
CHECKPOINT_77,
CHECKPOINT_78,
CHECKPOINT_79,
CHECKPOINT_80,
CHECKPOINT_81,
CHECKPOINT_82,
CHECKPOINT_83,
CHECKPOINT_84,
CHECKPOINT_85,
CHECKPOINT_86,
CHECKPOINT_87,
CHECKPOINT_88,
CHECKPOINT_89,
CHECKPOINT_90,
CHECKPOINT_91,
CHECKPOINT_92,
CHECKPOINT_93,
CHECKPOINT_94,
CHECKPOINT_95,
CHECKPOINT_96,
CHECKPOINT_97,
CHECKPOINT_98,
CHECKPOINT_99,
CHECKPOINT_100,
CHECKPOINT_101,
CHECKPOINT_103,
CHECKPOINT_104,
CHECKPOINT_105,
CHECKPOINT_106,
CHECKPOINT_107,
CHECKPOINT_108,
CHECKPOINT_109,
CHECKPOINT_110,
CHECKPOINT_111,
CHECKPOINT_112,
CHECKPOINT_113,
CHECKPOINT_114,
CHECKPOINT_115,
CHECKPOINT_116,
CHECKPOINT_117,
CHECKPOINT_118,
CHECKPOINT_119,
CHECKPOINT_120,
CHECKPOINT_121,
CHECKPOINT_122,
CHECKPOINT_123,
CHECKPOINT_124,
CHECKPOINT_125,
CHECKPOINT_126,
CHECKPOINT_127,
CHECKPOINT_128,
CHECKPOINT_129,
CHECKPOINT_130,
CHECKPOINT_131,
CHECKPOINT_132
>
new pAutoBusSF[MAX_PLAYERS]; // . .
enum
<
CHECKPOINT_1,
CHECKPOINT_2,
CHECKPOINT_3,
CHECKPOINT_4,
CHECKPOINT_5,
CHECKPOINT_6,
CHECKPOINT_7,
CHECKPOINT_8,
CHECKPOINT_9,
CHECKPOINT_10,
CHECKPOINT_11,
CHECKPOINT_13,
CHECKPOINT_14,
CHECKPOINT_15,
CHECKPOINT_16,
CHECKPOINT_17,
CHECKPOINT_18,
CHECKPOINT_19,
CHECKPOINT_20,
CHECKPOINT_21,
CHECKPOINT_22,
CHECKPOINT_23,
CHECKPOINT_24,
CHECKPOINT_25,
CHECKPOINT_26,
CHECKPOINT_27,
CHECKPOINT_28,
CHECKPOINT_29,
CHECKPOINT_30,
CHECKPOINT_31,
CHECKPOINT_32,
CHECKPOINT_33,
CHECKPOINT_34,
CHECKPOINT_35,
CHECKPOINT_36,
CHECKPOINT_37,
CHECKPOINT_38,
CHECKPOINT_40,
CHECKPOINT_41,
CHECKPOINT_42,
CHECKPOINT_43,
CHECKPOINT_44,
CHECKPOINT_45,
CHECKPOINT_46,
CHECKPOINT_47,
CHECKPOINT_48,
CHECKPOINT_49,
CHECKPOINT_50,
CHECKPOINT_51,
CHECKPOINT_52,
CHECKPOINT_53,
CHECKPOINT_54,
CHECKPOINT_55,
CHECKPOINT_56,
CHECKPOINT_57,
CHECKPOINT_58,
CHECKPOINT_59,
CHECKPOINT_60,
CHECKPOINT_61,
CHECKPOINT_62,
CHECKPOINT_63,
CHECKPOINT_64,
CHECKPOINT_65,
CHECKPOINT_66,
CHECKPOINT_67,
CHECKPOINT_68,
CHECKPOINT_69,
CHECKPOINT_70,
CHECKPOINT_71,
CHECKPOINT_72,
CHECKPOINT_73
>
new pAutoBusLV[MAX_PLAYERS]; // . .
enum
<
CHECKPOINT_1,
CHECKPOINT_2,
CHECKPOINT_3,
CHECKPOINT_4,
CHECKPOINT_5,
CHECKPOINT_6,
CHECKPOINT_7,
CHECKPOINT_8,
CHECKPOINT_9,
CHECKPOINT_10,
CHECKPOINT_11,
CHECKPOINT_13,
CHECKPOINT_14,
CHECKPOINT_15,
CHECKPOINT_16,
CHECKPOINT_17,
CHECKPOINT_18,
CHECKPOINT_19,
CHECKPOINT_20,
CHECKPOINT_21,
CHECKPOINT_22,
CHECKPOINT_23,
CHECKPOINT_24,
CHECKPOINT_25,
CHECKPOINT_26,
CHECKPOINT_27,
CHECKPOINT_28,
CHECKPOINT_29,
CHECKPOINT_30,
CHECKPOINT_31,
CHECKPOINT_32,
CHECKPOINT_33,
CHECKPOINT_34,
CHECKPOINT_35,
CHECKPOINT_36,
CHECKPOINT_37,
CHECKPOINT_38,
CHECKPOINT_40,
CHECKPOINT_41,
CHECKPOINT_42,
CHECKPOINT_43,
CHECKPOINT_44,
CHECKPOINT_45,
CHECKPOINT_46,
CHECKPOINT_47,
CHECKPOINT_48,
CHECKPOINT_49,
CHECKPOINT_50,
CHECKPOINT_51,
CHECKPOINT_52,
CHECKPOINT_53,
CHECKPOINT_54,
CHECKPOINT_55,
CHECKPOINT_56,
CHECKPOINT_57,
CHECKPOINT_58,
CHECKPOINT_59,
CHECKPOINT_60,
CHECKPOINT_61,
CHECKPOINT_62,
CHECKPOINT_63,
CHECKPOINT_64,
CHECKPOINT_65,
CHECKPOINT_66,
CHECKPOINT_67,
CHECKPOINT_68,
CHECKPOINT_69,
CHECKPOINT_70
>
new pAutoBusReis1[MAX_PLAYERS]; // . .
enum
<
CHECKPOINT_1,
CHECKPOINT_2,
CHECKPOINT_3,
CHECKPOINT_4,
CHECKPOINT_5,
CHECKPOINT_6,
CHECKPOINT_7,
CHECKPOINT_8,
CHECKPOINT_9,
CHECKPOINT_10,
CHECKPOINT_11,
CHECKPOINT_13,
CHECKPOINT_14,
CHECKPOINT_15,
CHECKPOINT_16,
CHECKPOINT_17,
CHECKPOINT_18,
CHECKPOINT_19,
CHECKPOINT_20,
CHECKPOINT_21,
CHECKPOINT_22,
CHECKPOINT_23,
CHECKPOINT_24,
CHECKPOINT_25,
CHECKPOINT_26,
CHECKPOINT_27,
CHECKPOINT_28,
CHECKPOINT_29,
CHECKPOINT_30,
CHECKPOINT_31,
CHECKPOINT_32,
CHECKPOINT_33,
CHECKPOINT_34,
CHECKPOINT_35,
CHECKPOINT_36,
CHECKPOINT_37,
CHECKPOINT_38,
CHECKPOINT_40,
CHECKPOINT_41,
CHECKPOINT_42,
CHECKPOINT_43,
CHECKPOINT_44,
CHECKPOINT_45,
CHECKPOINT_46,
CHECKPOINT_47,
CHECKPOINT_48,
CHECKPOINT_49,
CHECKPOINT_50,
CHECKPOINT_51,
CHECKPOINT_52,
CHECKPOINT_53
>
new pAutoBusReis2[MAX_PLAYERS]; // . .
enum
<
CHECKPOINT_1,
CHECKPOINT_2,
CHECKPOINT_3,
CHECKPOINT_4,
CHECKPOINT_5,
CHECKPOINT_6,
CHECKPOINT_7,
CHECKPOINT_8,
CHECKPOINT_9,
CHECKPOINT_10,
CHECKPOINT_11,
CHECKPOINT_13,
CHECKPOINT_14,
CHECKPOINT_15,
CHECKPOINT_16,
CHECKPOINT_17,
CHECKPOINT_18,
CHECKPOINT_19,
CHECKPOINT_20,
CHECKPOINT_21,
CHECKPOINT_22,
CHECKPOINT_23,
CHECKPOINT_24,
CHECKPOINT_25,
CHECKPOINT_26,
CHECKPOINT_27,
CHECKPOINT_28,
CHECKPOINT_29,
CHECKPOINT_30,
CHECKPOINT_31,
CHECKPOINT_32,
CHECKPOINT_33,
CHECKPOINT_34,
CHECKPOINT_35,
CHECKPOINT_36,
CHECKPOINT_37,
CHECKPOINT_38,
CHECKPOINT_40,
CHECKPOINT_41,
CHECKPOINT_42,
CHECKPOINT_43,
CHECKPOINT_44,
CHECKPOINT_45,
CHECKPOINT_46
>
new Float: PaintballSpawns[6][3] = // .
<
<2563.6877,2807.0288,10.8203>,
<2554.0505,2837.7419,10.8203>,
<2585.6748,2848.5283,10.8203>,
<2598.7083,2843.5200,10.8203>,
<2546.7622,2830.9004,14.2559>,
<2575.9900,2839.3103,19.9922>
>;
new Float: RaceSpawns[14][3] = // .
<
<1473.0309,-2505.8330,13.2597>,
<1473.1139,-2501.6311,13.2597>,
<1473.2007,-2497.2439,13.2597>,
<1473.3285,-2490.7598,13.2597>,
<1473.4164,-2486.2935,13.2597>,
<1473.5006,-2482.0027,13.2597>,
<1490.8593,-2482.3445,13.2484>,
<1490.7758,-2486.5725,13.2484>,
<1490.6914,-2490.8496,13.2484>,
<1490.5592,-2497.5369,13.2484>,
<1490.4742,-2501.8625,13.2484>,
<1490.3927,-2505.9998,13.2484>,
<1506.5397,-2495.6602,13.2180>,
<1506.5789,-2492.1836,13.2180>
>;
new Float: race[23][3] = // .
<
<1706.8019,-2493.8806,13.2008>,
<1865.0568,-2493.7917,13.2430>,
<2004.5333,-2493.7129,13.2456>,
<2109.2900,-2541.4619,13.2298>,
<2057.6487,-2593.3159,13.2232>,
<1929.6129,-2593.5879,13.0613>,
<1772.9764,-2593.6741,13.2390>,
<1615.5470,-2593.7671,13.2563>,
<1487.0261,-2593.8442,13.2154>,
<1423.5560,-2548.9268,13.2454>,
<1453.1705,-2493.9058,13.2210>,
<1706.8019,-2493.8806,13.2008>,
<1865.0568,-2493.7917,13.2430>,
<2004.5333,-2493.7129,13.2456>,
<2109.2900,-2541.4619,13.2298>,
<2057.6487,-2593.3159,13.2232>,
<1929.6129,-2593.5879,13.0613>,
<1772.9764,-2593.6741,13.2390>,
<1615.5470,-2593.7671,13.2563>,
<1487.0261,-2593.8442,13.2154>,
<1423.5560,-2548.9268,13.2454>,
<1427.6746,-2461.2737,13.2599>,
< >
>;
new tachki[] = // .
<
402,
411,
415,
429,
434,
439,
451,
475,
477,
480,
494,
495,
496,
502,
503,
504,
506,
535,
541,
555,
558,
559,
560,
562,
565,
568,
571,
587,
589,
602,
603
>;
new paintgun[] = // .
<
24,
31,
30,
25,
29,
23
>;
new RulesMSG[17][] = // .
<
<«1. . . n»>,
<«. n»>,
<«<00BFFF>. . . . . . . . . ? . n»>,
<«<00BFFF>. . (. . . <00bfff>).n»>,
<«<00BFFF>. ESC <00bfff>? . . ?? . /. n»>,
<«<00BFFF>. . ?? . (. . . . <00bfff>).n»>,
<«<00BFFF>. . . . . (. . ? . . <00bfff>).n»>,
<«<00BFFF>. /. . . . . . (?? — Death Match<00bfff>).n»>,
<«<00BFFF>. . . . . . . nn»>,
<«2. . ? . n»>,
<«<00BFFF>(. . . . /mm >> . . )n»>,
<«<00BFFF>. . . ?? . _. ? . . n»>,
<«. n»>,
<«<00BFFF>. . . (. . -?? . <00bfff>) . n»>,
<«<00BFFF>. . . . . . . . n»>,
<«<00BFFF>. . . . ? . (. . . <00bfff>).n»>,
<«<00BFFF>. . . ? . . . . n»> >;
new RulesMSGG[22][] = <
<«3. . n»>,
<«<00BFFF>OOC (Out Of Charter<00bfff>) — . . . . . . n»>,
<«<00BFFF>IC (In Charter<00bfff>) — . . . . . . ?? . . n»>,
<«. n»>,
<«<00BFFF>. . . . . n»>,
<«<00BFFF>. . (?? . ? . . <00bfff>).n»>,
<«<00BFFF>. . ? . . (Caps Lock<00bfff>).n»>,
<«<00BFFF>. ? . . . ?? . ? Role Play<00bfff>.n»>,
<«<00BFFF>. . ? . . . . n»>,
<«<00BFFF>. . . . n»>,
<«<00BFFF>. . . nn»>,
<«4. . . n»>,
<«<00BFFF>. . . ? . . . ?? . . (/mm > . )<00bfff>.n»>,
<«<00BFFF>. . . . . . . ?? . n»>,
<«<00BFFF>. . . ? . n»>,
<«<00BFFF>. . . . ? ?? . . nn»>,
<«5. . n»>,
<«<00BFFF>. . . . n»>,
<«<00BFFF>. . / . . . ?? . . n»>,
<«<00BFFF>. . . . ? . . ?? . n»>,
<«<00BFFF>. . . . . . . n»>,
<«<00BFFF>. . / . . n»>
>;
enum pInfo
<
pDrugtime, // .
pVoennik, // . .
pNarkoZavisimost, // .
pLevel, // .
pFermajob, // .
pAdmin, // .
pHelper, // .
pPasport, // .
pPlaceJail, // .
Float: pIp, // IP
pFerma, // .
pFermazarobotok, // .
pColor, // . . ?1
pColor1,
pColor3,
pColor4, // . . ?2
Float: pIpReg, // IP . .
pHousecash, // .
pPhousekey, // .
pKolesa, // .
pGidra, // .
pCheckip, // IP
pDonateMoney, // .
pKeyip, // . .
pHP, // .
pDataReg, // . .
pCar,
pCar2, // .
Float: pFuelCar, // .
pProcents, // . .
pDonateRank, // . .
pReg, // . ?? .
pMaterials, // .
pSex, // .
pVhodMes,
pVhodchas,
pVhodminute,
pCarLic, // . .
pBisLic, // . ?? .
pGunLic, // . ?? .
pArrested, // .
pMuted, // . .
pExp, // EXP
pKills, // .
pCash, // .
pBan, // .
pDostup, // . -.
pDeaths, // .
pWantedDeaths, // .
pPayCheck, // . .
pJailed, // .
pJailTime, // .
pDrugs, // .
pLeader, // .
pMember, // .
pRank, // .
pChar, // .
pJob, // .
pInt, // .
pLocal,
pModel, // . .
pPnumber, // . .
pDirectory, // . .
pVhoddata,
pFlyLic, // . ?? .
pBoatLic, // . ?? .
pNkeys, // .
pPHousekey, // .
pPBiskey, // .
pLabiding,
pTut, // .
pWarns, // .
pAdmwarn,
pFuel, // .
pRadio, // .
pMuteTime, // . . .
pBank, // . ? .
pMotLic, // . ?? .
pKapot, // .
pMobile, // . ?? .
pDebt, // .
pMafiaRoof, // . ? . ? .
pUseMafiaRoof, // . .
pWantedLevel, // . .
SalonCar,
SalonTime,
pSlot[13], // . .
pSlotammo[13], // . .
pGunSkill[6], // . .
pDesertEagle, // Deagle
pMP5, // MP5
pAK47, // AK-47
pM4, // M4
pShotGun, // ShotGun
pGunFbiTime, // . FBI .
pGunLspdTime, // . LSPD .
pGunSfpdTime, // . SFPD .
pGunLvpdTime, // . LVPD .
pAdvertTime, // . .
pGunaSfaTime, // . SFa .
pGunaLvaTime, // . LVa .
pGunaLsaTime, // . LSa .
pGunMayorTime, // . . .
pGunSwatTime,
pPaintJob, // . ?? .
pSpoiler, // .
pFar, // .
pUbka, // .
pUbka2, // .
pVozduh, // .
pGluh, // .
pBumper1, // .
pBumper2, // .
pNitro,
pPaintJob2, // . ?? .
pSpoiler2, // .
pFar2, // .
pUbka3, // .
pUbka4, // .
pVozduh2, // .
pGluh2, // .
pBumper3, // .
pBumper4,
pKolesa2, // .
pGidra2, // .
pNitro2,
pKapot2,// .
pAdminKey, // ADMIN KEY
pHeadValue,
Float:CarX,
Float:CarY,
Float:CarZ,
Float:CarC
>;
/*

AddVehicleComponent(caridhouse[playerid], PlayerInfo[playerid][pKolesa]);
AddVehicleComponent(caridhouse[playerid], PlayerInfo[playerid][pNitro]);
AddVehicleComponent(caridhouse[playerid], PlayerInfo[playerid][pGidra]);
AddVehicleComponent(caridhouse[playerid], PlayerInfo[playerid][pVozduh]);
AddVehicleComponent(caridhouse[playerid], PlayerInfo[playerid][pGluh]);
AddVehicleComponent(caridhouse[playerid], PlayerInfo[playerid][pKapot]);
AddVehicleComponent(caridhouse[playerid], PlayerInfo[playerid][pFar]);
if(PJ(caridhouse[playerid]))
<
ChangeVehiclePaintjob(caridhouse[playerid], PlayerInfo[playerid][pPaintJob]);
AddVehicleComponent(caridhouse[playerid], PlayerInfo[playerid][pSpoiler]);
AddVehicleComponent(caridhouse[playerid], PlayerInfo[playerid][pBumper1]);
AddVehicleComponent(caridhouse[playerid], PlayerInfo[playerid][pBumper2]);
AddVehicleComponent(caridhouse[playerid], PlayerInfo[playerid][pUbka]);
AddVehicleComponent(caridhouse[playerid], PlayerInfo[playerid][pUbka2]);
>
*/ //TYT //.

stock PrintSBizInfo(playerid,targetid)
<
if(IsPlayerConnected(playerid))
<
new elektrich = SBizzInfo[targetid][sbBuyPrice] / 1000;
new mafiatext[7];
new text1[7];
new text2[11];
new bizinfo[400];
if(SBizzInfo[targetid][sbMafia] == 6) mafiatext = «Yakuza»;
else if(SBizzInfo[targetid][sbMafia] == 14) mafiatext = «RM»;
else if(SBizzInfo[targetid][sbMafia] == 5) mafiatext = «LCN»;
else if(SBizzInfo[targetid][sbMafia] == 0) mafiatext = «. «;
if(SBizzInfo[targetid][sbLocked]) text1 = «. «;
else text1 = «. «;
if(PlayerInfo[playerid][pBisLic]) text2 = «. «;
else text2 = «. «;
format(bizinfo,sizeof(bizinfo), «======================[ %s ]======================n. . %sn. . %d . t? . . . %d . n. %d/20000n. ?? . %d . n. . %d . n. %sn. . . . . %d . n. ?? . %d . n. %s»,
SBizzInfo[targetid][sbMessage],mafiatext,SBizzInfo[targetid][sbTill],SBizzInfo[targetid][s2bTill],SBizzInfo[targetid][sbProducts], SBizzInfo[targetid][sbPrice],SBizzInfo[targetid][sbPriceProd],text1,SBizzInfo[targetid][sbTill],elektrich, text2);
SPD(playerid,10349,DIALOG_STYLE_MSGBOX, «<00bfff>•. . <00bfff>•»,bizinfo, «$», «$»);
>
>
stock PrintBizInfo(playerid,targetid)
<
if(IsPlayerConnected(playerid))
<
for(new h = 0; h gettime()) return GameTextForPlayer(playerid,»Loading. «,1000,3);
SetPVarInt(playerid, «SelectAvto», GetPVarInt(playerid, «SelectAvto») +1);
switch(GetPVarInt(playerid,»CarShop»))
<
case 0:if(GetPVarInt(playerid, «SelectAvto») >= 19) SetPVarInt(playerid, «SelectAvto», 0);//nope
case 1:if(GetPVarInt(playerid, «SelectAvto») >= 38) SetPVarInt(playerid, «SelectAvto», 20);//c
case 2:if(GetPVarInt(playerid, «SelectAvto») >= 56) SetPVarInt(playerid, «SelectAvto», 39);//d
case 3:if(GetPVarInt(playerid, «SelectAvto») >= 85) SetPVarInt(playerid, «SelectAvto», 72);//a
case 4:if(GetPVarInt(playerid, «SelectAvto») >= 71) SetPVarInt(playerid, «SelectAvto», 57);//b
>
return ShowingCar(playerid);
>
stock BackCar(playerid)
<
if(PlayerInfo[playerid][SalonTime] > gettime()) return GameTextForPlayer(playerid,»Loading. «,1000,3);
SetPVarInt(playerid, «SelectAvto», GetPVarInt(playerid, «SelectAvto»)-1);
switch(GetPVarInt(playerid,»CarShop»))
<
case 0:if(GetPVarInt(playerid, «SelectAvto») = 126) SetPVarInt(playerid,»BuyColor»,0);
if(GetPVarInt(playerid,»BuyColor1″) >= 126) SetPVarInt(playerid,»BuyColor1″,0);
ChangeVehicleColor(GetPlayerVehicleID(playerid),GetPVarInt(playerid,»BuyColor»),GetPVarInt(playerid, «BuyColor1»));
new string[128];
format(string,sizeof(string),»

Источник

19.07.2015

4 046

7

787

0

Скриптер


  • #2

Может просто не заметили, может при фотографировании случайно удалили символ, но вы говорите, что объявлены переменные

new Text:TextDraw1;

А используете extdraw1.

(первой буквы нет и я бы на вашем месте «D» заглавной сделал)

MaksimL


  • #3

@Quylit, В строке с названием «Sapfir», пропустили букву «T» 

From SA-MP Wiki

Jump to: navigation, search

Undefined symbol is a Pawn compiler error message. The Pawn Language Guide formally defines this error as error 017, and explains that the error means «The symbol (variable, constant or function) is not declared«.

The error will look roughly look like this: error 017: undefined symbol «WelcomePlayer»

Cause

The error occurs when a piece of code references a variable, constant or function that the compiler cannot find. Often, this error is encountered by scripters who recklessly copy and paste code from one script to another, not realizing that the code in question depends on other code in the original script. Another, more common mistake made by even the most experienced scripters, is misspelling symbols.

Example with a function

This is example where a function that does not exists is referenced. A reckless copy-paster is copying a piece for code from the original script (awesomeroleplay.pwn) to his or her own (supercoolrp.pwn). awesomeroleplay.pwn compiles without any warnings or errors.

The reckless copy-paster decides to copy this piece of code from the original script:

awesomeroleplay.pwn

public OnPlayerConnect(playerid)
{
    WelcomePlayer(playerid);
}

The reckless copy-paster replaces supercoolrp.pwn’s OnPlayerConnect callback with the one from awesomeroleplay.pwn and then attemps to compile it. The compiler will, however, throw an error: error 017: undefined symbol «WelcomePlayer». This is because the function WelcomePlayer does not exist the paster’s own script. In other words: the piece of code that the reckless copy-paster pasted, depends on other code in awesomeroleplay.pwn. The paster will need to copy the dependent script as well.

In the original script, the function WelcomePlayer is defined.

awesomeroleplay.pwn

WelcomePlayer(playerid)
{
    SendClientMessage(playerid, "Welcome to Interactive Roleplay!", 0xFF0000AA);
}

The reckless copy-paster will need to copy and paste this function into his own script as well to make the code compile correctly. If this function would also depend on other code, the paster will need to copy and paste that code as well. In fact, the paster would need to repeat this step until all dependencies are resolved.

Tips for resolving this error

  • Use Ctrl + F to find the missing symbol (note that the compiler will tell you what symbol is missing after the words undefined symbol!) in the original script. If the symbol is a variable, you will have to copy all code that is relevant to its «ecosystem», that is to say, all code that modifies the variable. For beginning scripters and reckless copy-pasters, this may be hard, because it requires a deep understanding of the code and code paths.
  • Look into the includes of the original script.
  • Make sure you are adding the right includes.
  • Make sure you are not misspelling the symbol.

Всем привет, у меня банальный вопрос.. Варнинги да ошибки..

Ошибки при компиляции:

new.pwn(3498) : warning 217: loose indentation
new.pwn(8986) : error 017: undefined symbol "speedo5"
new.pwn(8986) : warning 215: expression has no effect
new.pwn(8986) : error 001: expected token: ";", but found "]"
new.pwn(8986) : error 029: invalid expression, assumed zero
new.pwn(8986) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

Главное — исправить ошибки.

Вот код:

От ошибки (8986) : error 017: undefined symbol «speedo5»:

     new Float:x, Float:y, Float:z;
            new Float:vX, Float:vY, Float:vZ;

            GetVehiclePos(i, x, y, z);
            GetVehicleVelocity(i, vX, vY, vZ);

            if (IsPlayerInRangeOfPoint(playerid, 30.0, x, y, z))
            {
                new str[32];
                new Float:speed = floatmul(floatsqroot((vX * vX) + (vY * vY) + (vZ * vZ)), 100.0);
                new Float: Distance = GetPlayerDistanceFromPoint(playerid, x, y, z);
                new model = GetVehicleModel(i);
                format(str, sizeof(str), "% 0.1f kЇ/¤", speed);
                PlayerTextDrawSetString(playerid, speedo5[playerid], str);
                format(str, sizeof(str), "%0.1f Ї", Distance);
                PlayerTextDrawSetString(playerid, speedo4[playerid], str);
                format(str, sizeof(str), "%s", GetCarMarkText(model));
                PlayerTextDrawSetString(playerid, speedo3[playerid], str);
                break;
            }
        }

Строчка 8986 —  PlayerTextDrawSetString(playerid, speedo5[playerid], str);



Так далее, ошибка — (8986) : error 001: expected token: «;», but found «]»

Код что и выше + строчка та-же.


Далее.. — (8986) : error 029: invalid expression, assumed zero 

Код и строчка выше.

Не нажимается TD

Nikita_Dajandre

Новичок

Помогите пожалуйста, у меня не нажимается кнопка на TD. Вызываю я ее в команде

CMD:video(playerid)
<
if(!IsPlayerInRangeOfPoint(playerid, 2.0, 2216.8521,-1910.9938,18.8125)) return 1;// Здесь указывайте ваши кординаты, на которых будет работать данная команда.
SetPlayerCameraPos(playerid, 2193.7593, -1889.2422, 24.4433);//Здесь координаты камеры.
SetPlayerCameraLookAt(playerid, 2194.5024, -1889.9200, 24.3133);
TogglePlayerControllable(playerid, 0);// Здесь запрещаем игроку двигать камерой.
return true;
>

У меня еще не пропадает TD когда я выключаю камеру

CMD:videooff(playerid)
<
SetCameraBehindPlayer(playerid);//Восстанавлием камеру игроку.
TogglePlayerControllable(playerid, 1);// Даём игроку возможность двигать камерой.
return true;
>

new Text:CAM6;
new Text:CAM7;

CAM6 = TextDrawCreate(13.118572, 412.416259, «LD_BEAT:left»);//=============НУЖНАЯ КНОПКА
TextDrawLetterSize(CAM6, 0.000000, 0.000000);
TextDrawTextSize(CAM6, 30.000000, 31.499980);
TextDrawAlignment(CAM6, 1);
TextDrawColor(CAM6, 16711935);
TextDrawSetShadow(CAM6, 0);
TextDrawSetOutline(CAM6, 0);
TextDrawFont(CAM6, 4);

CAM7 = TextDrawCreate(596.427246, 412.416564, «LD_BEAT:right»);//=============НУЖНАЯ КНОПКА
TextDrawLetterSize(CAM7, 3.122694, -9.245831);
TextDrawTextSize(CAM7, 30.000000, 29.750022);
TextDrawAlignment(CAM7, 1);
TextDrawColor(CAM7, 16711935);
TextDrawSetShadow(CAM7, 0);
TextDrawSetOutline(CAM7, 0);
TextDrawFont(CAM7, 4);

Источник

Форум Pawn.Wiki — Воплоти мечту в реальность!: error 017 — Форум Pawn.Wiki — Воплоти мечту в реальность!

  • Pawn скриптинг
  • Первая помощь
  • Проблемы с компилированием
  • Правила форума
  • Просмотр новых публикаций

  • Группа: Активные пользователи
  • Сообщений: 72
  • Регистрация: 01 декабря 14

  • Группа: Активные пользователи
  • Сообщений: 21
  • Регистрация: 04 октября 13

ко всем переменным в начале мода добавь:

Сообщение отредактировал Vibe: 17 января 2015 — 15:46

  • Группа: Vip
  • Сообщений: 1 324
  • Регистрация: 26 сентября 13

Vibe (17 января 2015 — 15:45) писал:

error 021: symbol already defined: «SiteText» — переменная SiteText уже объявлена
не учи других если сам не понимаешь!

в какой паблик ты пихаешь?:

Сообщение отредактировал bek: 17 января 2015 — 16:02

  • Группа: Активные пользователи
  • Сообщений: 72
  • Регистрация: 01 декабря 14

bek (17 января 2015 — 15:53) писал:

error 021: symbol already defined: «SiteText» — переменная SiteText уже объявлена
не учи других если сам не понимаешь!

в какой паблик ты пихаешь?:

в public OnPlayerConnect(playerid)

Решил проблему,спасибо за помощь.

Сообщение отредактировал Oleg_Morety: 17 января 2015 — 16:09

Источник

Форум Pawn.Wiki — Воплоти мечту в реальность!: error 017: undefined symbol «to_player» — Форум Pawn.Wiki — Воплоти мечту в реальность!

  • Pawn скриптинг
  • Первая помощь
  • Проблемы с компилированием
  • Правила форума
  • Просмотр новых публикаций

  • Группа: Активные пользователи
  • Сообщений: 76
  • Регистрация: 15 февраля 22

суть такая, хотел усовершенствовать свой код, в итоге ничего не получилось, так как опыта мало.
Ошибка:

Сам код, на который ругается павно:

поправте, если в коде есть ошибка.

Сообщение отредактировал Kirill_Babkin: 06 июня 2022 — 17:31

  • Группа: Активные пользователи
  • Сообщений: 1 029
  • Регистрация: 07 июня 21

Сообщение отредактировал Perdolinka: 06 июня 2022 — 17:55

Источник

Форум Pawn.Wiki — Воплоти мечту в реальность!: error 017: undefined symbol «playerid» — Форум Pawn.Wiki — Воплоти мечту в реальность!

  • Pawn скриптинг
  • Первая помощь
  • Проблемы с компилированием
  • Правила форума
  • Просмотр новых публикаций

  • Группа: Активные пользователи
  • Сообщений: 46
  • Регистрация: 21 января 21

Перенёс текстдравы в инклюд, теперь много варнингов на подобии этого.
error 017: undefined symbol «playerid»

Сообщение отредактировал skankhunt42: 08 марта 2021 — 06:23

  • Группа: Vip
  • Сообщений: 4 729
  • Регистрация: 14 марта 12

  • Группа: Активные пользователи
  • Сообщений: 46
  • Регистрация: 21 января 21

DeimoS (08 марта 2021 — 07:37) писал:

Спасибо, можешь ещё помочь, мне в этой строке пишет несоответствие тегов.

  • Группа: Vip
  • Сообщений: 4 729
  • Регистрация: 14 марта 12

Ну так ты создаёшь текстдрав для игрока, а функцию используешь, предназначенную для глобальных текстдравов.

Источник

Форум Pawn.Wiki — Воплоти мечту в реальность!: Закрытие TD на ESC — Форум Pawn.Wiki — Воплоти мечту в реальность!

  • Pawn скриптинг
  • Первая помощь
  • Вопросы по скриптингу
  • Правила форума
  • Просмотр новых публикаций

Закрытие TD на ESC

  • Группа: Активные пользователи
  • Сообщений: 109
  • Регистрация: 25 марта 16

  • Группа: Vip
  • Сообщений: 1 570
  • Регистрация: 18 февраля 15

  • Группа: Заблокированные
  • Сообщений: 1 774
  • Регистрация: 28 декабря 15

  • Группа: Активные пользователи
  • Сообщений: 109
  • Регистрация: 25 марта 16

Vitya (30 марта 2016 — 16:23) писал:

  • Группа: Активные пользователи
  • Сообщений: 443
  • Регистрация: 23 марта 13

Сообщение отредактировал PAWLO: 30 марта 2016 — 18:09

  • Группа: Vip
  • Сообщений: 1 324
  • Регистрация: 26 сентября 13

Что за глупые примеры. в OnPlayerClickPlayerTextDraw это НЕ ОТСЛЕЖИВАЕТСЯ, это можно отследить в OnPlayerClickTextDraw даже если это не PlayerText.

Сообщение отредактировал bek: 30 марта 2016 — 21:48

  • Группа: Vip
  • Сообщений: 1 570
  • Регистрация: 18 февраля 15

  • Группа: Активные пользователи
  • Сообщений: 109
  • Регистрация: 25 марта 16

bek (30 марта 2016 — 21:36) писал:

Что за глупые примеры. в OnPlayerClickPlayerTextDraw это НЕ ОТСЛЕЖИВАЕТСЯ, это можно отследить в OnPlayerClickTextDraw даже если это не PlayerText.

  • Группа: Vip
  • Сообщений: 1 324
  • Регистрация: 26 сентября 13

MaxCross (31 марта 2016 — 14:18) писал:

0xFFFF — INVALID_TEXT_DRAW
_: — приравнивание к int

исходя из этого альтернатива этого кода будет

Сообщение отредактировал bek: 31 марта 2016 — 18:02

Источник

#1

azik215

    Новичок

  • Пользователь
  • Pip

  • 32 сообщений

Отправлено 12 Сентябрь 2014 — 18:29

Помогите , что за ошибка??

Упс. Компилирование

  • Наверх


#2


The

Отправлено 12 Сентябрь 2014 — 18:56

  • Помогите , что за ошибка??

    Упс. Компилирование

    error 017: undefined symbol «%s» — неизвестный символ «%s»;
    warning 217: loose indentation — не выровненная строка

Сообщение отредактировал The: 12 Сентябрь 2014 — 18:56

  • Наверх


#3


azik215

azik215

    Новичок

  • Пользователь
  • Pip

  • 32 сообщений

Отправлено 20 Сентябрь 2014 — 18:46

  • error 017: undefined symbol «%s» — неизвестный символ «%s»;
    с ним то , что делать с 2 я разобрался

  • Наверх


#4


FasT of boni

Отправлено 20 Сентябрь 2014 — 18:58

warning 217: loose indentation 
Проблема с отступами. Внутри функции отступы должны быть сделаны или с помощью TAB, или с помощью пробелов — нельзя их смешивать, выберите что-то одно. 

  • Наверх


#5


azik215

azik215

    Новичок

  • Пользователь
  • Pip

  • 32 сообщений

Отправлено 20 Сентябрь 2014 — 19:03

warning 217: loose indentation 
Проблема с отступами. Внутри функции отступы должны быть сделаны или с помощью TAB, или с помощью пробелов — нельзя их смешивать, выберите что-то одно

Я с этим разобрался мне нужно 

error 017: undefined symbol «%s» — неизвестный символ «%s»;

Что с ним делать?

Вот 93 строчка

LogMgr_Print(g_moduleCore, LogType_Debug, «PurchaseUpgrade», «Client %d tried to buy interlocked upgrade %s», client, name);

  • Наверх


#6


FasT of boni

Отправлено 20 Сентябрь 2014 — 19:08

Я с этим разобрался мне нужно 

error 017: undefined symbol «%s» — неизвестный символ «%s»;

Что с ним делать?

Вот 93 строчка

LogMgr_Print(g_moduleCore, LogType_Debug, «PurchaseUpgrade», «Client %d tried to buy interlocked upgrade %s», client, name);

error 017: undefined symbol «x» 
Используемый символ не найден. Или забыли переменную объявить, или не подключили модуль. Если это какая-то SourceMod команда, например, CS_RespawnPlayer, то зайдите в API и введите её в поле «Search:». Выше над командой жирным шрифтом будет указано имя модуля, например, «cstrike», и чтобы его подключить, добавьте в самый верх кода #include <cstrike> 

  • Наверх


#7


azik215

azik215

    Новичок

  • Пользователь
  • Pip

  • 32 сообщений

Отправлено 20 Сентябрь 2014 — 19:24

Я с этим разобрался мне нужно 

error 017: undefined symbol «%s» — неизвестный символ «%s»;

Что с ним делать?

Вот 93 строчка

LogMgr_Print(g_moduleCore, LogType_Debug, «PurchaseUpgrade», «Client %d tried to buy interlocked upgrade %s», client, name);

error 017: undefined symbol «x» 
Используемый символ не найден. Или забыли переменную объявить, или не подключили модуль. Если это какая-то SourceMod команда, например, CS_RespawnPlayer, то зайдите в API и введите её в поле «Search:». Выше над командой жирным шрифтом будет указано имя модуля, например, «cstrike», и чтобы его подключить, добавьте в самый верх кода #include <cstrike> 

Можно я в лс файл кину. Ты сделаешь??

  • Наверх


#8


FasT of boni

Отправлено 20 Сентябрь 2014 — 19:25

Можно я в лс файл кину. Ты сделаешь??

попробуй

  • Наверх


#9


azik215

azik215

    Новичок

  • Пользователь
  • Pip

  • 32 сообщений

Отправлено 20 Сентябрь 2014 — 19:28

  • Наверх


#10


FasT of boni

Отправлено 20 Сентябрь 2014 — 20:26

Это инклюд.

Кидай все инклюды и исходник.

  • Наверх


#11


Mattko

Отправлено 21 Сентябрь 2014 — 13:29

Нету переменной «name», объявите о ней в начале кода.
Используя вот-так: new name;
 

warning 217: loose indentation 
Проблема с отступами. Внутри функции отступы должны быть сделаны или с помощью TAB, или с помощью пробелов — нельзя их смешивать, выберите что-то одно. 

Не отступами, а с табуляции… Можно объявить #table, но проще соблюдать табуляцию, чтобы работа плагина была стабильна.

PS: Автору темы, кидай исходник мне в ЛС, или тут. Исправлю.

  • Mr.Credo это нравится
  • Наверх


В общем, исправлял опечатки в скрипте, в итоге не могу скомпилировать
Ошибки: Вы должны зарегистрироваться, чтобы видеть ссылки.

Все ошибки связаны с undefined symbol, смотрел строчки где вылезли эти ошибки, не могу понять что там не так, пожалуйста помогите, ну или хотябы покажите на примере 1 из этих ошибок, а дальше я сам как нибудь попробую
Сам код:

Код: Выделить всё
#include AmxModX
#include JBE_core
#include FakeMeta
#include HamSandwich

#define RegisterMenu(%1,%2,%3) register_menucmd(register_menuid(%1),%3,%2)

#define TaskId_Regen 12125
#define MAX_PLAYERS 32

/* -> Бит суммы для игроков -> */
#define SetBit(%0,%1)                 ((%0) |= (1 << (%1)))
#define ClearBit(%0,%1)             ((%0) &= ~(1 << (%1)))
#define IsSetBit(%0,%1)             ((%0) & (1 << (%1)))
#define InvertBit(%0,%1)             ((%0) ^= (1 << (%1)))
#define IsNotSetBit(%0,%1)             (~(%0) & (1 << (%1)))

/* -> Массивы для меню из игроков -> */

new g_iMenuPlayers[MAX_PLAYERS + 1][32], g_iMenuPosition[MAX_PLAYERS + 1];enum _: eBLOCK
{
    REGEN,
    MODE
};new g_iBitUserIsType[eBLOCK], g_iUserRespawnNum[MAX_PLAYERS], g_iGodModeType[MAX_PLAYERS + 1], g_iUserPoints[MAX_PLAYERS + 1],
g_iDayMode, g_iMaxPlayers, g_iSyncText;public plugin_natives()
{
    register_native( "Open_KnyazMenu", "Show_KnyazMenu", 1 );
    register_native( "Open_CreateMenu", "Show_CreatorMenu", 1 );
    register_native( "Open_GodModeMenu", "Show_GodModeMenu", 1 );
    register_native( "Open_Respawn_Menu", "Cmd_OpenResspawnMenu", 1 );
    register_native( "Open_StrongMenu", "Show_StrongMenu", 1 );
}
public plugin_init()
{
    get_license();
    register_plugin("[UJBL] Privileges Addon", "vk/krisiso", "ToJI9IHGaa");    new iBits = (1<<0|1<<1|1<<2|1<<9);
    
    RegisterMenu
("Show_KnyazMenu", "Handle_KnyazMenu", iBits);
    
    iBits 
|= (1<<3|1<<4);
    
    RegisterMenu
("Show_CreatorMenu", "Handle_CreatorMenu", iBits);
    RegisterMenu("Show_GodModeMenu", "Handle_GodModeMenu", iBits);    iBits |= (1<<5|1<<6|1<<7|1<<8);
    
    RegisterMenu
("Show_RespawnMenu", "Handle_RespawnMenu", iBits);
    RegisterMenu("Show_GodModeList", "Handle_GodModeList", iBits);
    RegisterMenu("Show_StrongMenu", "Handle_Strong1Menu", iBits);
        
    register_logevent
("LogEvent_RoundStart",2,"1=Round_Start");
    
    g_iMaxPlayers 
= get_maxplayers();
    g_iSyncText = CreateHudSyncObj();
}
public LogEvent_RoundStart()
{
    for( new pId = 1; pId <= g_iMaxPlayers; pId++ )
    {
        if( jbe_get_privileges_flags( pId ) & FLAGS_KNYAZ )
        {    
            if
( task_exists( pId + TaskId_Regen ) ) remove_task( pId + TaskId_Regen );
            static iMode, iInvisible; jbe_get_user_rendering( pId, iMode, iMode, iMode, iMode, iMode, iInvisible );
            if( iMode == kRenderTransAlpha && iInvisible == 70 ) jbe_set_user_rendering( pId, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 100 );        

                        g_iBitUserIsType

[ REGEN ] = 0;
            g_iUserRespawnNum[ pId ] = 3;
        }
    }
}
#define TaskId_UpPoints 12421
public client_putinserver( pId )
{
    if( jbe_get_privileges_flags( pId ) & FLAGS_STRONG ) 
    
{
        set_task( 300.0, "fnUpPoints", pId + TaskId_UpPoints, _, _, "b" );
        if( !is_linux_server() ) g_iUserPoints[ pId ] = 999;
    }
}
public client_disconnect( pId )
{
    if( task_exists( pId + TaskId_UpPoints ) )
    {
        remove_task( pId + TaskId_UpPoints );
        g_iUserPoints[ pId ] = 0;
    }
}
public fnUpPoints( pId ) 
{
    pId -= TaskId_UpPoints;
    new iNum = random_num( 1, 3 );
    g_iUserPoints[ pId ] += iNum;
    UTIL_SayText( pId, "Вы получили: !g%d !tPresent Points!y. Теперь их у Вас: !g%d", iNum, g_iUserPoints[ pId ] );
}
    
public Show_StrongMenu
( pId )
{
    #define PP[%1] g_iUserPoints[%1]
    #define AddItem(%1) iLen += formatex( szMenu[ iLen ], charsmax( szMenu ) - iLen, %1 )
    #define AddBit(%1) iKeys |= ( 1<<%1 )
    
    jbe_informer_offset_up
( pId );
    new szMenu[ 512 ], iLen, iKeys = ( 1<<);
    iLen = formatex( szMenu[ iLen ], charsmax( szMenu ) - iLen, "yStrong Menu^nВаши rPresentPoints: w%d^n^n", PP[ pId ] );
    
/// ////////////////////////////////////////////////////////////////////////////////////////////////////////
//    ////////////////////////////////////////////////////////////////////////////////////////////////////////
    if( PP[ pId ] > 0 )
    {
        AddItem( "r(1)y | w250$Rr[ 1PP ]^n" );
        AddBit( 0 );
    }
    else AddItem( "r(1)y | d250$Rr[ 1PP ]^n" );    
/// ////////////////////////////////////////////////////////////////////////////////////////////////////////
//    ////////////////////////////////////////////////////////////////////////////////////////////////////////
    if( pev( pId, pev_health ) >= 500.0 || pev( pId, pev_armorvalue ) >= 255.0 )
        AddItem("r(2)y | dHealth & Armor Packr(У Вас много HP/AP)R[ 1PP ]^n");
    else
    
{
        if( PP[ pId ] > 0 )
        {
            AddItem("r(2)y | wHealth & Armor PackRr[ 1PP ]^n");
            AddBit( 1 );
        }
        else AddItem("r(2)y | dHealth & Armor PackRr[ 1PP ]^n");
    }
/// ////////////////////////////////////////////////////////////////////////////////////////////////////////
//    ////////////////////////////////////////////////////////////////////////////////////////////////////////
    if( PP[ pId ] > 1 )
    {
        AddItem( "r(3)y | wСпец комплектRr[ 2PP ]^n" );
        AddBit( 2 );
    }
    else AddItem( "r(3)y | dСпец комплектRr[ 2PP ]^n" );
/// ////////////////////////////////////////////////////////////////////////////////////////////////////////
//    ////////////////////////////////////////////////////////////////////////////////////////////////////////
    if( PP[ pId ] > 0 )
    {
        AddItem( "r(4)y | wTeleport на spawnRr[ 1PP ]^n" );
        AddBit( 3 );
    }
    else AddItem( "r(4)y | dTeleport на spawnRr[ 1PP ]^n" );
/// ////////////////////////////////////////////////////////////////////////////////////////////////////////
//    ////////////////////////////////////////////////////////////////////////////////////////////////////////
    if( PP[ pId ] > 0 )
    {
        AddItem( "r(5)y | wOpen door (По прицелу)Rr[ 1PP ]^n" );
        AddBit( 4 );
    }
    else AddItem( "r(5)y | dOpen door (По прицелу)Rr[ 1PP ]^n" );
/// ////////////////////////////////////////////////////////////////////////////////////////////////////////
//    ////////////////////////////////////////////////////////////////////////////////////////////////////////
    if( PP[ pId ] > 1 )
    {
        AddItem( "r(6)y | wПодмена мест (Случайный игрок)Rr[ 2PP ]^n" );
        AddBit( 5 );
    }
    else AddItem( "r(6)y | dПодмена мест (Случайный игрок)Rr[ 2PP ]^n" );
/// ////////////////////////////////////////////////////////////////////////////////////////////////////////
//    ////////////////////////////////////////////////////////////////////////////////////////////////////////
    if( PP[ pId ] > 2 )
    {
        AddItem( "r(7)y | wСлучайное оружиеRr[ 3PP ]^n" );
        AddBit( 6 );
    }
    else AddItem( "r(7)y | dСлуайное оружиеRr[ 3PP ]^n" );
/// ////////////////////////////////////////////////////////////////////////////////////////////////////////
//    ////////////////////////////////////////////////////////////////////////////////////////////////////////
    static iMode, iInvisible; jbe_get_user_rendering( pId, iMode, iMode, iMode, iMode, iMode, iInvisible);
    if( iMode == kRenderTransAlpha && iInvisible == 100 )
        AddItem( "r(8)y | dПолная невидимость r(Активно)R[ 4PP ]^n" );
    else 
    
{
        if( PP[ pId ] > 3 )
        {
            AddItem( "r(8)y | wПолная невидимостьRr[ 4PP ]^n" );
            AddBit( 7 );
        }
        else AddItem( "r(8)y | dПолная невидимостьRr[ 4PP ]^n" );
    }
/// ////////////////////////////////////////////////////////////////////////////////////////////////////////
//    ////////////////////////////////////////////////////////////////////////////////////////////////////////
    AddItem( "^nr(0)y | wВыход^n" );
    
    return show_menu
( pId, iKeys, szMenu, -1, "Show_StrongMenu" );
}
public Handle_Strong1Menu( pId, iKey )
{
    switch( iKey )
    {
        case 0:
        {
            jbe_set_user_money( pId, jbe_get_user_money( pId ) + 250, 1 );
            g_iUserPoints[ pId ]--;
            return Show_StrongMenu( pId );
        }
        case 1: 
        
{
            set_pev( pId, pev_health, 500.0 );
            set_pev( pId, pev_armorvalue, 255.0 );
            g_iUserPoints[ pId ]--;
        }
        
        case 2
:
        {
            switch( jbe_get_user_team( pId ) )
            {
                case 1: 
                
{
                    drop_user_weapons( pId, 0 ); jbe_set_user_rendering( pId, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 20 );
                    fm_give_item( pId, "item_kevlar" ); set_pev( pId, pev_armorvalue, pev( pId, pev_armorvalue ) + 70.0 );
                    new iItemId = fm_give_item( pId, "weapon_usp" ); fm_give_item( pId, "weapon_flashbang" );
                    if( iItemId ) set_pdata_int( iItemId, 51, 30, 4 );    
                
}
                case 2:
                {
                    drop_user_weapons( pId, 1 ); set_pev( pId, pev_health, pev( pId, pev_health ) + 70.0 );
                    
                    if
( fm_give_item( pId, "weapon_hegrenade" ) ) 
                    
{
                        client_cmd( pId, "weapon_hegrenade" );
                        set_pdata_int( pId, 388, 5, 5 );
                    }
                    
                    if
( fm_give_item( pId, "weapon_m4a1" ) ) 
                    
{
                        client_cmd( pId, "weapon_m4a1" );
                        set_pdata_int( pId, 380, 200, 5 );
                    }
                }
            }
            
            g_iUserPoints
[ pId ] -= 2;
        }
        
        case 3
:
        {
            new iEntity;
            switch( jbe_get_user_team( pId ) )
            {
                case 1: iEntity = engfunc( EngFunc_FindEntityByString, iEntity, "classname", "info_player_deathmatch" );
                case 2: iEntity = engfunc( EngFunc_FindEntityByString, iEntity, "classname", "info_player_start" );
            }
            if( !iEntity ) return Show_StrongMenu( pId );
            new Float: vecOrigin[ 3 ]; pev( iEntity, pev_origin, vecOrigin );
            set_pev( pId, pev_origin, vecOrigin );
            
            g_iUserPoints
[ pId ]--;
        }
        
        case 4
:        
        
{
            new iEntity, iBody; get_user_aiming( pId, iEntity, iBody, 30 );
            if( !pev_valid( iEntity ) ) return Show_StrongMenu( pId );
            
            new szClassName
[ 32 ]; pev( iEntity, pev_classname, szClassName, charsmax( szClassName ) );
            if( szClassName[ 5 ] == 'd' && szClassName[ 6 ] == 'o' && szClassName[ 7 ] == 'o' && szClassName[ 8 ] == 'r' )
            {
                client_print( pId, print_center, "<<<< OPENED >>>>" );
                dllfunc( DLLFunc_Use, iEntity, pId );
            }
            else return Show_StrongMenu( pId );
            
            g_iUserPoints
[ pId ]--;
        }
        
        case 5
:
        {
            new iPlayers[ 32 ], iNum, pTarget;
            for( pTarget = 1; pTarget <= g_iMaxPlayers; pTarget++ )
            {
                if( !jbe_is_user_alive( pTarget ) || pTarget == pId ) continue;
                iPlayers[ iNum++ ] = pTarget;
            }
            
            if
( !iNum )
            {
                client_print( pId, print_center, "<<<< No Players >>>>" );
                return Show_StrongMenu( pId );
            }
            
            new Float
: vecOriginTarget[ 3 ], Float: vecOrigin[ 3 ]; pTarget = iPlayers[ random_num( 1, iNum - 1 ) ];
            pev( pTarget, pev_origin, vecOriginTarget ); pev( pId, pev_origin, vecOrigin );
            set_pev( pId, pev_origin, vecOriginTarget ); set_pev( pTarget, pev_origin, vecOrigin );
            
            client_print
( pTarget, print_center, "<<<< Кто-то поменялся с вами позициями! >>>>" );
            
            g_iUserPoints
[ pId ] -= 2;
        }
        
        case 6
:
        {
            drop_user_weapons( pId, 1 ); drop_user_weapons( pId, 0 );
            new szWeapons[][] = { "weapon_m4a1", "weapon_usp", "weapon_ak47", "weapon_glock18", "weapon_m249" };
            fm_give_item( pId, szWeapons[ random_num( 0, 4 ) ] );
            
            g_iUserPoints
[ pId ] -= 3;
        }
        
        case 7
:
        {
            jbe_set_user_rendering( pId, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 100 );
            client_print( pId, print_center, "<<<< Вы невидимы! >>>>" );
            
            g_iUserPoints
[ pId ] -= 4;
        }
    }
    return PLUGIN_HANDLED;
}
public Show_KnyazMenu( id )
{
    jbe_informer_offset_up(id);
    static iMode, iInvisible; jbe_get_user_rendering(id, iMode, iMode, iMode, iMode, iMode, iInvisible);
    
    new szMenu
[340], iLen, iKeys = (1<<0|1<<1|1<<9);
    iLen = formatex(szMenu[iLen], charsmax(szMenu) - iLen, "y%L^n^n", id, "JBE_KNYAZ_TITLE");
    FormatMenu("r(1) y|  w%L^n", id, "JBE_KNYAZ_REGENERATION", IsSetBit(g_iBitUserIsType[REGEN], id) ? "Включено" : "Выключено");
    FormatMenu("r(2) y|  w%L^n", id, "JBE_KNYAZ_INVISIBLE", (iMode == kRenderTransAlpha && iInvisible == 70) ? "Включено" : "Выключено");
    
    if
(g_iUserRespawnNum[id] > 0)
    {
        FormatMenu("r(3) y| w %L r[%d]^n", id, "JBE_RESPAWN_MENU", g_iUserRespawnNum[id]);
        iKeys |= (1<<2);
    }
    else FormatMenu("r(3) y| d %L r(0) y| ^n", id, "JBE_RESPAWN_MENU");
    FormatMenu("^nr(0) y| w Выход");
    return ShowMenu("Show_KnyazMenu");
}
public Handle_KnyazMenu(id, iKey)
{
    switch(iKey)
    {
        case 0:
        {
            if(IsSetBit(g_iBitUserIsType[REGEN], id)) remove_task(id + TaskId_Regen);
            else set_task(10.0, "Regenerations", id + TaskId_Regen, _, _, "b");
            
            InvertBit
(g_iBitUserIsType[REGEN], id);
        }
        case 1:
        {
            static iMode, iInvisible;
            jbe_get_user_rendering(id, iMode, iMode, iMode, iMode, iMode, iInvisible);
            if(iMode == kRenderTransAlpha && iInvisible == 70) jbe_set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 100);
            else jbe_set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 70);
        }
        case 2: return Show_RespawnMenu(id, g_iMenuPosition[id] = 0);    
        case 9
: return PLUGIN_HANDLED;
    }
    return Show_KnyazMenu(id);
}
public Regenerations(id)
{
    id -= TaskId_Regen;
    if(jbe_get_status_duel() || jbe_get_day_mode() == 3 || !jbe_is_user_alive(id)) 
    
{
        remove_task(id + TaskId_Regen);
        return;
    }
    if(pev(id, pev_health) >= 100) 
    
{
        client_print(id, print_center, "[Князь Меню] Регенерация завершена.");
        remove_task(id + TaskId_Regen);
        return;
    }
    set_pev(id, pev_health, pev(id, pev_health) + 5.0);
}
public Show_CreatorMenu(id)
{
    jbe_informer_offset_up(id);    
    new szMenu
[516], iLen, iKeys = (1<<0|1<<1|1<<2|1<<3|1<<9), Float: fGravity;
    pev(id, pev_gravity, fGravity);
    iLen = formatex(szMenu[iLen], charsmax(szMenu) - iLen, "y%L^n^n", id, "JBE_CREATOR_TITLE");
    
    iLen 
+= formatex(szMenu[iLen], charsmax(szMenu) - iLen, "y[1] w%L^n^n", id, "JBE_CREATER_TYPE", IsNotSetBit(g_iBitUserIsType[MODE], id) ? "Забрать" : "Дать");
    iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "y[2] w%L^n", id, "JBE_CREATE_HEALTH", pev(id, pev_health));
    iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "y[3] w%L^n^n", id, "JBE_CREATE_ARMOR", pev(id, pev_armorvalue));
    iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "y[4] w%L^n^n", id, "JBE_CREATE_GRAVITY", fGravity);
    if(!jbe_is_user_alive(id))
    {
        iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "y[5] w%L^n^n",id, "JBE_RESPAWN_CREATE");
        iKeys |= (1<<4);
    }
    else iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "y[5] d%L^n^n",id, "JBE_RESPAWN_CREATE");
    FormatMenu("^nr(0) y| w Выход");
    return ShowMenu("Show_CreatorMenu");
}
public Handle_CreatorMenu(id, iKey)
{
    switch(iKey)
    {
        case 0: InvertBit(g_iBitUserIsType[MODE], id);
        case 1: 
        
{
            if(IsSetBit(g_iBitUserIsType[MODE], id))
            {
                if(pev(id, pev_health) >= 160) client_print(id, print_center, "У Вас много жизней!");
                else set_pev(id, pev_health, pev(id, pev_health) + 5.0);
            }
            else
            
{
                if(pev(id, pev_health) < 6) client_print(id, print_center, "У Вас мало жизней!");
                else set_pev(id, pev_health, pev(id, pev_health) - 5.0);
            }
        }
        case 2:
        {
            if(IsSetBit(g_iBitUserIsType[MODE], id))
            {
                if(pev(id, pev_armorvalue) >= 160) client_print(id, print_center, "У Вас много брони!");
                else set_pev(id, pev_armorvalue, pev(id, pev_armorvalue) + 5.0);
            }
            else
            
{
                if(pev(id, pev_armorvalue) < 6) client_print(id, print_center, "У Вас мало брони!");
                else set_pev(id, pev_armorvalue, pev(id, pev_armorvalue) - 5.0);
            }
        }
        case 3:
        {
            new Float: fGravity;
            pev(id, pev_gravity, fGravity);
            
            if
(IsSetBit(g_iBitUserIsType[MODE], id))
            {
                if(fGravity <= 0.5) client_print(id, print_center, "Слишком большая гравитация!");
                else 
                
{
                    fGravity -= 0.05;
                    set_pev(id, pev_gravity, fGravity);
                }
            }
            else
            
{
                if(fGravity >= 1.0) client_print(id, print_center, "Слишком маленькая гравитация!");
                else 
                
{
                    fGravity += 0.05;
                    set_pev(id, pev_gravity, fGravity);
                }
            }
        }
        case 4: ExecuteHam(Ham_CS_RoundRespawn, id);
        case 9: return PLUGIN_HANDLED;
    }
    return Show_CreatorMenu(id);
}
public Show_GodModeMenu(id)
{
    jbe_informer_offset_up(id);
    
    new szMenu
[700], iLen;
    iLen = formatex(szMenu[iLen], charsmax(szMenu) - iLen, "y%L^n^n", id, "JBE_GODMODE_TITLE");
    iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "y[1] w%L^n^n", id, "JBE_GODMODE_TYPE", IsNotSetBit(g_iBitUserIsType[MODE], id) ? "Забрать" : "Дать");
    iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "y[2] w%L^n", id, "JBE_GODMODE_HEALTH");
    iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "y[3] w%L^n^n", id, "JBE_GODMODE_ARMOR");
    iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "y[4] w%L^n^n", id, "JBE_GODMODE_GRAVITY");
    iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "y[5] w%sr%L^n^n", g_iDayMode ? "Ночь | ":"День | ", id, "JBE_GODMODE_DEYMODE");
    iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "^ny[0] w%L", id, "JBE_MENU_EXIT");    return show_menu(id, (1<<0|1<<1|1<<2|1<<3|1<<4|1<<9), szMenu, -1, "Show_GodModeMenu");    
}
public Handle_GodModeMenu(id, iNum)
{
    switch(iNum)
    {
        case 0:
        {
            InvertBit(g_iBitUserIsType[MODE], id);
            return Show_GodModeMenu(id);
        }
        case 1:
        {
            g_iGodModeType[id] = 1;
            return Show_GodModeList(id, g_iMenuPosition[id] = 0);
        }
        case 2:
        {
            g_iGodModeType[id] = 2;
            return Show_GodModeList(id, g_iMenuPosition[id] = 0);
        }
        case 3:
        {
            g_iGodModeType[id] = 3;
            return Show_GodModeList(id, g_iMenuPosition[id] = 0);
        }
        case 4:
        {
            DayMode_Setting();
            return Show_GodModeMenu(id);
        }
        case 5: return Show_RespawnMenu(id, g_iMenuPosition[id] = 0);
    }
    return PLUGIN_HANDLED;
}
public Cmd_OpenResspawnMenu(id) Show_RespawnMenu(id, g_iMenuPosition[id] = 0);
public Show_RespawnMenu(id, iPos)
{
    
    if
(iPos < 0) return PLUGIN_HANDLED;
    if(~jbe_get_privileges_flags(id) & FLAGS_GOD && !g_iUserRespawnNum[id])
    {
        client_print(0, print_center, "У Вас закончились попытки возрождения!");
        return Show_KnyazMenu(id);
    }    

    jbe_informer_offset_up

(id);
    new iPlayersNum;
    
    for
(new i = 1; i <= g_iMaxPlayers; i++)
    {
        if(!jbe_get_user_team(i) || jbe_get_user_team(i) >= 3 || jbe_is_user_alive(i)) continue;
        g_iMenuPlayers[id][iPlayersNum++] = i;    
    
}
    new iStart = iPos * 8;
    if(iStart > iPlayersNum) iStart = iPlayersNum;
    iStart = iStart - (iStart % 8);
    g_iMenuPosition[id] = iStart / 8;
    new iEnd = iStart + 8;
    if(iEnd > iPlayersNum) iEnd = iPlayersNum;
    new szMenu[1024], iLen, iPagesNum = (iPlayersNum / 8 + ((iPlayersNum % 8) ? 1 : 0));
    switch(iPagesNum)
    {
        case 0:
        {    
            client_print
(id, print_center, "%L", id, "JBE_CHAT_ID_PLAYERS_NOT_VALID");            
            return PLUGIN_HANDLED
;
        }
        default: iLen = formatex(szMenu, charsmax(szMenu), "y%L w[%d|%d]^n^n", id, "JBE_RESPAWN_MENU", iPos + 1, iPagesNum);
    }
    new szName[32], i, iKeys = (1<<9), b;
    for(new a = iStart; a < iEnd; a++)
    {
        i = g_iMenuPlayers[id][a];
        get_user_name(i, szName, charsmax(szName));
        iKeys |= (1<<b);
        iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "y[%d] w%s^n", ++b, szName);
    }
    for(new i = b; i < 8; i++) iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "^n");
    if(iEnd < iPlayersNum)
    {
        iKeys |= (1<<8);
        formatex(szMenu[iLen], charsmax(szMenu) - iLen, "^ny[9] w%L^ny[0] w%L", id, "JBE_MENU_NEXT", id, iPos ? "JBE_MENU_BACK" : "JBE_MENU_EXIT");
    }
    else formatex(szMenu[iLen], charsmax(szMenu) - iLen, "^n^ny[0] w%L", id, iPos ? "JBE_MENU_BACK" : "JBE_MENU_EXIT");
    return show_menu(id, iKeys, szMenu, -1, "Show_RespawnMenu");
}
public Handle_RespawnMenu(id, iKey)
{
    switch(iKey)
    {
        case 8: return Show_RespawnMenu(id, ++g_iMenuPosition[id]);
        case 9: return Show_RespawnMenu(id, --g_iMenuPosition[id]);
        default:
        {
            new iTarget = g_iMenuPlayers[id][g_iMenuPosition[id] * 8 + iKey];
            
            if
(jbe_is_user_alive(iTarget)) 
            
{
                client_print(id, print_center, "Игрок уже оживлён!");
                return Show_RespawnMenu(id, g_iMenuPosition[id] = 0);
            }
            
            if
(jbe_is_user_connected(iTarget))
            {                
                g_iUserRespawnNum
[id]--;
                ExecuteHam(Ham_CS_RoundRespawn, iTarget);
                new szName[2][32];
                get_user_name(id, szName[0], charsmax(szName[]));
                get_user_name(iTarget, szName[1], charsmax(szName[]));
                
                set_hudmessage
( 102, 69, 0, -1.0, 0.16, 0, 0.0, 0.9, 0.1, 3.0, -);
                for(new pPlayer = 1; pPlayer <= g_iMaxPlayers; pPlayer++)
                {
                    if(!jbe_is_user_connected(pPlayer)) continue;
                    ShowSyncHudMsg( pPlayer, g_iSyncText, "Администратор [ %s ] ^nвозродил игрока [ %s ]", szName[0], szName[1] );
                }            
            
}
            
            return Show_RespawnMenu
(id, g_iMenuPosition[id]);
        }
    }
    return PLUGIN_HANDLED;
}
Show_GodModeList(id, iPos)
{
    if( iPos < 0 ) return PLUGIN_HANDLED;
    jbe_informer_offset_up( id );
    
    new iPlayersNum
;
    for(new i = 1; i <= get_maxplayers(); i++)
    {
        if(!jbe_is_user_alive(i) || jbe_get_user_team(i) >= 3 || !jbe_get_user_team(i)) continue;
        g_iMenuPlayers[id][iPlayersNum++] = i;
    }
    new iStart = iPos * 8;
    if(iStart > iPlayersNum) iStart = iPlayersNum;
    iStart = iStart - (iStart % 8);
    g_iMenuPosition[id] = iStart / 8;
    new iEnd = iStart + 8;
    if(iEnd > iPlayersNum) iEnd = iPlayersNum;
    new szMenu[1024], iLen, iPagesNum = (iPlayersNum / 8 + ((iPlayersNum % 8) ? 1 : 0));
    switch(iPagesNum)
    {
        case 0:
        {
            UTIL_SayText( id, "%L", id, "JBE_CHAT_ID_PLAYERS_NOT_VALID" );
            return Show_GodModeMenu(id);
        }
        default: iLen = formatex(szMenu, charsmax(szMenu), "y%L w[%d|%d]^n^n", id, "JBE_GODMODE_BONUS_MENU", iPos + 1, iPagesNum);
    }
    new szName[32], i, iKeys = (1<<9), b;
    for(new a = iStart; a < iEnd; a++)
    {
        i = g_iMenuPlayers[id][a];
        get_user_name(i, szName, charsmax(szName));
        iKeys |= (1<<b);
        switch(g_iGodModeType[id])
        {
            case 1: iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "y[%d] w%s d[r%dd]^n", ++b, szName, pev(i, pev_health));
            case 2: iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "y[%d] w%sd[r%dd]^n", ++b, szName, pev(i, pev_armorvalue));
            case 3: 
            
{
                new Float: fGravity;
                pev(i, pev_gravity, fGravity);
                iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "y[%d] w%sd[r%fd]^n", ++b, szName, fGravity);
            }
        }
    }
    for(new i = b; i < 8; i++) iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "^n");
    if(iEnd < iPlayersNum)
    {
        iKeys |= (1<<8);
        formatex(szMenu[iLen], charsmax(szMenu) - iLen, "^ny[9] w%L^ny[0] w%L", id, "JBE_MENU_NEXT", id, iPos ? "JBE_MENU_BACK" : "JBE_MENU_EXIT");
    }
    else formatex(szMenu[iLen], charsmax(szMenu) - iLen, "^n^ny[0] w%L", id, iPos ? "JBE_MENU_BACK" : "JBE_MENU_EXIT");
    return show_menu(id, iKeys, szMenu, -1, "Show_GodModeList");
}
public Handle_GodModeList(id, iKey)
{
    switch(iKey)
    {
        case 8: return Show_GodModeList(id, ++g_iMenuPosition[id]);
        case 9: return Show_GodModeList(id, --g_iMenuPosition[id]);
        default:
        {
            new iTarget = g_iMenuPlayers[id][g_iMenuPosition[id] * 8 + iKey];
            
            if
(!jbe_is_user_connected(iTarget)) 
            
{
                client_print(id, print_center, "Игрок отключён!");
                return Show_GodModeList(id, g_iMenuPosition[id] = 0);
            }
            
            if
(!jbe_is_user_alive(iTarget)) 
            
{
                client_print(id, print_center, "Игрок мёртв!");
                return Show_GodModeList(id, g_iMenuPosition[id] = 0);
            }            switch(g_iGodModeType[id])
            {
                case 1:
                {
                    if(IsSetBit(g_iBitUserIsType[MODE], id))
                    {
                        if(pev(iTarget, pev_health) >= 160) client_print(id, print_center, "У игрока много жизней!");
                        else set_pev(iTarget, pev_health, pev(iTarget, pev_health) + 5.0);
                    }
                    else
                    
{
                        if(pev(iTarget, pev_health) < 6) client_print(id, print_center, "У игрока мало жизней!");
                        else set_pev(iTarget, pev_health, pev(iTarget, pev_health) - 5.0);
                    }
                    return Show_GodModeList(id, g_iMenuPosition[id]);
                }
                case 2:
                {
                    if(IsSetBit(g_iBitUserIsType[MODE], id))
                    {
                        if(pev(iTarget, pev_armorvalue) >= 160) client_print(id, print_center, "У игрока много жизней!");
                        else set_pev(iTarget, pev_armorvalue, pev(iTarget, pev_armorvalue) + 5.0);
                    }
                    else
                    
{
                        if(pev(iTarget, pev_armorvalue) < 6) client_print(id, print_center, "У игрока мало жизней!");
                        else set_pev(iTarget, pev_armorvalue, pev(iTarget, pev_armorvalue) - 5.0);
                    }
                    return Show_GodModeList(id, g_iMenuPosition[id]);
                }
                case 3:
                {
                    new Float: fGravity;
                    pev(iTarget, pev_gravity, fGravity);
                    
                    if
(IsSetBit(g_iBitUserIsType[MODE], id))
                    {
                        if(fGravity <= 0.5) client_print(id, print_center, "Слишком большая гравитация!");
                        else 
                        
{
                            fGravity -= 0.05;
                            set_pev(iTarget, pev_gravity, fGravity);
                        }
                    }
                    else
                    
{
                        if(fGravity >= 1.0) client_print(id, print_center, "Слишком маленькая гравитация!");
                        else 
                        
{
                            fGravity += 0.05;
                            set_pev(iTarget, pev_gravity, fGravity);
                        }
                    }
                }
            }
            return Show_GodModeList(id, g_iMenuPosition[id]);
        }
    }
    return PLUGIN_HANDLED;
}
stock DayMode_Setting()
{
    switch(g_iDayMode)
    {
        case false: 
        
{
            engfunc( EngFunc_MessageBegin, MSG_ALL, 143, { 0.0, 0.0, 0.0 }, 0 );
            write_byte(20);          // Red
            write_byte(20);         // Green
            write_byte(20);         // Blue
            write_byte(10);                         // SD
            write_byte(41);                          // ED
            write_byte(95);                          // D1
            write_byte(59);                          // D2
            message_end();    
            g_iDayMode 
= true;
        }
        case true:
        {
            engfunc( EngFunc_MessageBegin, MSG_ALL, 143, { 0.0, 0.0, 0.0 }, 0 );
            write_byte(0);  // Red
            write_byte(0);  // Green
            write_byte(0);  // Blue
            write_byte(0);     // SD
            write_byte(0);  // ED
            write_byte(0);  // D1
            write_byte(0);  // D2
            message_end();
            g_iDayMode = false;
        }
    }
}
stock UTIL_SayText(pPlayer, const szMessage[], any:...)
{
    new szBuffer[ 190 ], iLen = format( szBuffer, charsmax( szBuffer ), "%L ", LANG_PLAYER, "JBE_CHAT_PREFIX" );
    
    if
( numargs() > 2 ) vformat( szBuffer[ iLen ], charsmax( szBuffer ), szMessage, 3 );
    else copy( szBuffer[ iLen ], charsmax( szBuffer ), szMessage );
    
    while
( replace( szBuffer, charsmax( szBuffer ), "!y", "^1" ) ) {}
    while( replace( szBuffer, charsmax( szBuffer ), "!t", "^3" ) ) {}
    while( replace( szBuffer, charsmax( szBuffer ), "!g", "^4" ) ) {}
    
    switch
( pPlayer )
    {
        case 0:
        {
            for( new iPlayer = 1; iPlayer <= g_iMaxPlayers; iPlayer++ )
            {
                if( !jbe_is_user_connected( iPlayer ) ) continue;
                engfunc( EngFunc_MessageBegin, MSG_ONE_UNRELIABLE, 76, { 0.0, 0.0, 0.0 }, iPlayer );
                write_byte( iPlayer );
                write_string( szBuffer );
                message_end();
            }
        }
        default:
        {
            engfunc( EngFunc_MessageBegin, MSG_ONE_UNRELIABLE, 76, { 0.0, 0.0, 0.0 }, pPlayer );
            write_byte( pPlayer );
            write_string( szBuffer );
            message_end();
        }
    }
}
stock fm_give_item(pPlayer, const szItem[])
{
    new iEntity = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, szItem));
    if(!pev_valid(iEntity)) return 0;
    new Float:vecOrigin[3];
    pev(pPlayer, pev_origin, vecOrigin);
    set_pev(iEntity, pev_origin, vecOrigin);
    set_pev(iEntity, pev_spawnflags, pev(iEntity, pev_spawnflags) | SF_NORESPAWN);
    dllfunc(DLLFunc_Spawn, iEntity);
    dllfunc(DLLFunc_Touch, iEntity, pPlayer);
    if(pev(iEntity, pev_solid) != SOLID_NOT)
    {
        engfunc(EngFunc_RemoveEntity, iEntity);
        return -1;
    }
    return iEntity;
}
stock drop_user_weapons(pPlayer, iType)
{
    new iWeaponsId[32], iNum;
    get_user_weapons(pPlayer, iWeaponsId, iNum);
    if(iType) iType = (1<<CSW_GLOCK18|1<<CSW_USP|1<<CSW_P228|1<<CSW_DEAGLE|1<<CSW_ELITE|1<<CSW_FIVESEVEN);
    else iType = (1<<CSW_M3|1<<CSW_XM1014|1<<CSW_MAC10|1<<CSW_TMP|1<<CSW_MP5NAVY|1<<CSW_UMP45|1<<CSW_P90|1<<CSW_GALIL|1<<CSW_FAMAS|1<<CSW_AK47|1<<CSW_M4A1|1<<CSW_SCOUT|1<<CSW_SG552|1<<CSW_AUG|1<<CSW_AWP|1<<CSW_G3SG1|1<<CSW_SG550|1<<CSW_M249);
    for(new i; i < iNum; i++)
    {
        if(iType & (1<<iWeaponsId[i]))
        {
            new szWeaponName[24];
            get_weaponname(iWeaponsId[i], szWeaponName, charsmax(szWeaponName));
            engclient_cmd(pPlayer, "drop", szWeaponName);
        }
    }

P.S. Не знаю зачем пишу, просто на всякий случай, советую искать строки в Notepad++, чтобы не запутаться, да и быстрее

Понравилась статья? Поделить с друзьями:

Читайте также:

  • Error 017 undefined symbol strtok
  • Error 017 undefined symbol string как исправить
  • Error 017 undefined symbol sscanf
  • Error 017 undefined symbol showplayerdialog
  • Error 017 undefined symbol sendername

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии