09.12.2010, 09:20
Hi... i have a problem, when i compile my script, i have 2 warns..
and i think this is the definition of line 377
what is wrong? the script isn't mine
Код:
(660) : warning 213: tag mismatch LINE 660 : minfo[playerid][Pay] = MissionPay;
Код:
(377) : warning 202: number of arguments does not match definition LINE 370 - 386: if(!strcmp("/work", cmdtext, true)) { new pvehiclemodel = GetVehicleModel(GetPlayerVehicleID(playerid)); if (pvehiclemodel == 403 || pvehiclemodel == 514 || pvehiclemodel == 515) { new string[200]; new rand = random(sizeof(TruckingMissionRandom)); CreatePlayerMission(playerid, TruckingMissionRandom[rand][UseTrailerCheck], TruckingMissionRandom[rand][MissionPay], TruckingMissionRandom[rand][loadx],TruckingMissionRandom[rand][loady], TruckingMissionRandom[rand][loadz], TruckingMissionRandom[rand][unloadx],TruckingMissionRandom[rand][unloady], TruckingMissionRandom[rand][unloadz]); format(string, sizeof(string), "You are doing mission: %s", TruckingMissionRandom[rand][MissionName]); SendClientMessage(playerid, 0x00FF00FF, string); } else { SendClientMessage(playerid, 0xFF0000AA, "Im sorry but this mission requires that you use a vehicle that can pull a semi trailer Ex: Roadtrain with an Artict1!"); } return 1; }
Код:
new TruckingMissionRandom[][TruckingMissionInfo] = { // {"Mission Text", UseTrailerCheck, MissionPay, loadx, loady, loadz, unloadx, unloady, unloadz} /* KEY: ** "Mission Text" = The text the player will see when he/she is doing the mission! ** UseTrailerCheck = Weather or not the mission requires you use a vehile that has a trailer. Ex: Roadtrain with an Artict1 trailer! ** MissionPay = The amount the player will recive for doing there mission! ** loadx, loady, and loadz = The loading coordinates of the loading checkpoint! ** unloadx, unloadx, unloadx = The un-loading coordinates of the unloading checkpoint! */ {"We need a load of Holy Water from LVA Freight Depot to LVA Church", true, 250, 1701.9475,940.5465,10.8203, 1496.2524,772.1427,10.8203}, {"We need a load of Junk Car Parts from LVA Freight Depot to Shody Ottos", true, 500, 1701.9475,940.5465,10.8203, 1727.6351,1812.1750,10.8203}, {"We need a load of Drills From LS Dock Warehouse 2 To Whetstone Mine", true, 9000, 2777.9772949219, -2455.0886230469, 13.285285949707, -1875.4030761719, -1688.1228027344, 21.399225234985}, {"We need a load of Top Secret Devices From Randolf Industrial Estate To Area 69", true, 5000, 1594.1290283203, 724.00372314453, 10.469537734985, 134.54122924805, 1945.7899169922, 19.001808166504}, {"We need a load of Boxes From LV Depot To SF Depot", true, 7500, 1723.5736083984, 979.20190429688, 10.469537734985, -2129.4470214844, -84.854187011719, 34.969539642334}, {"We need a load of Propellers From Ls Dock Warehouse 1 To Verdant Meadows", true, 8000, 2777.7497558594, -2417.4836425781, 13.285341262817, 377.30389404297, 2534.0485839844, 16.250215530396}, {"We need a load of Soldiers Mail From Area 69 To 5 Tree Logistics", true, 6500, 134.54122924805, 1945.7899169922, 19.001808166504, -493.13043212891, -514.57434082031, 25.167068481445}, {"We need a load of Landing Gears From 5 Tree Logistics To Las Venturas Airport", true, 8000, -493.13043212891, -514.57434082031, 25.167068481445, 1627.9038085938, 1611.8803710938, 20.285793304443}, {"We need a load of Oxegen Canisters From RS Haul To SF Air", true, 7000, -83.956573486328, -1126.0145263672, 0.73391342163086, -1447.4144287109, -437.23773193359, 5.5075283050537}, {"We need a load of Radars From Verdant Meadows To San Fierro Airport", true, 8500, 377.30389404297, 2534.0485839844, 16.250215530396, -1447.4144287109, -437.23773193359, 5.5075283050537} };