shape1
shape2
shape3
shape4
shape7
shape8

Ошибки с инклудом.


Статус
Закрыто для дальнейших ответов.

Vlad_Trifonov

Гуру
Пользователь
13.03.2015
1 465
5
331
0
При компилировании мода выдает ошибки, связанные с инклудом (a_samp).

Код:
D:\моды\The Best\The Best RP . Весь донат бесплатен!!!\pawno\include\a_samp.inc(285) : error 025: function heading differs from prototype
D:\моды\The Best\The Best RP . Весь донат бесплатен!!!\pawno\include\a_samp.inc(289) : error 025: function heading differs from prototype
D:\моды\The Best\The Best RP . Весь донат бесплатен!!!\pawno\include\a_samp.inc(290) : error 025: function heading differs from prototype
D:\моды\The Best\The Best RP . Весь донат бесплатен!!!\pawno\include\a_samp.inc(291) : error 025: function heading differs from prototype
D:\моды\The Best\The Best RP . Весь донат бесплатен!!!\pawno\include\a_samp.inc(292) : error 025: function heading differs from prototype
D:\моды\The Best\The Best RP . Весь донат бесплатен!!!\pawno\include\a_samp.inc(293) : error 025: function heading differs from prototype
D:\моды\The Best\The Best RP . Весь донат бесплатен!!!\pawno\include\a_samp.inc(295) : error 025: function heading differs from prototype
D:\моды\The Best\The Best RP . Весь донат бесплатен!!!\pawno\include\a_samp.inc(296) : error 025: function heading differs from prototype
D:\моды\The Best\The Best RP . Весь донат бесплатен!!!\pawno\include\a_samp.inc(297) : error 025: function heading differs from prototype
D:\моды\The Best\The Best RP . Весь донат бесплатен!!!\pawno\include\a_samp.inc(298) : error 025: function heading differs from prototype
D:\моды\The Best\The Best RP . Весь донат бесплатен!!!\pawno\include\a_samp.inc(299) : error 025: function heading differs from prototype
D:\моды\The Best\The Best RP . Весь донат бесплатен!!!\pawno\include\a_samp.inc(300) : error 025: function heading differs from prototype
D:\моды\The Best\The Best RP . Весь донат бесплатен!!!\pawno\include\a_samp.inc(301) : error 025: function heading differs from prototype
D:\моды\The Best\The Best RP . Весь донат бесплатен!!!\pawno\include\a_samp.inc(302) : error 025: function heading differs from prototype
D:\моды\The Best\The Best RP . Весь донат бесплатен!!!\pawno\include\a_samp.inc(303) : error 025: function heading differs from prototype
D:\моды\The Best\The Best RP . Весь донат бесплатен!!!\pawno\include\a_samp.inc(304) : error 025: function heading differs from prototype
D:\моды\The Best\The Best RP . Весь донат бесплатен!!!\pawno\include\a_samp.inc(305) : error 025: function heading differs from prototype
D:\моды\The Best\The Best RP . Весь донат бесплатен!!!\pawno\include\a_samp.inc(307) : error 025: function heading differs from prototype
D:\моды\The Best\The Best RP . Весь донат бесплатен!!!\pawno\include\a_samp.inc(308) : error 025: function heading differs from prototype
D:\моды\The Best\The Best RP . Весь донат бесплатен!!!\pawno\include\a_samp.inc(309) : error 025: function heading differs from prototype
D:\моды\The Best\The Best RP . Весь донат бесплатен!!!\pawno\include\a_samp.inc(314) : error 025: function heading differs from prototype
D:\моды\The Best\The Best RP . Весь донат бесплатен!!!\pawno\include\a_samp.inc(316) : error 025: function heading differs from prototype
D:\моды\The Best\The Best RP . Весь донат бесплатен!!!\pawno\include\a_samp.inc(317) : error 025: function heading differs from prototype
D:\моды\The Best\The Best RP . Весь донат бесплатен!!!\pawno\include\a_samp.inc(319) : error 025: function heading differs from prototype
Код:
 
/* SA-MP Functions

*

* (c) Copyright 2005-2012, SA-MP Team

*

*/



#if defined _samp_included

#endinput

#endif

#define _samp_included

#pragma library samp



#pragma tabsize 4

// Ignores warning 217 for properly indented PAWNO code

// It's tab size is 4 and often uses 4 spaces instead, PAWNCC's is 8



#include <core>

#include <float>

#include <string>

#include <file>

#include <time>

#include <datagram>

#include <a_players>

#include <a_vehicles>

#include <a_objects>

#include <a_sampdb>



// Limits and internal constants

#define MAX_PLAYER_NAME (24)

#define MAX_PLAYERS (500)

#define MAX_VEHICLES (2000)

#define INVALID_PLAYER_ID (0xFFFF)

#define INVALID_VEHICLE_ID (0xFFFF)

#define NO_TEAM (255)

