Help Me - First Reply +1 Rep please
#1

Okay, So, I am making a giftbox filterscript and I keep getting these errors>>
Code:
C:\Users\Bradley\Desktop\gifttboxxx.pwn(198) : warning 201: redefinition of constant/macro (symbol "MAX_ROADBLOCKS")
C:\Users\Bradley\Desktop\gifttboxxx.pwn(451) : error 029: invalid expression, assumed zero
C:\Users\Bradley\Desktop\gifttboxxx.pwn(451) : error 017: undefined symbol "cmd_Giftbox"
C:\Users\Bradley\Desktop\gifttboxxx.pwn(451) : error 029: invalid expression, assumed zero
C:\Users\Bradley\Desktop\gifttboxxx.pwn(451) : 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 MY SCRIPT>>
Code:
1.// This is a comment


2.// uncomment the line below if you want to write a filterscript


3.#define FILTERSCRIPT


4. 


5.#include <a_samp>


6.#include <a_samp>


7.#include <dini>


8.#include <utils>


9.#include <zones>


10.#include <yom_buttons>


11.#include <streamer>


12.#include <cuff>


13.#include <foreach>


14.#include <SII>


15.#include <zcmd>


16.//---------------------------------[O.3c Colors]-------------------------//


17.#define COL_EASY           "{FFF1AF}"


18.#define COL_WHITE          "{FFFFFF}"


19.#define COL_BLACK          "{0E0101}"


20.#define COL_GREY           "{C3C3C3}"


21.#define COL_NICEGREEN      "{6EF83C}"


22.#define COL_RED            "{A80000}"


23.#define COL_NICERED        "{F81414}"


24.#define COL_YELLOW         "{F3FF02}"


25.#define COL_YELLOW2        "{DAE368}"


26.#define COL_BYELLOW        "{FFFF80}"


27.#define COL_ORANGE         "{FFAF00}"


28.#define COL_LIME           "{B7FF00}"


29.#define COL_CYAN           "{00FFEE}"


30.#define COL_LIGHTBLUE      "{00C0FF}"


31.#define COL_BLUE           "{0049FF}"


32.#define COL_MAGENTA        "{F300FF}"


33.#define COL_VIOLET         "{B700FF}"


34.#define COL_PINK           "{FF00EA}"


35.#define COL_MARONE         "{A90202}"


36.#define COL_CMD            "{B8FF02}"


37.#define COL_PARAM          "{3FCD02}"


38.#define COL_SERVER         "{AFE7FF}"


39.#define COL_VALUE          "{A3E4FF}"


40.#define COL_RULE           "{F9E8B7}"


41.#define COL_RULE2          "{FBDF89}"


42.#define COL_RWHITE         "{FFFFFF}"


43.#define COL_LGREEN         "{C9FFAB}"


44.#define COL_LRED           "{FFA1A1}"


45.#define COL_LRED2          "{C77D87}"


46.#define COL_GREEN          "{00BC2E}"


47.#define COL_LBLUE          "{00A5FF}"


48.#define EMBED_WHITE        "{6422DD}"


49.#define DARK_PURPLE        "{800040}"


50.#define BIZ_HEX            "{F5DEB3}"


51.#define GARAGE_HEX         "{FFA500}"


52.#define COL_VIP            "{630469}"


53.#define COL_NEWBIE         "{5B9CBB}"


54.//----------------------------------------[Single-Name Colors]------------------//


55.#define ADMINCHAT            0x00FF00FF


56.#define ILLEGAL                      0xE1B0B0FF


57.#define GREY1                            0xB4B5B7FF


58.#define GREY2                            0xBFC0C2FF


59.#define GREY3                            0xCBCCCEFF


60.#define GREY4                            0xD8D8D8FF


61.#define GREY5                            0xE3E3E3FF


62.#define GREY6                            0xF0F0F0FF


63.#define GREY                             0xAFAFAFFF


64.#define GREEN                            0x33AA33FF


