[Include] weapon-config.inc - Damage system with many features

@justice: The point of including this before all other includes (not SA-MP includes) is because it hooks a lot of functions and callbacks. If other includes modify those functions or callbacks that can mess with the integrity of this.

This is also why I usually include YSI before everything else.
Reply

Quote:
Originally Posted by Crayder
Посмотреть сообщение
@justice: The point of including this before all other includes (not SA-MP includes) is because it hooks a lot of functions and callbacks. If other includes modify those functions or callbacks that can mess with the integrity of this.

This is also why I usually include YSI before everything else.
Crayder i do that like this:
Код:
#include <a_samp>
#include <a_mysql>
#include <fixes>
#include <dudb>
#include <dutils>
#include <utils>
#include <foreach>
#include <sscanf2>
#include <zcmd>
#include <gangzonesc>
#include <streamer>
#include <OPSP>
#include <progress>
#include <gvc>
#include <mxINI>
#include <mSelection>
#include <YSI\y_timers>
#include <SKY>
#include <weapon-config>
buy it gives me this errors and warnings now what should i do?
Код:
D:\Game Mods\a.Persian GangWar\pawno\include\weapon-config.inc(1722) : warning 202: number of arguments does not match definition
D:\Game Mods\a.Persian GangWar\pawno\include\weapon-config.inc(1720) : warning 203: symbol is never used: "addsiren"
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(255) : warning 201: redefinition of constant/macro (symbol "WEAPON_UNARMED")
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(261) : warning 219: local variable "handle" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(262) : warning 219: local variable "ICanChangeSkin" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(263) : warning 219: local variable "IsPlayerLoggedIn" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(264) : warning 219: local variable "TryPass" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(265) : warning 219: local variable "PlayerKillingSpree" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(266) : warning 219: local variable "Gangs" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(267) : warning 219: local variable "ServerName" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(268) : warning 219: local variable "ServerName1" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(269) : warning 219: local variable "ServerName2" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(270) : warning 219: local variable "ServerName3" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(271) : warning 219: local variable "Spec" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(272) : warning 219: local variable "Specid" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(273) : warning 219: local variable "InSnip" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(274) : warning 219: local variable "IsInEvent" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(276) : warning 219: local variable "shotTime" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(277) : warning 219: local variable "shot" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(279) : warning 219: local variable "HaveMissile" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(280) : warning 219: local variable "VehicleFire" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(281) : warning 219: local variable "VehicleBomb" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(282) : warning 219: local variable "VehicleSmok" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(283) : warning 219: local variable "VehicleOffsetX" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(284) : warning 219: local variable "VehicleOffsetZ" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(286) : warning 219: local variable "InfiniteAmmo" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(288) : warning 219: local variable "LCSBCar" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(289) : warning 219: local variable "LCSRCar" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(290) : warning 219: local variable "LCSTeam" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(291) : warning 219: local variable "LCSOBJ" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(294) : warning 219: local variable "PlayerWeapon" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(295) : warning 219: local variable "PlayerAmmo" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(297) : warning 219: local variable "PlayerEnterTime" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(298) : warning 219: local variable "Wheel" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(301) : warning 219: local variable "AltTabbed" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(302) : warning 219: local variable "Tabbed" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(303) : warning 219: local variable "AltTabText" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(304) : warning 219: local variable "HasText" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(306) : warning 219: local variable "aaao" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(308) : warning 219: local variable "AimereSag" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(309) : warning 219: local variable "******Car" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(317) : warning 219: local variable "ppPos" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(320) : warning 219: local variable "BannedNotice" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(321) : warning 219: local variable "KickedNotice" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(331) : warning 219: local variable "IsInDuel" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(332) : warning 219: local variable "DuelReqTo" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(333) : warning 219: local variable "DuelReqFrom" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(334) : warning 219: local variable "DuelTime" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(335) : warning 219: local variable "TimeDuel" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(336) : warning 219: local variable "DuelForCred" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(339) : warning 219: local variable "IsInLCS" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(340) : warning 219: local variable "LCSReqTo" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(341) : warning 219: local variable "LCSReqFrom" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(342) : warning 219: local variable "LCSTime" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(343) : warning 219: local variable "TimeLCS" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(344) : warning 219: local variable "LCSForCred" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(346) : warning 219: local variable "ZoroShode" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(349) : warning 219: local variable "Boombox" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(350) : warning 219: local variable "BoomboxObject" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(351) : warning 219: local variable "BoomboxStream" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(352) : warning 219: local variable "BoomboxPlayer" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(353) : warning 219: local variable "BoomboxURL" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(354) : warning 219: local variable "bpos" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(356) : warning 219: local variable "EventsIsLock" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(358) : warning 219: local variable "toyslot" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(359) : warning 219: local variable "Toy_Slot" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(361) : warning 219: local variable "cVeh" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(362) : warning 219: local variable "TTime" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(362) : warning 219: local variable "Date" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(363) : warning 219: local variable "CanUseSlashKiLL" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(364) : warning 219: local variable "SlashKillTimer" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(365) : warning 219: local variable "CreditsBox" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(365) : warning 219: local variable "TCredits" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(365) : warning 219: local variable "CreditsBar" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(365) : warning 219: local variable "TeamBox" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(365) : warning 219: local variable "ChooseTeam" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(365) : warning 219: local variable "ChooseSkin" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(366) : warning 219: local variable "GroveDraw" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(366) : warning 219: local variable "AztecasDraw" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(366) : warning 219: local variable "BikersDraw" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(366) : warning 219: local variable "VagosDraw" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(366) : warning 219: local variable "BallasDraw" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(366) : warning 219: local variable "PoliceDraw" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(366) : warning 219: local variable "TheMobDraw" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(366) : warning 219: local variable "TeamMembersDraw" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(366) : warning 219: local variable "SelectTeamDraw" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(366) : warning 219: local variable "Tatto" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(367) : warning 219: local variable "WarBox" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(368) : warning 219: local variable "WarST" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(369) : warning 219: local variable "GodmodeFeature" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(370) : warning 219: local variable "WarA" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(371) : warning 219: local variable "WarD" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(372) : warning 219: local variable "WarS" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(373) : warning 219: local variable "WarDea" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(374) : warning 219: local variable "WarVS" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(375) : warning 219: local variable "WarK" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(376) : warning 219: local variable "WarT" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(377) : warning 219: local variable "WarTR" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(378) : warning 219: local variable "NameDraw" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(379) : warning 219: local variable "KillBox" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(380) : warning 219: local variable "FirstKillDraw" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(381) : warning 219: local variable "ReferralID" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(382) : warning 219: local variable "DoubleDraw" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(383) : warning 219: local variable "TripleDraw" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(384) : warning 219: local variable "TurfAttacker" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(385) : warning 219: local variable "OurTurf" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(386) : warning 219: local variable "AttackerKills" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(387) : warning 219: local variable "AttackerDeaths" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(388) : warning 219: local variable "MyKills" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(389) : warning 219: local variable "MyDeaths" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(390) : warning 219: local variable "InWar" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(391) : warning 219: local variable "TurfAttackerKills" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(392) : warning 219: local variable "TurfAttackerDeaths" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(393) : warning 219: local variable "TheTurfKills" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(394) : warning 219: local variable "TheTurfDeaths" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(395) : warning 219: local variable "AttackerScore" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(396) : warning 219: local variable "TurfTime" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(397) : warning 219: local variable "AllKills" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(398) : warning 219: local variable "AllDeaths" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(399) : warning 219: local variable "TurfReload" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(400) : warning 219: local variable "OurTurfScore" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(401) : warning 219: local variable "tsec" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(401) : warning 219: local variable "tmin" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(401) : warning 219: local variable "thour" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(402) : warning 219: local variable "Seconds" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(406) : warning 219: local variable "NotMoving" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(407) : warning 219: local variable "WeaponID" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(408) : warning 219: local variable "CheckCrouch" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(409) : warning 219: local variable "Ammo" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(419) : warning 219: local variable "CBugPlayerInfo" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(422) : warning 219: local variable "pMuted" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(423) : warning 219: local variable "pLineCount" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(426) : warning 219: local variable "BoddyGuard1" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(427) : warning 219: local variable "BoddyGuard2" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(428) : warning 219: local variable "BoddyGuard3" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(429) : warning 219: local variable "BoddyGuard4" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(430) : warning 219: local variable "BoddyGuard5" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(432) : warning 219: local variable "strClan" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(433) : warning 219: local variable "strClan2" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(435) : warning 219: local variable "AztecasVeh" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(436) : warning 219: local variable "BikersVeh" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(437) : warning 219: local variable "VagosVeh" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(438) : warning 219: local variable "BallasVeh" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(439) : warning 219: local variable "PoliceVeh" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(440) : warning 219: local variable "GroveVeh" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(441) : warning 219: local variable "TMVeh" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(443) : warning 219: local variable "NameOff" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(444) : error 029: invalid expression, assumed zero
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(444) : warning 221: label name "Float" shadows tag name
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(446) : warning 219: local variable "aVehicleNames" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(661) : warning 219: local variable "ppX" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(661) : warning 219: local variable "ppY" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(661) : warning 219: local variable "ppZ" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(661) : warning 219: local variable "pVir" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(661) : warning 219: local variable "pInter" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(663) : warning 219: local variable "TelePos" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(665) : warning 219: local variable "AJABA" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(666) : warning 219: local variable "Cheating" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(667) : warning 219: local variable "TWeap" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(668) : warning 219: local variable "TWeapName" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(669) : warning 219: local variable "WeaPKiri" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(670) : warning 219: local variable "Turfs" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(673) : warning 219: local variable "fAutoC" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(675) : warning 219: local variable "PingTimer" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(677) : warning 219: local variable "WarTimeBar" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(679) : error 029: invalid expression, assumed zero
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(679) : warning 221: label name "bool" shadows tag name
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(679) : error 017: undefined symbol "weaponid"
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(680) : error 029: invalid expression, assumed zero
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(680) : warning 221: label name "bool" shadows tag name
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(680) : error 017: undefined symbol "weaponid"
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(682) : error 017: undefined symbol "weaponid"
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(687) : warning 225: unreachable code
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(687) : warning 219: local variable "PBANNED" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(689) : warning 219: local variable "Area" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(690) : warning 219: local variable "Area1" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(691) : warning 219: local variable "Area2" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(692) : warning 219: local variable "Area3" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(693) : warning 219: local variable "Area4" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(694) : warning 219: local variable "AreaMotd" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(696) : warning 219: local variable "Check******Timer" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(698) : warning 219: local variable "FromDialog" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(699) : warning 219: local variable "RequestSelected" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(701) : warning 219: local variable "ServerArena" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(702) : warning 219: local variable "ServerSniper" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(703) : warning 219: local variable "InArena" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(705) : warning 219: local variable "GArmur" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(706) : warning 219: local variable "AArmur" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(707) : warning 219: local variable "BArmur" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(708) : warning 219: local variable "VArmur" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(709) : warning 219: local variable "BaArmur" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(710) : warning 219: local variable "PArmur" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(711) : warning 219: local variable "TArmur" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(713) : warning 219: local variable "EGrovePup" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(714) : warning 219: local variable "EAztecasPup" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(715) : warning 219: local variable "EBikerPup" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(716) : warning 219: local variable "EVagosPup" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(717) : warning 219: local variable "EBallasPup" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(718) : warning 219: local variable "EPolicePup" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(719) : warning 219: local variable "ETmPup1" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(720) : warning 219: local variable "ETmPup2" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(722) : warning 219: local variable "QuesQues" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(722) : warning 219: local variable "QuesAns" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(722) : warning 219: local variable "QuesRunning" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(722) : warning 219: local variable "QuesCred" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(722) : warning 219: local variable "QuesGold" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(722) : warning 219: local variable "QuesSeted" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(723) : warning 219: local variable "TedadPlayers" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(725) : warning 219: local variable "GroveList" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(726) : warning 219: local variable "AztecasList" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(727) : warning 219: local variable "BallasList" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(728) : warning 219: local variable "VagosList" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(729) : warning 219: local variable "PoliceList" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(730) : warning 219: local variable "BIKERSList" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(731) : warning 219: local variable "TmList" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(732) : warning 219: local variable "vehlist" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(733) : warning 219: local variable "VIPSkins" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(734) : warning 219: local variable "Toys" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(735) : warning 219: local variable "VIPToys" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(737) : warning 219: local variable "pSkin" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(739) : warning 219: local variable "SnipperRandom" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(760) : warning 219: local variable "ArenaRandomSpawn" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(780) : warning 219: local variable "TeamEntekhabKarde" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(781) : warning 219: local variable "TeamKiri" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(803) : error 001: expected token: ";", but found "{"
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(812) : error 029: invalid expression, assumed zero
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(813) : error 029: invalid expression, assumed zero
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(814) : error 001: expected token: ";", but found "{"
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(819) : warning 225: unreachable code
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(819) : error 029: invalid expression, assumed zero
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(820) : error 029: invalid expression, assumed zero
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(821) : error 001: expected token: ";", but found "{"
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(834) : warning 225: unreachable code
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(834) : error 029: invalid expression, assumed zero
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(834) : error 017: undefined symbol "x"
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(835) : error 029: invalid expression, assumed zero
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(835) : error 017: undefined symbol "x"
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(839) : error 017: undefined symbol "x"
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(840) : error 017: undefined symbol "x"
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(843) : error 017: undefined symbol "y"
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(870) : warning 225: unreachable code
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(885) : warning 225: unreachable code
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(885) : warning 219: local variable "ClanInfo" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(898) : warning 219: local variable "TurfInfo" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(966) : warning 219: local variable "PlayerInfo" shadows a variable at a preceding level
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(970) : error 001: expected token: ";", but found "{"
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(976) : error 001: expected token: ";", but found "{"
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(982) : warning 225: unreachable code
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(982) : error 029: invalid expression, assumed zero
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(983) : error 001: expected token: ";", but found "{"
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(1919) : warning 225: unreachable code
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(1919) : error 029: invalid expression, assumed zero
D:\Game Mods\a.Persian GangWar\gamemodes\IRGW.pwn(1920) : error 001: expected token: ";", but found "{"
Reply