#define MAX_OBJECTS (1000)

#define INVALID_OBJECT_ID (0xFFFF)

#define MAX_GANG_ZONES (1024)

#define MAX_TEXT_DRAWS (2048)

#define MAX_PLAYER_TEXT_DRAWS (256)

#define MAX_MENUS (128)

#define MAX_3DTEXT_GLOBAL (1024)

#define MAX_3DTEXT_PLAYER (1024)

#define MAX_PICKUPS (4096)

#define INVALID_MENU (0xFF)

#define INVALID_TEXT_DRAW (0xFFFF)

#define INVALID_GANG_ZONE (-1)

#define INVALID_3DTEXT_ID (0xFFFF)



// --------------------------------------------------

// Natives

// --------------------------------------------------



// Util

native print(const string[]);

native printf(const format[], {Float,_}:...);

native format(output[], len, const format[], {Float,_}:...);

native SendClientMessage(playerid, color, const message[]);

#define SCM SendClientMessage//не удалять

native SendClientMessageToAll(color, const message[]);

native SendPlayerMessageToPlayer(playerid, senderid, const message[]);

native SendPlayerMessageToAll(senderid, const message[]);

native SendDeathMessage(killer,killee,weapon);

native GameTextForAll(const string[],time,style);

native GameTextForPlayer(playerid,const string[],time,style);

native SetTimer(funcname[], interval, repeating);

native SetTimerEx(funcname[], interval, repeating, const format[], {Float,_}:...);

native KillTimer(timerid);

native GetTickCount();

native GetMaxPlayers();

native CallRemoteFunction(const function[], const format[], {Float,_}:...);

native CallLocalFunction(const function[], const format[], {Float,_}:...);

native Float:asin(Float:value);

native Float:acos(Float:value);

native Float:atan(Float:value);

native Float:atan2(Float:x, Float:y);



// Game

native SetGameModeText(const string[]);

native SetTeamCount(count);

native AddPlayerClass(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo);

native AddPlayerClassEx(teamid, modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo);

native AddStaticVehicle(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, color1, color2);

native AddStaticVehicleEx(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, color1, color2, respawn_delay);

native AddStaticPickup(model, type, Float:X, Float:Y, Float:Z, virtualworld = 0);

native CreatePickup(model, type, Float:X, Float:Y, Float:Z, virtualworld = 0);

native DestroyPickup(pickup);

native ShowNameTags(show);

native ShowPlayerMarkers(mode);

native GameModeExit();

native SetWorldTime(hour);

native GetWeaponName(weaponid, const weapon[], len);

native EnableTirePopping(enable);

native AllowInteriorWeapons(allow);

native SetWeather(weatherid);

native SetGravity(Float:gravity);

native AllowAdminTeleport(allow);

native SetDeathDropAmount(amount);

native CreateExplosion(Float:X, Float:Y, Float:Z, type, Float:Radius);

native EnableZoneNames(enable);

native UsePlayerPedAnims(); // Will cause the players to use CJ running/walking animations

native DisableInteriorEnterExits(); // will disable all interior enter/exits in the game.

native SetNameTagDrawDistance(Float:distance); // Distance at which nametags will start rendering on the client.

native DisableNameTagLOS(); // Disables the nametag Line-Of-Sight checking

native LimitGlobalChatRadius(Float:chat_radius);

native LimitPlayerMarkerRadius(Float:marker_radius);



// Npc

native ConnectNPC(name[], script[]);

native IsPlayerNPC(playerid);



// Admin

native IsPlayerAdmin(playerid);

native Kick(playerid);

native Ban(playerid);

native BanEx(playerid, const reason[]);

native SendRconCommand(command[]);

native GetServerVarAsString(const varname[], buffer[], len);

native GetServerVarAsInt(const varname[]);

native GetServerVarAsBool(const varname[]);

native GetPlayerNetworkStats(playerid, retstr[], retstr_size);

native GetNetworkStats(retstr[], retstr_size);

native GetPlayerVersion(playerid, const version[], len); // Returns the SA-MP client revision as reported by the player



// Menu

native Menu:CreateMenu(const title[], columns, Float:x, Float:y, Float:col1width, Float:col2width = 0.0);

native DestroyMenu(Menu:menuid);

native AddMenuItem(Menu:menuid, column, const menutext[]);

native SetMenuColumnHeader(Menu:menuid, column, const columnheader[]);

native ShowMenuForPlayer(Menu:menuid, playerid);

native HideMenuForPlayer(Menu:menuid, playerid);

native IsValidMenu(Menu:menuid);

native DisableMenu(Menu:menuid);

native DisableMenuRow(Menu:menuid, row);

native Menu:GetPlayerMenu(playerid);



// Text Draw

native Text:TextDrawCreate(Float:x, Float:y, text[]);

native TextDrawDestroy(Text:text);

native TextDrawLetterSize(Text:text, Float:x, Float:y);