65.#define RED                              0xAA3333FF


66.#define BLACK                    0x000001FF


67.#define BLUE                             0x007BD0FF


68.#define LIGHTORANGE              0xFFA100FF


69.#define FLASH                            0xFF000080


70.#define COLOR_BLUE                       0x2641FEAA


71.#define LIGHTRED                         0xFF6347FF


72.#define LIGHTBLUE                        0x33CCFFFF


73.#define LIGHTGREEN                       0x9ACD32FF


74.#define YELLOW                           0xFFFF00FF


75.#define LIGHTYELLOW                      0xFFFF91FF


76.#define YELLOW2                          0xF5DEB3FF


77.#define WHITE                            0xFFFFFFFF


78.#define FADE1                            0xE6E6E6E6


79.#define FADE2                            0xC8C8C8C8


80.#define FADE3                            0xAAAAAAFF


81.#define FADE4                            0x8C8C8C8C


82.#define FADE5                            0x6E6E6E6E


83.#define PURPLE                           0xC2A2DAAA


84.#define DBLUE                            0x2641FEFF


85.#define DOC                              0xFF8282FF


86.#define DCHAT                            0xF0CC00FF


87.#define NEWS                             0xFFA500FF


88.#define OOC                              0xE0FFFFFF


89.#define TEAM_BLUE_COLOR          0x8D8DFF00


90.#define TEAM_GROVE_COLOR         0x00AA00FF


91.#define TEAM_AZTECAS_COLOR       0x01FCFFC8


92.#define NEWBIE_COLOR             0x7DAEFFFF


93.#define HOUSETEXT                        0xBDB388FF


94.#define ORANGE                           0xFF8300FF


95.#define SAMP_COLOR                       0xAAC4E5FF


96.#define BIZ                      0xE85D00FF


97.//----------------------------------------[Colors]------------------------------//


98.#define green 0x45E01FFF


99.#define COLOR_NICERED 0xFF0000FF


100.#define COLOR_VIP 0xECFF0000


101.#define COLOR_NICEGREEN 0x00FF00FF


102.#define TEAM_TAXI_COLOR 0xFFFF5000


103.#define COL_NEWBIEB  0x5B9CBBFF


104.#define COLOR_BITEM 0xE1B0B0FF


105.#define COLOR_GRAD1 0xB4B5B7FF


106.#define COLOR_GRAD2 0xBFC0C2FF


107.#define COLOR_GRAD3 0xCBCCCEFF


108.#define COLOR_GRAD4 0xD8D8D8FF


109.#define COLOR_CAR 0x7DAEFFFF


110.#define COLOR_GRAD5 0xE3E3E3FF


111.#define COLOR_GRAD6 0xF0F0F0FF


112.#define COLOR_DEV 0xFFFF91FF


113.#define COLOR_ADMIN 0xB2EBE0AA


114.#define COLOR_GREY 0xAFAFAFAA


115.#define COLOR_GREEN 0x33AA33AA


116.#define COLOR_RED 0xAA3333AA


117.#define COLOR_LIGHTRED 0xFF6347AA


118.#define COLOR_LIGHTBLUE 0x33CCFFAA


119.#define COLOR_LIGHTGREEN 0x9ACD32AA


120.#define COLOR_YELLOW 0xFFFF00AA


121.#define COLOR_LIGHTYELLOW 0xFFFF91FF


122.#define COL_FORUM 0x808000C8


123.#define COLOR_YELLOW2 0xF5DEB3AA


124.#define COLOR_TAN 0xD2B48CFF


125.#define COLOR_WHITE 0xFFFFFFAA


126.#define COLOR_FADE1 0xE6E6E6E6


127.#define COLOR_FADE2 0xC8C8C8C8


128.#define COLOR_FADE3 0xAAAAAAAA


129.#define COLOR_FADE4 0x8C8C8C8C


130.#define COLOR_FADE5 0x6E6E6E6E


131.#define COLOR_PURPLE 0xC2A2DAAA