Which compiler do you use? Zeex's or the old one?
Reply

Quote:
Originally Posted by Slice
Посмотреть сообщение
Which compiler do you use? Zeex's or the old one?
Zeex, I'll give pawnos original a shot

Код:
C:\Users\Administrator\Desktop\script scratch compiler\pawno\include\a_mysql.inc(81) : error 029: invalid expression, assumed zero
C:\Users\Administrator\Desktop\script scratch compiler\pawno\include\a_mysql.inc(81) : warning 221: label name "ORM" shadows tag name
C:\Users\Administrator\Desktop\script scratch compiler\pawno\include\a_mysql.inc(81) : error 017: undefined symbol "orm_create"
C:\Users\Administrator\Desktop\script scratch compiler\pawno\include\a_mysql.inc(81) : warning 215: expression has no effect
C:\Users\Administrator\Desktop\script scratch compiler\pawno\include\a_mysql.inc(81) : error 001: expected token: ";", but found "const"
C:\Users\Administrator\Desktop\script scratch compiler\pawno\include\a_mysql.inc(81) : fatal error 107: too many error messages on one line

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


4 Errors.
Reply

Could anyone link me the newest sky.inc & sky.dll please? Because i always get some error
Now I get this when I try to compile:
Код:
C:\Users\penaut\Desktop\South Central RP\pawno\include\a_mysql.inc(81) : error 029: invalid expression, assumed zero
C:\Users\penaut\Desktop\South Central RP\pawno\include\a_mysql.inc(81) : warning 221: label name "ORM" shadows tag name
C:\Users\penaut\Desktop\South Central RP\pawno\include\a_mysql.inc(81) : error 017: undefined symbol "orm_create"
C:\Users\penaut\Desktop\South Central RP\pawno\include\a_mysql.inc(81) : warning 215: expression has no effect
C:\Users\penaut\Desktop\South Central RP\pawno\include\a_mysql.inc(81) : error 001: expected token: ";", but found "const"
C:\Users\penaut\Desktop\South Central RP\pawno\include\a_mysql.inc(81) : fatal error 107: too many error messages on one line
EDIT: Lol I see I am not the only one with this error
Reply