native TextDrawTextSize(Text:text, Float:x, Float:y);

native TextDrawAlignment(Text:text, alignment);

native TextDrawColor(Text:text, color);

native TextDrawUseBox(Text:text, use);

native TextDrawBoxColor(Text:text, color);

native TextDrawSetShadow(Text:text, size);

native TextDrawSetOutline(Text:text, size);

native TextDrawBackgroundColor(Text:text, color);

native TextDrawFont(Text:text, font);

native TextDrawSetProportional(Text:text, set);

native TextDrawSetSelectable(Text:text, set);

native TextDrawShowForPlayer(playerid, Text:text);

native TextDrawHideForPlayer(playerid, Text:text);

native TextDrawShowForAll(Text:text);

native TextDrawHideForAll(Text:text);

native TextDrawSetString(Text:text, string[]);



// Gang Zones

native GangZoneCreate(Float:minx, Float:miny, Float:maxx, Float:maxy);

native GangZoneDestroy(zone);

native GangZoneShowForPlayer(playerid, zone, color);

native GangZoneShowForAll(zone, color);

native GangZoneHideForPlayer(playerid, zone);

native GangZoneHideForAll(zone);

native GangZoneFlashForPlayer(playerid, zone, flashcolor);

native GangZoneFlashForAll(zone, flashcolor);

native GangZoneStopFlashForPlayer(playerid, zone);

native GangZoneStopFlashForAll(zone);



// Global 3D Text Labels

native Text3D:Create3DTextLabel(text[], color, Float:X, Float:Y, Float:Z, Float:DrawDistance, virtualworld, testLOS=0);

native Delete3DTextLabel(Text3D:id);

native Attach3DTextLabelToPlayer(Text3D:id, playerid, Float:OffsetX, Float:OffsetY, Float:OffsetZ);

native Attach3DTextLabelToVehicle(Text3D:id, vehicleid, Float:OffsetX, Float:OffsetY, Float:OffsetZ);

native Update3DTextLabelText(Text3D:id, color, text[]);



// Per-player 3D Text Labels

native PlayerText3D:CreatePlayer3DTextLabel(playerid, text[], color, Float:X, Float:Y, Float:Z, Float:DrawDistance, attachedplayer=INVALID_PLAYER_ID, attachedvehicle=INVALID_VEHICLE_ID, testLOS=0);

native DeletePlayer3DTextLabel(playerid, PlayerText3D:id);

native UpdatePlayer3DTextLabelText(playerid, PlayerText3D:id, color, text[]);



// Player GUI Dialog

#define DIALOG_STYLE_MSGBOX 0

#define DIALOG_STYLE_INPUT 1

#define DIALOG_STYLE_LIST 2

#define DIALOG_STYLE_PASSWORD 3



native ShowPlayerDialog(playerid, dialogid, style, caption[], info[], button1[], button2[]);



// --------------------------------------------------

// Defines

// --------------------------------------------------



// States

#define PLAYER_STATE_NONE (0)

#define PLAYER_STATE_ONFOOT (1)

#define PLAYER_STATE_DRIVER (2)

#define PLAYER_STATE_PASSENGER (3)

#define PLAYER_STATE_EXIT_VEHICLE (4) // (used internally)

#define PLAYER_STATE_ENTER_VEHICLE_DRIVER (5) // (used internally)

#define PLAYER_STATE_ENTER_VEHICLE_PASSENGER (6) // (used internally)

#define PLAYER_STATE_WASTED (7)

#define PLAYER_STATE_SPAWNED (8)

#define PLAYER_STATE_SPECTATING (9)



// Marker modes used by ShowPlayerMarkers()

#define PLAYER_MARKERS_MODE_OFF (0)

#define PLAYER_MARKERS_MODE_GLOBAL (1)

#define PLAYER_MARKERS_MODE_STREAMED (2)



// Weapons

#define WEAPON_BRASSKNUCKLE (1)

#define WEAPON_GOLFCLUB (2)

#define WEAPON_NITESTICK (3)

#define WEAPON_KNIFE (4)

#define WEAPON_BAT (5)

#define WEAPON_SHOVEL (6)

#define WEAPON_POOLSTICK (7)

#define WEAPON_KATANA (8)

#define WEAPON_CHAINSAW (9)

#define WEAPON_DILDO (10)

#define WEAPON_DILDO2 (11)

#define WEAPON_VIBRATOR (12)

#define WEAPON_VIBRATOR2 (13)

#define WEAPON_FLOWER (14)

#define WEAPON_CANE (15)

#define WEAPON_GRENADE (16)

#define WEAPON_TEARGAS (17)

#define WEAPON_MOLTOV (18)

#define WEAPON_COLT45 (22)

#define WEAPON_SILENCED (23)

#define WEAPON_DEAGLE (24)

#define WEAPON_SHOTGUN (25)

#define WEAPON_SAWEDOFF (26)

#define WEAPON_SHOTGSPA (27)