132.#define COLOR_CHAT1 0xF9B7FFAA


133.#define COLOR_CHAT2 0xE6A9ECAA


134.#define COLOR_CHAT3 0xC38EC7AA


135.#define COLOR_CHAT4 0xD2B9D3AA


136.#define COLOR_CHAT5 0xC6AEC7AA


137.#define TEAM_CYAN_COLOR 0xFF8282AA


138.#define COLOR_DBLUE 0x2641FEAA


139.#define COLOR_DOC 0xFF8282AA


140.#define COLOR_DCHAT 0xF0CC00FF


141.#define COLOR_NEWS 0xFFA500AA


142.#define COLOR_OOC 0xE0FFFFAA


143.#define COLOR_ORANGE 0xFF9900AA


144.#define TEAM_BLUE_COLOR 0x8D8DFF00


145.#define TEAM_GROVE_COLOR 0x00AA00FF


146.#define ENT_COLOR           0xFF6347FF


147.#define TEAM_AZTECAS_COLOR 0x01FCFFC8


148.#define COLOR_TEAL 0x00AAAAAA


149.#define COLOR_OFFWHITE 0xF5DEB3AA


150.#define COLOR_DARKAQUA 0x83BFBFAA


151.#define NEWBIE_COLOR 0x7DAEFFFF


152.#define TPARAMEDIC               0xFF828200


153.#define SCOLOR_RED          0xD9000000


154.#define SCOLOR_PINK         0xFE81FE00


155.#define SCOLOR_ORANGE       0xFF6A2200


156.#define SCOLOR_YELLOW       0xF0F00000


157.#define SCOLOR_CYAN         0x00E6E600


158.#define SCOLOR_GREEN            0x00CA0000


159.#define SCOLOR_BLUE             0x0058B000


160.#define SCOLOR_BLACK        0x00000000


161.#define SCOLOR_WHITE        0xFFFFFF00


162.#define SCOLOR_MARKER       0xD90000FF


163.#define TBLUE                            0x2641FE00


164.#define GARAGE_COLOR        0xFFA500FF


165.//-------------------------------------[Defines]-----------------------------//


166.#define MAX_FAMVEHICLES     140


167.#define MAX_DYNAMIC_OBJECTS             (2000)


168.#define MAX_ROADBLOCKS 100


169.#define MAX_ENTRANCES                   (600)


170.#define MAX_GATES                                       (800)


171.#define TYPE_ENTRANCE                   (7)


172.#define TYPE_GATE                       (5)


173.#define MAX_MONEYBAGS                   (150)


174.#define TYPE_GARAGE                 (3)


175.#define TYPE_OBJECT                 (4)


176.#define TYPE_FACGATE                    (6)


177.#define TYPE_FAMGATE                    (10)


178.#define MAX_DRIVETHRUS              (50)


179.#define MAX_FACGATES                    (65)


180.#define MAX_FAMGATES                    (32)


181.#define VIPSKINMENU 13337


182.#define MAX_PLATE_LENGTH 12


183.#define VIPNUMBERCHANGEMENU 13338


184.#define SASD1 1305


185.#define SASD2 1304


186.#define SPECIAL_ACTION_PISSING 68


187.#define MAX_SPIKESTRIPS 200


188.#define MAX_MAPICONS    100


189.#undef MAX_VEHICLES


190.#define MAX_CCTVS 100


191.#define MAX_CCTVMENUS 10


192.#define MAX_POINTS                      (9)


193.#define MAX_VEHICLES 500


194.#define MAX_STRING 255


195.#define MAX_HOUSES 1000


196.#define MAX_SPEED_WARNINGS 3


197.#define MAX_BUSINESSES 1000


198.#define MAX_ROADBLOCKS 1000


199.#define MAX_GARAGES                             (1000)


200.#define MAX_ATM 1000


201.#define MAX_MAPB 1000


202.#define MAX_GSTATION 1000


203.#define MAX_HSSIGN 1000