Quote:
Originally Posted by penaut
Посмотреть сообщение
Could anyone link me the newest sky.inc & sky.dll please? Because i always get some error
Now I get this when I try to compile:
Код:
C:\Users\penaut\Desktop\South Central RP\pawno\include\a_mysql.inc(81) : error 029: invalid expression, assumed zero
C:\Users\penaut\Desktop\South Central RP\pawno\include\a_mysql.inc(81) : warning 221: label name "ORM" shadows tag name
C:\Users\penaut\Desktop\South Central RP\pawno\include\a_mysql.inc(81) : error 017: undefined symbol "orm_create"
C:\Users\penaut\Desktop\South Central RP\pawno\include\a_mysql.inc(81) : warning 215: expression has no effect
C:\Users\penaut\Desktop\South Central RP\pawno\include\a_mysql.inc(81) : error 001: expected token: ";", but found "const"
C:\Users\penaut\Desktop\South Central RP\pawno\include\a_mysql.inc(81) : fatal error 107: too many error messages on one line
EDIT: Lol I see I am not the only one with this error
Correct, young padawan. We'll have to await Slice's response.
Reply

I get an error while compiling.

Код:
C:\Users\Filipe\Desktop\Filipe\NxGRP\Script\release\pawno\include\weapon-config.inc(984) : warning 219: local variable "hits" shadows a variable at a preceding level
C:\Users\Filipe\Desktop\Filipe\NxGRP\Script\release\pawno\include\a_mysql.inc(84) : error 029: invalid expression, assumed zero
C:\Users\Filipe\Desktop\Filipe\NxGRP\Script\release\pawno\include\a_mysql.inc(84) : warning 221: label name "ORM" shadows tag name
C:\Users\Filipe\Desktop\Filipe\NxGRP\Script\release\pawno\include\a_mysql.inc(84) : error 017: undefined symbol "orm_create"
C:\Users\Filipe\Desktop\Filipe\NxGRP\Script\release\pawno\include\a_mysql.inc(84) : warning 215: expression has no effect
C:\Users\Filipe\Desktop\Filipe\NxGRP\Script\release\pawno\include\a_mysql.inc(84) : error 001: expected token: ";", but found "const"
C:\Users\Filipe\Desktop\Filipe\NxGRP\Script\release\pawno\include\a_mysql.inc(84) : fatal error 107: too many error messages on one line

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