#define WEAPON_UZI (28)

#define WEAPON_MP5 (29)

#define WEAPON_AK47 (30)

#define WEAPON_M4 (31)

#define WEAPON_TEC9 (32)

#define WEAPON_RIFLE (33)

#define WEAPON_SNIPER (34)

#define WEAPON_ROCKETLAUNCHER (35)

#define WEAPON_HEATSEEKER (36)

#define WEAPON_FLAMETHROWER (37)

#define WEAPON_MINIGUN (38)

#define WEAPON_SATCHEL (39)

#define WEAPON_BOMB (40)

#define WEAPON_SPRAYCAN (41)

#define WEAPON_FIREEXTINGUISHER (42)

#define WEAPON_CAMERA (43)

#define WEAPON_PARACHUTE (46)

#define WEAPON_VEHICLE (49)

#define WEAPON_DROWN (53)

#define WEAPON_COLLISION (54)



// Keys

#define KEY_ACTION (1)

#define KEY_CROUCH (2)

#define KEY_FIRE (4)

#define KEY_SPRINT (8)

#define KEY_SECONDARY_ATTACK (16)

#define KEY_JUMP (32)

#define KEY_LOOK_RIGHT (64)

#define KEY_HANDBRAKE (128)

#define KEY_LOOK_LEFT (256)

#define KEY_SUBMISSION (512)

#define KEY_LOOK_BEHIND (512)

#define KEY_WALK (1024)

#define KEY_ANALOG_UP (2048)

#define KEY_ANALOG_DOWN (4096)

#define KEY_ANALOG_LEFT (8192)

#define KEY_ANALOG_RIGHT (16384)

#define KEY_YES (65536)

#define KEY_NO (131072)

#define KEY_CTRL_BACK (262144)



#define KEY_UP (-128)

#define KEY_DOWN (128)

#define KEY_LEFT (-128)

#define KEY_RIGHT (128)

main()

{

print("Загруза игрового мода...");

}

// --------------------------------------------------

// Forwards (Callback declarations)

// --------------------------------------------------



forward OnGameModeInit();

forward OnGameModeExit();

forward OnFilterScriptInit();

forward OnFilterScriptExit();

forward OnPlayerConnect(playerid);

forward OnPlayerDisconnect(playerid, reason);

forward OnPlayerSpawn(playerid);

forward OnPlayerDeath(playerid, killerid, reason);

forward OnVehicleSpawn(vehicleid);

forward OnVehicleDeath(vehicleid, killerid);

forward OnPlayerText(playerid, text[]);

forward OnPlayerCommandText(playerid, cmdtext[]);

forward OnPlayerRequestClass(playerid, classid);

forward OnPlayerEnterVehicle(playerid, vehicleid, ispassenger);

forward OnPlayerExitVehicle(playerid, vehicleid);

forward OnPlayerStateChange(playerid, newstate, oldstate);

forward OnPlayerEnterCheckpoint(playerid);

forward OnPlayerLeaveCheckpoint(playerid);

forward OnPlayerEnterRaceCheckpoint(playerid);

forward OnPlayerLeaveRaceCheckpoint(playerid);

forward OnRconCommand(cmd[]);

forward OnPlayerRequestSpawn(playerid);

forward OnObjectMoved(objectid);

forward OnPlayerObjectMoved(playerid, objectid);

forward OnPlayerPickUpPickup(playerid, pickupid);

forward OnVehicleMod(playerid, vehicleid, componentid);

forward OnEnterExitModShop(playerid, enterexit, interiorid);

forward OnVehiclePaintjob(playerid, vehicleid, paintjobid);

forward OnVehicleRespray(playerid, vehicleid, color1, color2);

forward OnVehicleDamageStatusUpdate(vehicleid, playerid);

forward OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat);

forward OnPlayerSelectedMenuRow(playerid, row);

forward OnPlayerExitedMenu(playerid);

forward OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid);

forward OnPlayerKeyStateChange(playerid, newkeys, oldkeys);

forward OnRconLoginAttempt( ip[], password[], success );

forward OnPlayerUpdate(playerid);

forward OnPlayerStreamIn(playerid, forplayerid);

forward OnPlayerStreamOut(playerid, forplayerid);

forward OnVehicleStreamIn(vehicleid, forplayerid);

forward OnVehicleStreamOut(vehicleid, forplayerid);

forward OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]);

forward OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid);

forward OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid);

forward OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ);

forward OnPlayerClickTextDraw(playerid, Text:clickedid);

forward OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid);



#define CLICK_SOURCE_SCOREBOARD 0

forward OnPlayerClickPlayer(playerid, clickedplayerid, source);



#define EDIT_RESPONSE_CANCEL 0

#define EDIT_RESPONSE_FINAL 1

#define EDIT_RESPONSE_UPDATE 2



forward OnPlayerEditObject( playerid, playerobject, objectid, response,

Float:fX, Float:fY, Float:fZ, Float:fRotX, Float:fRotY, Float:fRotZ );