204.#define MAX_OOCSHOP 1000


205.#define MAX_InfoBoard 1000


206.#define MAX_BUILDINGS 1000


207.#define MAX_DIVISIONS               (5)


208.#define MAX_MOTELS 1000


209.#define BUSINESSES_INT 5000


210.#define MAX_STRING 255


211.// Radio System


212.#define USE_TEXTDRAW_SET 2


213.#define MAX_RADIO_STATIONS 20


214.#define TEXTDRAW_DISAPPEAR_TIME 999999


215.#define NAME_SIZE 30


216.#define LINK_SIZE 70


217.#define GetVehicleRadioStation(%1) v_VehicleInfo[%1][RadioPlaying]


218.#define DIALOG_GPS 1041


219.//Boombox Dialog


220.#define DIALOG_BOOMBOX 31997


221.#define DIALOG_BOOMBOX1 31998


222.#define DIALOG_BOOMBOX2 31999


223.#define DIALOG_BOOMBOX3 32000


224.#define DIALOG_BOOMBOX4 32001


225.#define DIALOG_BOOMBOX5 32002


226.#define DIALOG_BOOMBOX6 32003


227.#define DIALOG_BOOMBOX7 32004


228.#define DIALOG_OOCSHOP 32546


229.#define CHECKPOINT_NONE 0


230.#define CHECKPOINT_HOME 12


231.#define CHECKPOINT_HITMAN 123


232.#pragma tabsize 0


233.#pragma dynamic 100000


234.//----------------------------------------------------//


235.#define DEFAULT_TIMEOUT (5000) // Equals to 5 seconds


236.#define isnull(%1) \


237.        ((!(%1[0])) || (((%1[0]) == '\1') && (!(%1[1]))))


238.#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)


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


240.#define IsPlayerHoldingObject(%1) IsPlayerAttachedObjectSlotUsed(%1,MAX_PLAYER_ATTACHED_OBJECTS-1)


241.#define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1


242.//-------------------------------------------[MENUS]---------------------------------//


243.#define SASDSKINMENU 671


244.#define DIALOG_SERVERCTRL                       32580


245.#define DIALOG_CHANGEHOSTNAME           32581


246.#define DIALOG_CHANGEMAPNAME            32582


247.#define DIALOG_CHANGEURL                32583


248.#define DIALOG_LOCKSERVER               32584


249.#define DIALOG_UNLOCKSERVER             32585


250.#define DIALOG_CHANGERCON               32586


251.#define DIALOG_RESOURCES_MENU           21750


252.#define DIALOG_RESOURCES_INTERIOR       21751


253.#define DIALOG_RESOURCES_VEHICLE    21752


254.//#define DMMENU 1309


255.//#define OOCMENU 1308


256.#define SEXMENU 1335


257.//#define PGMENU 1431


258.//#define CKMENU 1232


259.//#define PCMENU 3641*/


260.#define AGEMENU 5625


261.#define HOUSES_INT 6000


262.#define CHOUSES_INT 2121


263.#define MAX_TRUNK_SLOTS         (6) // Is actually 4.


264.#define MAX_VEHICLE_MODELS      (200)


265.#define MAX_PLYVEH_RATIO        (50) // per player.


266.#define BUSINESSES_INT 5000


267.#define SKINMENU 1318


268.#define UPGRADEMENU6 1313


269.#define UPGRADEMENU5 1312


270.#define UPGRADEMENU4 1311


271.#define UPGRADEMENU3 1310


272.#define DIALOG_UPDATES (30000)


273.#define UM2 1309


274.#define UPGRADEMENU1 1308


275.#define mapmenu 6767


276.#define FBI2 1307


277.#define FBI1 1306


278.#define VEHMENU3 1305


279.#define VEHMENU2 1304


280.#define VEHMENU1 1303


281.#define CARMENU 1302


282.#define CARMENU2 1301


283.#define CARMENU3 1300


284.#define CARMENU4 1299


285.#define CARMENU5 1298