4 Errors.
This is the order of my includes:
Код:
#include <a_samp>
#include <SKY>
#include <weapon-config>
#include <a_mysql>
#include <YSI\y_timers>
#include <YSI\y_utils>
#include <streamer>
#include <yom_buttons>
#include <ZCMD>
#include <sscanf2>
#include <foreach>
#include <airbreak>
#include <callbacks>
Reply

Could you PM me a zip file of the code? I need to recreate this to understand the problem.
Reply

Try use mysql include before sky and weapon config
Reply

Код:
#include <a_samp>
#include <a_http>

//#include <SKY>
//#include <weapon-config>

#undef MAX_PLAYERS
#define MAX_PLAYERS (100)

#include <a_mysql> // R39

#include <SKY>
#include <weapon-config>

#include <foreach>
#include <easyDialog>
#include <eSelection>
#include <progress2>
#include <sscanf2>
#include <streamer>
#include <zcmd>
#include <fixchars>
Код:
C:\Users\penaut\Desktop\South Central RP\pawno\include\YSI\internal\..\y_scriptinit.inc(66) : error 029: invalid expression, assumed zero
C:\Users\penaut\Desktop\South Central RP\pawno\include\YSI\internal\..\y_scriptinit.inc(111) : warning 219: local variable "YSI_FILTERSCRIPT" shadows a variable at a preceding level
C:\Users\penaut\Desktop\South Central RP\pawno\include\YSI\internal\..\y_scriptinit.inc(114) : error 029: invalid expression, assumed zero
C:\Users\penaut\Desktop\South Central RP\pawno\include\YSI\internal\..\y_scriptinit.inc(115) : error 001: expected token: ";", but found "{"
C:\Users\penaut\Desktop\South Central RP\pawno\include\YSI\internal\..\y_scriptinit.inc(138) : warning 225: unreachable code
C:\Users\penaut\Desktop\South Central RP\pawno\include\YSI\internal\..\y_scriptinit.inc(138) : error 029: invalid expression, assumed zero
C:\Users\penaut\Desktop\South Central RP\pawno\include\YSI\internal\..\y_scriptinit.inc(139) : error 001: expected token: ";", but found "{"
C:\Users\penaut\Desktop\South Central RP\pawno\include\YSI\internal\..\y_scriptinit.inc(185) : warning 225: unreachable code
C:\Users\penaut\Desktop\South Central RP\pawno\include\YSI\internal\..\y_scriptinit.inc(185) : error 029: invalid expression, assumed zero
C:\Users\penaut\Desktop\South Central RP\pawno\include\YSI\internal\..\y_scriptinit.inc(195) : error 029: invalid expression, assumed zero
C:\Users\penaut\Desktop\South Central RP\pawno\include\YSI\internal\..\y_scriptinit.inc(230) : error 029: invalid expression, assumed zero
C:\Users\penaut\Desktop\South Central RP\pawno\include\YSI\internal\..\y_scriptinit.inc(231) : error 001: expected token: ";", but found "{"
C:\Users\penaut\Desktop\South Central RP\pawno\include\YSI\internal\..\y_scriptinit.inc(253) : warning 225: unreachable code
C:\Users\penaut\Desktop\South Central RP\pawno\include\YSI\internal\..\y_scriptinit.inc(253) : error 029: invalid expression, assumed zero
C:\Users\penaut\Desktop\South Central RP\pawno\include\YSI\internal\..\y_scriptinit.inc(254) : error 001: expected token: ";", but found "{"
C:\Users\penaut\Desktop\South Central RP\pawno\include\YSI\internal\..\y_scriptinit.inc(301) : warning 225: unreachable code
C:\Users\penaut\Desktop\South Central RP\pawno\include\YSI\internal\..\y_scriptinit.inc(301) : error 029: invalid expression, assumed zero
C:\Users\penaut\Desktop\South Central RP\pawno\include\YSI\internal\..\y_scriptinit.inc(308) : error 029: invalid expression, assumed zero
C:\Users\penaut\Desktop\South Central RP\pawno\include\YSI\internal\..\y_scriptinit.inc(326) : error 029: invalid expression, assumed zero
C:\Users\penaut\Desktop\South Central RP\pawno\include\YSI\internal\..\y_scriptinit.inc(326) : error 017: undefined symbol "_script_init_fix_state"
C:\Users\penaut\Desktop\South Central RP\pawno\include\YSI\internal\..\y_scriptinit.inc(326) : error 029: invalid expression, assumed zero
C:\Users\penaut\Desktop\South Central RP\pawno\include\YSI\internal\..\y_scriptinit.inc(326) : fatal error 107: too many error messages on one line

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