forward OnPlayerEditAttachedObject( playerid, response, index, modelid, boneid,

Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ,

Float:fRotX, Float:fRotY, Float:fRotZ,

Float:fScaleX, Float:fScaleY, Float:fScaleZ );



#define SELECT_OBJECT_GLOBAL_OBJECT 1

#define SELECT_OBJECT_PLAYER_OBJECT 2



forward OnPlayerSelectObject(playerid, type, objectid, modelid, Float:fX, Float:fY, Float:fZ);

//==============================

#include <a_npc>

#include <MxINI>

#include <mxdate>

#include <streamer>

#include <core>

#include <float>

#include <time>

#include <file>

#include <a_objects>

#include <morphinc>

#include <utils>//копам

#include <foreach>

#include <objects>//все объекты тут

//==============================================================================

#define RADIO 3000

#define DIALOGUNBAN 1

#define SPECIAL_ACTION_PISSING 68

#define MAX_SWEARS 100

#define STR 100

#define MAX_SPEEDOM 100

#define SetPlayerHoldingObject(%1,%2,%3,%4,%5,%6,%7,%8,%9) SetPlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJECTS-1,%2,%3,%4,%5,%6,%7,%8,%9)

#define StopPlayerHoldingObject(%1) RemovePlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJECTS-1)

#define DIA_CREATP 13

#define DIA_CREATP2 14

#define DIA_CREATP3 15

#define DIA_CREATP4 16

#define DIA_CREATPICKUP 17

#define StartPlayerAnimation ApplyAnimation

#define DIALOGUNBAN 1

#define MenuAvto 2500

#define MAX_SPEEDO 0.6

#define SLOW_FACTOR 0.9

#define BE_MIN_HLS 500.00

#define BE_MAX_SPD_VAR 50

#define BE_MAX_SPD BE_MAX_SPD_VAR*0.005

#define SLOT 1

#define ARMOUR_INDEX 4

#define COLOR_ZAO 0x4592DEAA

#define clYellow 0xFFFF00FF

#define COLOR_WHITE 0xFFFFFFAA

#define COLOR_F 0x056CCFF

#define COLOR_YELLOW3d 0xFFFF00FF

#define COLOR_LIGHT_BLUE 0x9FB1EEAA

#define MAX_CONUS 120

#define MAX_STINGERS 40

#define COLOR_BLUEAQUA 0x7E60FFFF

#define fixchars(%1) for(new charfixloop=0;charfixloop<strlen(%1);charfixloop++)if(%1[charfixloop]<0)%1[charfixloop]+=256//этот дефаин предназначен для того чтобы писать в /cnn по русски!

#define MAX_STRING 255

#define CHECKPOINT_NONE 0

#define CHECKPOINT_GPS 0

#define CHECKPOINT_HOME 12

#include <MxINI>

#include <mxdate>

//==============================================================================

#define HelpMenu 123

#define MAX_UCHECK 3

#define MAX_PCHECK 5

#define START_JOB 2

#define JOB_CASH 350

//==============================================================================

#define TEAM_CYAN 1

#define TEAM_BLUE 2

#define TEAM_GREEN 3

#define TEAM_ORANGE 4

#define TEAM_COR 5

#define TEAM_BAR 6

#define TEAM_TAT 7

#define TEAM_CUN 8

#define TEAM_STR 9

#define TEAM_HIT 10

#define TEAM_ADMIN 11

#define TEAM_AVTOBUSNOE_PREDPRIYTU 12

#define TEAM_EL_CORONAS 13

#define TEAM_VAGOS 14

#define TEAM_RUSSIAN_MAFIA 15

#define TEAM_THE_BALLAS 16

#define TEAM_BLOODZ 17

#define TEAM_CRIPZ 18

#define TEAM_RIFA 19

#define TEAM_XERSON 25

#define TEAM_Dps 21

#define ADMIN_SPEC_TYPE_NONE 0

#define ADMIN_SPEC_TYPE_PLAYER 1

#define ADMIN_SPEC_TYPE_VEHICLE 1

#define MAX_NUMBER_PLATE 16

#define NUMBER_PLATE_CONST 1300

#define OWNED_CAR_RESPAWN_DELAY 12*60*60

#define MAX_REASON_STRING 32

#pragma unused GetPointDistanceToPointExMorph

//==============================================================================

#define CHECKPOINT_NONE 0

#define CHECKPOINT_HOME 12

#pragma tabsize 0

#define REOWN_TURF 4

#define TEAM_GROVE 0

#define timersek 5

#define red 0xAA3333AA

#define Guardal

#define MAX_NICK_ALLOWED_CHARS 65

#define COLOR_ISPOLZUY 0x7FB151FF



#pragma dynamic 100000

#define SCMToAll SendClientMessageToAll

#define CALLBACK:%0(%1) forward%0(%1); public%0(%1)//НЕ УДАЛЯТЬ!