286.#define CARMENU6 1297


287.#define CARMENU7 1296


288.#define CARMENU8 1295


289.#define CARMENU9 1294


290.#define DMVMENU 1333


291.#define DSVMENU 1334


292.#define CARMENU10 1293


293.#define CARMENU11 1292


294.#define CARMENU12 1291


295.#define CARMENU13 1290


296.#define CARMENU14 1289


297.//--------------------------------------[TEAM COLORS]--------------------------------//


298.#define TCOLOR_VIP 0xECFF0000


299.#define TCOLOR_WHITE 0xFFFFFF00


300.#define TCOLOR_LIGHTGREEN 0x9ACD3200


301.#define TCOLOR_NAVYBLUE 0x8D8DFF00


302.#define TCOLOR_BEIGE 0xA5937000


303.#define TCOLOR_GREY 0xBFC0C200


304.#define TCOLOR_DARKGREY 0x52545900


305.#define TCOLOR_BLUE 0x2641FE00


306.#define TCOLOR_LIGHTBLUE 0x2B77A100


307.#define TCOLOR_YELLOW 0xFFFF0000


308.#define TCOLOR_HELP 0x00D700FF


309.#define TCOLOR_FIND 0x9B0000AA


310.#define TCOLOR_WANTED 0xFF0000AA


311.#define TCOLOR_PRISON 0xF4A41900


312.#define TCOLOR_HOSPITAL 0xAFAFAF00


313.#define TCOLOR_PARAMEDIC 0xFF828200


314.//--------------------------------------[TURF WAR]------------------------------------


315./*#define COLOR_TWWHITE 0xFFFFFFAA


316.#define COLOR_TWYELLOW 0xFFFF00AA


317.#define COLOR_TWPINK 0xE75480AA


318.#define COLOR_TWRED 0xFF0000AA


319.#define COLOR_TWBROWN 0x654321AA


320.#define COLOR_TWGRAY 0x808080AA


321.#define COLOR_TWOLIVE 0x808000AA


322.#define COLOR_TWPURPLE 0x800080AA


323.#define COLOR_TWTAN 0xD2B48CAA


324.#define COLOR_TWAQUA 0x00FFFFAA


325.#define COLOR_TWORANGE 0xFF8C00AA


326.#define COLOR_TWAZURE 0x007FFFAA


327.#define COLOR_TWGREEN 0x008000AA


328.#define COLOR_TWBLUE 0x0000FFAA


329.#define COLOR_TWBLACK 0x000000AA


330.#define TW_WAITDELAY  5 // TESTING*/


331.//--------------------------------------[Fire System]---------------------------------/


332.#define MAX_FLAMES 100                                          // maxmimal flames


333.#define BurnOthers                                                      // Should other players burn, too, if they are touching a burning player?


334.#define FireMessageColor 0x00FF55FF                     // color used for the extinguish-message


335. 


336.#define FLAME_ZONE                                      1.2     // radius in which you start burning if you're too close to a flame


337.#define ONFOOT_RADIUS                           1.5             // radius in which you can extinguish the flames by foot


338.#define PISSING_WAY                                     2.0             // radius in which you can extinguish the flames by peeing


339.#define CAR_RADIUS                                      8.0             // radius in which you can extinguish the flames by firetruck/SWAT Van


340.#define Z_DIFFERENCE                            2.5             // height which is important for the accurancy of extinguishing. please do not change


341.#define EXTINGUISH_TIME_VEHICLE         1               // time you have to spray at the fire with a firetruck (seconds)


342.#define EXTINGUISH_TIME_ONFOOT          4               // time you have to spray at the fire onfoot (seconds)


343.#define EXTINGUISH_TIME_PEEING          10              // time you have to pee at the fire (seconds)


344.#define EXTINGUISH_TIME_PLAYER          3               // time it takes to extinguish a player (seconds)


345.#define FIRE_OBJECT_SLOT                        1               // the slot used with SetPlayerAttachedObject and RemovePlayerAttachedObject