17 Errors.
Reply

Quote:
Originally Posted by Slice
Посмотреть сообщение
Could you PM me a zip file of the code? I need to recreate this to understand the problem.
pmed you mine
Reply

Which code?
Reply

It doesn't even compile without weapon-config!

Something is seriously messed up with hooks in either your GM or one of the include files.
Reply

Quote:
Originally Posted by Slice
Посмотреть сообщение
It doesn't even compile without weapon-config!

Something is seriously messed up with hooks in either your GM or one of the include files.
Okay just realized I compiled the wrong thing, give me a second
Reply

After update

PHP код:
C:\Users\Евгений\Desktop\Мод\pawno\Samp GRP\pawno\include\streamer.inc(108) : error 029invalid expressionassumed zero
C
:\Users\Евгений\Desktop\Мод\pawno\Samp GRP\pawno\include\streamer.inc(108) : error 017undefined symbol "Streamer_IncludeFileVersion"
C:\Users\Евгений\Desktop\Мод\pawno\Samp GRP\pawno\include\streamer.inc(169) : error 029invalid expressionassumed zero
C
:\Users\Евгений\Desktop\Мод\pawno\Samp GRP\pawno\include\streamer.inc(169) : error 017undefined symbol "Streamer_GetTickRate"
C:\Users\Евгений\Desktop\Мод\pawno\Samp GRP\pawno\include\streamer.inc(169) : error 029invalid expressionassumed zero
C
:\Users\Евгений\Desktop\Мод\pawno\Samp GRP\pawno\include\streamer.inc(169) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
6 Errors