#define PRESSED(%0) (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))

//==============================Xenon===========================================

new carroid[MAX_PLAYERS];

new xenonazul1[MAX_PLAYERS];

new xenonazul2[MAX_PLAYERS];

new xenonazul3[MAX_PLAYERS];

new xenonazul4[MAX_PLAYERS];

new xenonverde1[MAX_PLAYERS];

new xenonverde2[MAX_PLAYERS];

new xenonverde3[MAX_PLAYERS];

new xenonverde4[MAX_PLAYERS];

new xenonrojo1[MAX_PLAYERS];

new xenonrojo2[MAX_PLAYERS];

new xenonrojo3[MAX_PLAYERS];

new xenonrojo4[MAX_PLAYERS];



enum Info

{



xenonazulb,

xenonrojob,

xenonverdeb,



};



new bites[MAX_PLAYERS][Info];

//=========[Система гаражей]==================

#define GARAGE_X 2388.3000500

#define GARAGE_Y -2062.1999500

#define GARAGE_Z -11.3000000

#define GARAGE_A 0.1007

#define GARAGE_INT 1

enum gInfo

{

gOwner[32],

gPrice,

gLock,

Float:gX,

Float:gY,

Float:gZ,

Float:gA

};

new Garage[200][gInfo];

new TOTALGARAGE;

new Text3D:Text3DCar[200];

//======================Вид от 1-го лица========================================

new test[MAX_PLAYERS];



enum CameraObjects

{

camobj

};



new Player[MAX_PLAYERS][CameraObjects];



enum DashBoardEnum

{

modelid,

Float:cam_x,

Float:cam_y,

Float:cam_z

};



new DashBoards[][DashBoardEnum] =

{

{ 410, -0.30, -0.25, 0.48 }, // Manana

{ 404, -0.35, -0.10, 0.53 }, // Perreniel

{ 405, -0.35, -0.10, 0.47 }, // Perreniel

{ 409, -0.35, -0.10, 0.50 }, // Perreniel

{ 575, -0.35, -0.15, 0.68 }, // Broadway

{ 466, -0.38, -0.15, 0.68 }, // 535 беха

{ 551, -0.30, -0.07, 0.95 }, // Волга 105

{ 401, -0.40, -0.00, 0.32 }, // Bravura

{ 478, -0.40, -0.00, 0.32 }, // Каблук

{ 419, -0.40, -0.25, 0.40 }, // Esperanto

{ 474, -0.47, -0.30, 0.52 }, // Hermes

{ 518, -0.53, -0.22, 0.43 }, // Buccaneer

{ 516, -0.47, -0.15, 0.68 }, // Nebula

{ 491, -0.40, -0.25, 0.44 }, // Virgo

{ 566, -0.45, -0.03, 0.55 }, // Tahoma

{ 535, -0.35, -0.15, 0.62 }, // Slamvan

{ 467, -0.45, -0.23, 0.40 }, // Oceanic

{ 492, -0.45, -0.20, 0.68 }, // Greenwood

{ 426, -0.45, -0.12, 0.54 }, // Premier

{ 427, -0.45,0.63, 0.55 }, // Газель

{ 428, -0.45,1.27, 0.73 }, // Газель2

{ 505, -0.45, -0.35, 0.68 }, // Rancher

{ 546, -0.45, -0.12, 0.56 }, // Москвич

{ 547, -0.45, -0.12, 0.43 }, // Москвич2

{ 549, -0.45, -0.09, 0.43 }, // Запор

{ 555, -0.45, -0.09, 0.43 }, // Запор2

{ 533, -0.45, -0.33, 0.56 }, // Feltzer

{ 496, -0.45, -0.37, 0.51 }, // Blista

{ 542, -0.45, -0.30, 0.61 }, // Нива

{ 589, -0.45, -0.31, 0.73 }, // Club

{ 565, -0.45, -0.25, 0.68 }, // Flash

{ 587, -0.45, -0.38, 0.44 }, // Euros

{ 412, -0.45, -0.19, 0.52 }, // Voodoo

{ 420, -0.45, -0.16, 0.52 }, // ВОлга Старая

{ 596, -0.45, -0.06, 0.52 }, // ВОлга Старая (Полиция)

{ 597, -0.45, -0.06, 0.52 }, // 99 (Полиция)

{ 507, -0.45, -0.04, 0.52 }, // ВОлга3

{ 540, -0.45, -0.04, 0.52 }, // ВОлга Новее

{ 439, -0.45, -0.20, 0.45 }, // Stallion

{ 534, -0.50, -0.2, 0.42 }, // Remington

{ 602, -0.45, -0.25, 0.40 }, // Alpha

{ 536, -0.45, -0.25, 0.42 }, // Blade

{ 475, -0.45, 0.06, 0.70 }, // Sabre

{ 436, -0.34, -0.12, 0.52 }, // Previon

{ 438, -0.34, -0.10, 0.52 }, // Волга Такси

{ 445, -0.34, -0.07, 0.52 }, // Волга

{ 479, -0.34, -0.07, 0.52 }, // Волга 2

{ 485, -0.34, -0.07, 0.52 }, // Волга 2

{ 489, -0.34, -0.03, 0.52 }, // Шивроле-Нива

{ 599, -0.34, -0.03, 0.52 }, // УАЗ - Полиция

{ 500, -0.34, -0.03, 0.52 }, // Джипик

{ 585, -0.45, -0.26, 0.66 }, // Emperor

{ 600, -0.45, -0.18, 0.51 }, // Picador

{ 421, -0.38, -0.07, 0.45 }, // Washington

{ 580, -0.45, -0.26, 0.69 }, // Stafford

{ 458, -0.45, -0.10, 0.60 }, // Solair

{ 561, -0.37, -0.08, 0.43 }, // Stratum

{ 517, -0.45, -0.26, 0.54 }, // Majestic

{ 526, -0.40, -0.25, 0.37 }, // Fortune

{ 576, -0.35, -0.30, 0.58 }, // Tornado

{ 579, -0.45, -0.33, 0.85 }, // Huntley

{ 558, -0.37, -0.34, 0.59 }, // Uranus

{ 603, -0.47, -0.44, 0.35 }, // Phoenix

{ 560, -0.37, -0.20, 0.58 }, // Sultan

{ 559, -0.40, -0.40, 0.50 }, // Jester

{ 598, -0.40, -0.20, 0.50 }, // Селика

{ 400, -0.40, -0.25, 0.70 }, // х5

{ 506, -0.39, -0.43, 0.37 }, // Super GT

{ 562, -0.36, -0.34, 0.53 }, // Elegy

{ 477, -0.40, -0.35, 0.47 }, // ZR-350

{ 402, -0.44, -0.27, 0.50 }, // Опель

{ 415, -0.36, -0.32, 0.32 }, // Cheetah

{ 451, -0.36, -0.32, 0.32 }, // Turismo

{ 541, -0.36, -0.20, 0.40 }, // Bullet

{ 429, -0.40,0.01, 0.45 }, // Banshee

{ 411, -0.39, -0.21, 0.40 },

{ 401, -0.39, -0.21, 0.40 } // Infernus

};