346.//---------------------------------------[Locations]----------------------------------//


347.#if defined LOS_SANTOS


348.        #define LocationGet IsLocationLosSantos


349.#endif


350.#if defined SAN_FIERRO


351.        #define LocationGet IsLocationSanFierro


352.#endif


353.#if defined LAS_VENTURAS


354.        #define LocationGet IsLocationLasVenturas


355.#endif


356.//---------------------------------------[PayPhone]-----------------------------------//


357.#define DACCT32 2137


358.#define DACCT33 2138


359.//------------------------------------------[SPEC]-------------------------------------//


360.#define ADMIN_SPEC_TYPE_NONE 0


361.#define ADMIN_SPEC_TYPE_PLAYER 1


362.#if defined FILTERSCRIPT


363. 


364.enum pInfo


365.{


366.pGiftBoxes


367.};


368. 


369.public OnFilterScriptInit()


370.{


371.        print("\n--------------------------------------");


372.        print(" Giftbox Filterscript by Brad");


373.        print("--------------------------------------\n");


374.        return 1;


375.}


376. 


377.public OnFilterScriptExit()


378.{


379.        return 1;


380.}


381. 


382.#else


383. 


384.main()


385.{


386.        print("\n----------------------------------");


387.        print(" Blank Gamemode by your name here");


388.        print("----------------------------------\n");


389.}


390. 


391.#endif


392. 


393.public OnGameModeInit()


394.{


395.        // Don't use these lines if it's a filterscript


396.        SetGameModeText("Blank Script");


397.        AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);


398.        return 1;


399.}


400. 


401.public OnGameModeExit()


402.{


403.        return 1;


404.}


405. 


406.public OnPlayerRequestClass(playerid, classid)


407.{


408.        SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);


409.        SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);


410.        SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);


411.        return 1;


412.}


413. 


414.public OnPlayerConnect(playerid)


415.{


416.        return 1;


417.}


418. 


419.public OnPlayerDisconnect(playerid, reason)


420.{


421.        return 1;


422.}


423. 


424.public OnPlayerSpawn(playerid)


425.{


426.        return 1;


427.}


428. 


429.public OnPlayerDeath(playerid, killerid, reason)


430.{


431.        return 1;


432.}


433. 


434.public OnVehicleSpawn(vehicleid)


435.{


436.        return 1;


437.}


438. 


439.public OnVehicleDeath(vehicleid, killerid)


440.{


441.        return 1;


442.}


443. 


444.public OnPlayerText(playerid, text[])


445.{


446.        return 1;


447.}


448. 


449.public OnPlayerCommandText(playerid, cmdtext[])