PHP код:
#include <a_samp>
#include <weapon-config>
#include <SKY>
#include <streamer>
#include <foreach>
#include <a_mysql>
#include <regex>
#include <sscanf2>
#include <mxdate>
#include <a_actor>
#include <Pawn.CMD> 
Please share the old version
Reply

If you replace it
PHP код:
#if defined WC_OnPlayerDisconnect
        
WC_OnPlayerDisconnect(playeridreason);
    
#else 
on
PHP код:
#if defined WC_OnPlayerDisconnect
        
WC_OnPlayerDisconnect(playeridreason);
    
#endif 
and this

PHP код:
stock WC_CreateVehicle(modelidFloat:xFloat:yFloat:zFloat:anglecolor1color2respawn_delay)
{
    new 
id CreateVehicle(modelidxyzanglecolor1color2respawn_delay);
    if (
id != INVALID_VEHICLE_ID) {
        
s_VehicleAlive[id] = true;
        return 
id;
    }
    return 
INVALID_VEHICLE_ID;

on

PHP код:
stock WC_CreateVehicle(modelidFloat:xFloat:yFloat:zFloat:anglecolor1color2respawn_delayaddsiren 0)
{
    new 
id CreateVehicle(modelidxyzanglecolor1color2respawn_delayaddsiren);
    if (
id != INVALID_VEHICLE_ID) {
        
s_VehicleAlive[id] = true;
        return 
id;
    }
    return 
INVALID_VEHICLE_ID;

everything is working!
Reply

last update messed up. When trying to compile i get lot's of "shadows variable at...". Every f.....g variable get's this warning.
Reply

@gensek4: I added the first fix on GitHub. Thanks! The second thing, however, is your problem. You need to update your SA-MP include files.
Reply

Quote:
Originally Posted by Slice
Посмотреть сообщение
Could you PM me a zip file of the code? I need to recreate this to understand the problem.
You want the mysql code or my whole code? I'd rather not give my whole script out.
Reply

Quote:
Originally Posted by Slice
Посмотреть сообщение
@gensek4: I added the first fix on GitHub. Thanks! The second thing, however, is your problem. You need to update your SA-MP include files.
Parameter addsiren not only AddStaticVehicleEx, but in CreateVehicle

https://sampwiki.blast.hk/wiki/CreateVehicle
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)