new Text:Textdraw4[MAX_PLAYERS];

stock GameText(playerid, text[], time)

{

TextDrawShowForPlayer(playerid,Textdraw4[playerid]);

TextDrawSetString(Textdraw4[playerid], FixText(text[playerid]));

SetTimerEx("Privetstvie", time*1000 , false, "i", playerid);

return 1;

}

stock strtok(const strrr[], &index,seperator= ' ')// strtok для того чтобы работали команды

{

new length = strlen(strrr);

new offset = index;

new result[128];

while ((index < length) && (strrr[index] != seperator) && ((index - offset) < (sizeof(result) - 1)))

{

result[index - offset] = strrr[index];

index++;

}

result[index - offset] = EOS;

if ((index < length) && (strrr[index] == seperator))index++;

return result;

}

#include <a_include>
 
Последнее редактирование модератором:
A

Amfy

Гость
Гость
Покажи как прописан, а лучше все инклуды покажи как прописаны.

 
A

Amfy

Гость
Гость
Ну, покажи тогда его. Покажи короче первые 10 строчек мода.

 

Vlad_Trifonov

Гуру
Пользователь
13.03.2015
1 465
5
331
0


Вот:

Код:
#define forEx(%0,%1) for(new %0; %0 != %1; %0++)
static gTeam[MAX_PLAYERS];
//--------------------------------------------
#define NameServer_RP "ZoOoM RolePlay"
#define NameServer_RolePlay "ZoOoM RolePlay"
#define MODETEXT "ZM v1.2.2"
#include <a_samp>
//
#define vTimer 1 // Таймер в минутах
#define vMaxN 1000 // Максимальное число
#define vMaxP 20000 // Максимальный приз
new Viktorina = -5415614561541;
#define PRICE 800
 
Последнее редактирование модератором:
A

Amfy

Гость
Гость
Первой строкой должен идти инклуд a_samp, потом уже всё остальное.

 

Vlad_Trifonov

Гуру
Пользователь
13.03.2015
1 465
5
331
0
, Нет, не помогло. Вписывал и другие инклуды, которые в папке include, все равно не помогло.

 
A

Amfy

Гость
Гость
@Vlad_Trifonov, покажи опять первые 10 строчек и какие сейчас ошибки?

 

Vlad_Trifonov

Гуру
Пользователь
13.03.2015
1 465
5
331
0
,