450.{


451.        CMD:Giftbox(playerid, params[])


452.        {


453.            if(PlayerInfo[playerid];[pAdmin]; >= 1337);


454.            {


455.                if(!giftsenabled)


456.                {


457.                    new randbox = random(6);


458.                    switch(randbox)


459.                    {


460.                        case 0: randbox = 19058;


461.                        case 1: randbox = 19056;


462.                        case 2: randbox = 19055;


463.                        case 3: randbox = 19057;


464.                        case 4: randbox = 19054;


465.                        case 5, 6: randbox = 19056;


466.                    }


467.                        new Float:x, Float:y, Float:z, Float:a, location[MAX_ZONE_NAME];


468.                        GetPlayerPos(playerid, x, y, z);


469.                        GetPlayerFacingAngle(playerid, a);


470.                                dynamicgift = CreateDynamicObject(randbox, x, y, z-0.4, 0.0, 0.0, a, -1, -1, -1, 200.0);


471.                                dynamicgift3DText = CreateStreamed3DTextLabel("/getgift",LIGHTBLUE, x, y, z+0.25,8.0,GetPlayerVirtualWorld(playerid));


472.                                SetPlayerPosEx(playerid, x, y, z+3);


473.                                giftsenabled = 1;


474.                                Get2DZone(location, MAX_ZONE_NAME, x, y, z);


475.                                format(string, sizeof(string), "{FF6347}%s has enabled gifts @ %s (%f, %f, %f)",PlayerName(playerid), location, x, y, z);


476.                                ABroadCast(RED, string, 1337);


477.                                format(string, sizeof(string), "* %s would like you to come to %s to receive free gifts and to enjoy yourself.", PlayerName(playerid), location);


478.                                SendClientMessageToAll(LIGHTBLUE, string);


479.                                return 1;


480.                        }


481.                        else


482.                        {


483.                            new Float:x, Float:y, Float:z, location[MAX_ZONE_NAME];


484.                            GetPlayerPos(playerid, x, y, z);


485.                        Get2DZone(location, MAX_ZONE_NAME, x, y, z);


486.                            giftsenabled = 0;


487.                                DestroyDynamicObject(dynamicgift);


488.                                DestroyDynamic3DTextLabel(dynamicgift3DText);


489.                                format(string, sizeof(string), "{FF6347}%s has disabled the gift box.",PlayerName(playerid));


490.                                ABroadCast(RED, string, 1337);


491.                                format(string, sizeof(string), "* Gifts at %s are now over. Enjoy your gift!", location);


492.                                SendClientMessageToAll(LIGHTBLUE, string);


493.                        }


494.                        return 1;


495.                }


496.                else


497.                {


498.                    SendClientMessage(playerid, GREY, "    You are not authorized to use that command.");


499.                }


500.                return 1;


501.        }


502.        CMD:getgift(playerid, params[])


503.        {


504.            if(giftsenabled)


505.            {


506.                if(gifttimer[playerid]) return SendClientMessage(playerid, GREY, "    You must wait an hour before getting another gift.");


507.                new Float:x, Float:y, Float:z;


508.                GetDynamicObjectPos(dynamicgift, x, y, z);


509.                        if(gettinggift[playerid]) return 1;


510.                        if(IsPlayerInRangeOfPoint(playerid, 3.0, x, y, z))


511.                        {


512.                            gettinggift[playerid] = 1;


513.                                format(string, sizeof(string), "* %s reaches inside the box with his eyes closed and grabs something.", PlayerName(playerid));


514.                                ProxDetector(30.0, playerid, string, PURPLE, PURPLE, PURPLE, PURPLE, PURPLE);


515.                                SetTimerEx("Gift", 1000, false, "i", playerid);


516.                                return 1;


517.                        }


518.                        else


519.                        {


520.                            SendClientMessage(playerid, GREY, "    You are not near a gift box.");


521.                            return 1;


522.                        }


523.                }


524.                else


525.                {


526.                    SendClientMessage(playerid, GREY, "Gifts are disabled. Try again later.");


527.                }


528.                return 1;


529.        }


530.                CMD:open(playerid, params[])


531.        {


532.            if(IsPlayerConnected(playerid))


533.            {


534.                if(PlayerInfo[playerid][pGiftBoxes] > 0)


535.                {


536.                    if (GetPVarInt(playerid, "GiftWait") == 0)


537.                    {


538.                        PlayerInfo[playerid][pGiftBoxes]--;


539.                        GiftPlayer(playerid);


540.                        SetPVarInt(playerid, "GiftWait", 3);


541.                                        return 1;


542.                                }


543.                                else return SendClientMessage(playerid, GREY, "    You must wait 3 seconds before opening another gift.");


544.                        }


545.                        else


546.                        {


547.                            SendClientMessage(playerid, GREY, "    You don't have any gifts to open.");


548.                            return 1;


549.                        }


550.                }


551.                return 1;


552.        }


553.        return 0;


554.}


555. 


556.public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)


557.{


558.        return 1;


559.}


560. 


561.public OnPlayerExitVehicle(playerid, vehicleid)


562.{


563.        return 1;


564.}


565. 


566.public OnPlayerStateChange(playerid, newstate, oldstate)


567.{


568.        return 1;


569.}