Код:
#include <a_samp>
#include <a_http>
#include <a_objects>
#include <a_players>
#include <a_mysql>
#define forEx(%0,%1) for(new %0; %0 != %1; %0++)
static gTeam[MAX_PLAYERS];
//--------------------------------------------
#define NameServer_RP "ZoOoM RolePlay"
#define NameServer_RolePlay "ZoOoM RolePlay"
#define MODETEXT "ZM v1.2.2"
//
#define vTimer 1 // Таймер в минутах
#define vMaxN 1000 // Максимальное число
#define vMaxP 20000 // Максимальный приз
new Viktorina = -5415614561541;
#define PRICE 800
Код:
D:\моды\The Best\The Best RP . Весь донат бесплатен!!!\pawno\include\a_samp.inc(285) : error 025: function heading differs from prototype
D:\моды\The Best\The Best RP . Весь донат бесплатен!!!\pawno\include\a_samp.inc(289) : error 025: function heading differs from prototype
D:\моды\The Best\The Best RP . Весь донат бесплатен!!!\pawno\include\a_samp.inc(290) : error 025: function heading differs from prototype
D:\моды\The Best\The Best RP . Весь донат бесплатен!!!\pawno\include\a_samp.inc(291) : error 025: function heading differs from prototype
D:\моды\The Best\The Best RP . Весь донат бесплатен!!!\pawno\include\a_samp.inc(292) : error 025: function heading differs from prototype
D:\моды\The Best\The Best RP . Весь донат бесплатен!!!\pawno\include\a_samp.inc(293) : error 025: function heading differs from prototype
D:\моды\The Best\The Best RP . Весь донат бесплатен!!!\pawno\include\a_samp.inc(295) : error 025: function heading differs from prototype
D:\моды\The Best\The Best RP . Весь донат бесплатен!!!\pawno\include\a_samp.inc(296) : error 025: function heading differs from prototype
D:\моды\The Best\The Best RP . Весь донат бесплатен!!!\pawno\include\a_samp.inc(297) : error 025: function heading differs from prototype
D:\моды\The Best\The Best RP . Весь донат бесплатен!!!\pawno\include\a_samp.inc(298) : error 025: function heading differs from prototype
D:\моды\The Best\The Best RP . Весь донат бесплатен!!!\pawno\include\a_samp.inc(299) : error 025: function heading differs from prototype
D:\моды\The Best\The Best RP . Весь донат бесплатен!!!\pawno\include\a_samp.inc(300) : error 025: function heading differs from prototype
D:\моды\The Best\The Best RP . Весь донат бесплатен!!!\pawno\include\a_samp.inc(301) : error 025: function heading differs from prototype
D:\моды\The Best\The Best RP . Весь донат бесплатен!!!\pawno\include\a_samp.inc(302) : error 025: function heading differs from prototype
D:\моды\The Best\The Best RP . Весь донат бесплатен!!!\pawno\include\a_samp.inc(303) : error 025: function heading differs from prototype
D:\моды\The Best\The Best RP . Весь донат бесплатен!!!\pawno\include\a_samp.inc(304) : error 025: function heading differs from prototype
D:\моды\The Best\The Best RP . Весь донат бесплатен!!!\pawno\include\a_samp.inc(305) : error 025: function heading differs from prototype
D:\моды\The Best\The Best RP . Весь донат бесплатен!!!\pawno\include\a_samp.inc(307) : error 025: function heading differs from prototype
D:\моды\The Best\The Best RP . Весь донат бесплатен!!!\pawno\include\a_samp.inc(308) : error 025: function heading differs from prototype
D:\моды\The Best\The Best RP . Весь донат бесплатен!!!\pawno\include\a_samp.inc(309) : error 025: function heading differs from prototype
D:\моды\The Best\The Best RP . Весь донат бесплатен!!!\pawno\include\a_samp.inc(314) : error 025: function heading differs from prototype
D:\моды\The Best\The Best RP . Весь донат бесплатен!!!\pawno\include\a_samp.inc(316) : error 025: function heading differs from prototype
D:\моды\The Best\The Best RP . Весь донат бесплатен!!!\pawno\include\a_samp.inc(317) : error 025: function heading differs from prototype
D:\моды\The Best\The Best RP . Весь донат бесплатен!!!\pawno\include\a_samp.inc(319) : error 025: function heading differs from prototype
D:\моды\The Best\The Best RP . Весь донат бесплатен!!!\pawno\include\a_samp.inc(321) : error 025: function heading differs from prototype
D:\моды\The Best\The Best RP . Весь донат бесплатен!!!\pawno\include\a_samp.inc(324) : error 025: function heading differs from prototype
 
A

Amfy

Гость
Гость
Кинь весь сервер в архиве.

 
A

Amfy

Гость
Гость
Всё отлично компилируется, есть только один варнинг.

Код:
warning 204: symbol is assigned a value that is never used: "vehmodel"
 

Vlad_Trifonov

Гуру
Пользователь
13.03.2015
1 465
5
331
0
, Извиняюсь.Что-то я там сам накуралесил.

 
Статус
Закрыто для дальнейших ответов.