570. 


571.public OnPlayerEnterCheckpoint(playerid)


572.{


573.        return 1;


574.}


575. 


576.public OnPlayerLeaveCheckpoint(playerid)


577.{


578.        return 1;


579.}


580. 


581.public OnPlayerEnterRaceCheckpoint(playerid)


582.{


583.        return 1;


584.}


585. 


586.public OnPlayerLeaveRaceCheckpoint(playerid)


587.{


588.        return 1;


589.}


590. 


591.public OnRconCommand(cmd[])


592.{


593.        return 1;


594.}


595. 


596.public OnPlayerRequestSpawn(playerid)


597.{


598.        return 1;


599.}


600. 


601.public OnObjectMoved(objectid)


602.{


603.        return 1;


604.}


605. 


606.public OnPlayerObjectMoved(playerid, objectid)


607.{


608.        return 1;


609.}


610. 


611.public OnPlayerPickUpPickup(playerid, pickupid)


612.{


613.        return 1;


614.}


615. 


616.public OnVehicleMod(playerid, vehicleid, componentid)


617.{


618.        return 1;


619.}


620. 


621.public OnVehiclePaintjob(playerid, vehicleid, paintjobid)


622.{


623.        return 1;


624.}


625. 


626.public OnVehicleRespray(playerid, vehicleid, color1, color2)


627.{


628.        return 1;


629.}


630. 


631.public OnPlayerSelectedMenuRow(playerid, row)


632.{


633.        return 1;


634.}


635. 


636.public OnPlayerExitedMenu(playerid)


637.{


638.        return 1;


639.}


640. 


641.public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)


642.{


643.        return 1;


644.}


645. 


646.public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)


647.{


648.        return 1;


649.}


650. 


651.public OnRconLoginAttempt(ip[], password[], success)


652.{


653.        return 1;


654.}


655. 


656.public OnPlayerUpdate(playerid)


657.{


658.        return 1;


659.}


660. 


661.public OnPlayerStreamIn(playerid, forplayerid)


662.{


663.        return 1;


664.}


665. 


666.public OnPlayerStreamOut(playerid, forplayerid)


667.{


668.        return 1;


669.}


670. 


671.public OnVehicleStreamIn(vehicleid, forplayerid)


672.{


673.        return 1;


674.}


675. 


676.public OnVehicleStreamOut(vehicleid, forplayerid)


677.{


678.        return 1;


679.}


680. 


681.public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])


682.{


683.        return 1;


684.}


685. 


686.public OnPlayerClickPlayer(playerid, clickedplayerid, source)


687.{


688.        return 1;


689.}
OR LINK TO PASTEBIN ( MY SCRIPT) http://pastebin.com/izdt6E37 PLEASE HELP FIRST REPLY +1 REP
Reply
#2

https://sampforum.blast.hk/showthread.php?tid=274028
Reply
#3

If someone could fix up the lines, that would be great
Reply
#4

Remove line 449, 450, 553, 554
Reply
#5

More errors
Code:
C:\Users\Bradley\Desktop\gifttboxxx.pwn(198) : warning 201: redefinition of constant/macro (symbol "MAX_ROADBLOCKS")
C:\Users\Bradley\Desktop\gifttboxxx.pwn(453) : error 017: undefined symbol "PlayerInfo"
C:\Users\Bradley\Desktop\gifttboxxx.pwn(453) : warning 215: expression has no effect
C:\Users\Bradley\Desktop\gifttboxxx.pwn(453) : error 001: expected token: ";", but found "]"
C:\Users\Bradley\Desktop\gifttboxxx.pwn(453) : error 029: invalid expression, assumed zero
C:\Users\Bradley\Desktop\gifttboxxx.pwn(453) : fatal error 107: too many error messages on one line
The new Script >>> http://pastebin.com/gTqVPFkg
Reply
#6

this is not a section for script requests, its for helping people learn how to script, either stop being lazy and learn from your mistakes or post in the script request thread
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)