Ez a szekció lehetővé teszi a felhasználó által írt összes hozzászólás megtekintését. Vedd figyelembe, hogy csak azokba a fórumokba írt hozzászólásokat látod, amelyekhez hozzáférésed van.
Oldalak: [1]
1
Segítségkérés / Pawno mindent hibásnak talál« Dátum: 2013. augusztus 27. - 13:08:36 »
Sziasztok!
Elõre is bocsánat, ha nem jól csináltam valamit, ma regisztráltam az oldalra, nagyon kezdõ vagyok. Szeretnék csinálni egy szervert, haverokkal játszanánk egyet a PPC_Trucking moddal. A problémám az lenne, hogy szeretnék ezt-azt módosítani a modon, de sehogy sem jön össze. Kezdtem a Housemenu dialogban az autók árainak változtatásával, át is írom a \"PPC_DefBuyableVehicles.inc\"(pawno/include) fájlban az árakat, de semmi nem változik.. ha lefuttatom pawnoval számos hibaüzenetet(warning 203: symbol is never used:...) kapok, amire elvileg az lenne a megoldás, hogy szedjem ki és akkor mûködik.. ..ezt olvastam neten.. ..de ha én azt kiszedem, akkor mi alapján dönti el az árakat?? Lehet az is, hogy abszolút nem jó helyen próbálkozok, szóval az összes létezõ segítséget elfogadom. Íme a PPC_DefBuyableVehicles.inc: // This file holds an array of defined buyable vehicles, used in the /buycar and /rentcar dialogs #define VClassBike 1 #define VClassBoat 2 #define VClassConvertible 3 #define VClassHelicopter 4 #define VClassIndustrial 5 #define VClassLowRider 6 #define VClassOffRoad 7 #define VClassPlane 8 #define VClassPublic 9 #define VClassRCVehicle 10 #define VClassSaloons 11 #define VClassSportCar 12 #define VClassStationCar 13 #define VClassTrailer 14 #define VClassUnique 15 enum TBuyableVehicle { CarName[50], // Holds the name of the vehicle VehicleClass, // Holds the ID of the vehicleclass CarModel, // Holds the model-ID of the vehicle Price // Holds the price for the vehicle (renting it will be 10% of this price) } new ABuyableVehicles[][TBuyableVehicle] = { {\"Admiral\", VClassSaloons, 445, 20000}, {\"Alpha\", VClassSportCar, 602, 20000}, {\"Ambulance\", VClassPublic, 416, 60000}, {\"Andromada\", VClassPlane, 592, 5000000}, {\"Article Trailer\", VClassTrailer, 591, 70000}, // {\"AT400\", VClassPlane, 577, 50000}, {\"Baggage\", VClassUnique, 485, 30000}, {\"Baggage Trailer A\", VClassTrailer, 606, 15000}, {\"Baggage Trailer B\", VClassTrailer, 607, 15000}, {\"Bandito\", VClassOffRoad, 568, 40000}, {\"Banshee\", VClassSportCar, 429, 50000}, {\"Barracks\", VClassPublic, 433, 100000}, {\"Beagle\", VClassPlane, 511, 1500000}, {\"Benson\", VClassIndustrial, 499, 17000}, {\"Berkley\'s RC Van\", VClassIndustrial, 459, 15000}, {\"BF-400\", VClassBike, 581, 25000}, {\"Bike\", VClassBike, 509, 2500}, {\"Blade\", VClassLowRider, 536, 25000}, {\"Blista Compact\", VClassSportCar, 496, 15000}, {\"Bloodring Banger\", VClassSaloons, 504, 60000}, {\"BMX\", VClassBike, 481, 2000}, {\"Bobcat\", VClassIndustrial, 422, 20000}, {\"Boxville 1\", VClassIndustrial, 498, 30000}, {\"Boxville 2\", VClassIndustrial, 609, 30000}, {\"Bravura\", VClassSaloons, 401, 25000}, {\"Broadway\", VClassLowRider, 575, 25000}, // {\"Brownstreak (train)\", VClassUnique, 538, 50000}, {\"Buccaneer\", VClassSaloons, 518, 25000}, {\"Buffalo\", VClassSportCar, 402, 30000}, {\"Bullet\", VClassSportCar, 541, 50000}, {\"Burrito\", VClassIndustrial, 482, 25000}, {\"Bus\", VClassPublic, 431, 70000}, {\"Cabbie\", VClassPublic, 438, 40000}, {\"Caddy\", VClassUnique, 457, 10000}, {\"Cadrona\", VClassSaloons, 527, 15000}, {\"Camper\", VClassUnique, 483, 20000}, {\"Cargo Trailer\", VClassTrailer, 435, 70000}, {\"Cargobob\", VClassHelicopter, 548, 500000}, {\"Cement Truck\", VClassIndustrial, 524, 70000}, {\"Cheetah\", VClassSportCar, 415, 50000}, {\"Clover\", VClassSaloons, 542, 15000}, {\"Club\", VClassSportCar, 589, 30000}, {\"Coach\", VClassPublic, 437, 70000}, {\"Coastguard\", VClassBoat, 472, 100000}, {\"Combine Harvester\", VClassUnique, 532, 125000}, {\"Comet\", VClassConvertible, 480, 50000}, {\"Cropduster\", VClassPlane, 512, 500000}, {\"DFT-30\", VClassIndustrial, 578, 50000}, {\"Dinghy\", VClassBoat, 473, 50000}, {\"Dodo\", VClassPlane, 593, 150000}, {\"Dozer\", VClassUnique, 486, 100000}, {\"Dumper\", VClassUnique, 406, 125000}, {\"Dune\", VClassOffRoad, 573, 100000}, {\"Elegant\", VClassSaloons, 507, 20000}, {\"Elegy\", VClassSaloons, 562, 30000}, {\"Emperor\", VClassSaloons, 585, 20000}, {\"Enforcer\", VClassPublic, 427, 500000}, {\"Esperanto\", VClassSaloons, 419, 20000}, {\"Euros\", VClassSportCar, 587, 30000}, {\"Faggio\", VClassBike, 462, 10000}, {\"Farm Trailer\", VClassTrailer, 610, 30000}, {\"FCR-900\", VClassBike, 521, 20000}, {\"Feltzer\", VClassConvertible, 533, 35000}, {\"Firetruck\", VClassPublic, 407, 500000}, {\"Firetruck LA\", VClassPublic, 544, 500000}, {\"Flash\", VClassSportCar, 565, 30000}, {\"Flatbed\", VClassIndustrial, 455, 60000}, {\"Fluids Trailer\", VClassTrailer, 584, 70000}, {\"Forklift\", VClassUnique, 530, 10000}, {\"Fortune\", VClassSaloons, 526, 20000}, {\"Freeway\", VClassBike, 463, 15000}, // {\"Freight (train)\", VClassUnique, 537, 50000}, // {\"Freight Box Trailer (train)\", VClassTrailer, 590, 50000}, // {\"Freight Flat Trailer (train)\", VClassTrailer, 569, 50000}, {\"Glendale\", VClassSaloons, 466, 20000}, {\"Glendale Shit\", VClassSaloons, 604, 10000}, {\"Greenwood\", VClassSaloons, 492, 20000}, {\"Hermes\", VClassSaloons, 474, 20000}, {\"Hotdog\", VClassUnique, 588, 50000}, {\"Hotknife\", VClassUnique, 434, 50000}, {\"Hotring Racer 1\", VClassSportCar, 494, 100000}, {\"Hotring Racer 2\", VClassSportCar, 502, 100000}, {\"Hotring Racer 3\", VClassSportCar, 503, 100000}, {\"HPV1000\", VClassPublic, 523, 500000}, {\"Hunter\", VClassHelicopter, 425, 500000}, {\"Huntley\", VClassOffRoad, 579, 30000}, {\"Hustler\", VClassUnique, 545, 30000}, {\"Hydra\", VClassPlane, 520, 500000}, {\"Infernus\", VClassSportCar, 411, 50000}, {\"Intruder\", VClassSaloons, 546, 20000}, {\"Jester\", VClassSportCar, 559, 50000}, {\"Jetmax\", VClassBoat, 493, 100000}, {\"Journey\", VClassUnique, 508, 50000}, {\"Kart\", VClassUnique, 571, 10000}, {\"Landstalker\", VClassOffRoad, 400, 20000}, {\"Launch\", VClassBoat, 595, 150000}, {\"Leviathan\", VClassHelicopter, 417, 150000}, {\"Linerunner\", VClassIndustrial, 403, 70000}, {\"Majestic\", VClassSaloons, 517, 20000}, {\"Manana\", VClassSaloons, 410, 15000}, {\"Marquis\", VClassBoat, 484, 150000}, {\"Maverick\", VClassHelicopter, 487, 100000}, {\"Merit\", VClassSaloons, 551, 20000}, {\"Mesa\", VClassOffRoad, 500, 30000}, {\"Monster\", VClassOffRoad, 444, 70000}, {\"Monster A\", VClassOffRoad, 556, 70000}, {\"Monster B\", VClassOffRoad, 557, 70000}, {\"Moonbeam\", VClassStationCar, 418, 20000}, {\"Mountain Bike\", VClassBike, 510, 5000}, {\"Mower\", VClassUnique, 572, 5000}, {\"Mr Whoopee\", VClassUnique, 423, 50000}, {\"Mule\", VClassIndustrial, 414, 30000}, {\"Nebula\", VClassSaloons, 516, 20000}, {\"Nevada\", VClassPlane, 553, 500000}, {\"Newsvan\", VClassIndustrial, 582, 60000}, {\"NRG-500\", VClassBike, 522, 40000}, {\"Oceanic\", VClassSaloons, 467, 20000}, {\"Ore Trailer\", VClassTrailer, 450, 70000}, {\"Packer\", VClassIndustrial, 443, 80000}, {\"Patriot\", VClassOffRoad, 470, 50000}, {\"PCJ-600\", VClassBike, 461, 30000}, {\"Perenniel\", VClassStationCar, 404, 20000}, {\"Phoenix\", VClassSportCar, 603, 50000}, {\"Picador\", VClassIndustrial, 600, 20000}, {\"Pizzaboy\", VClassBike, 448, 15000}, {\"Police Car (LSPD)\", VClassPublic, 596, 500000}, {\"Police Car (LVPD)\", VClassPublic, 598, 500000}, {\"Police Car (SFPD)\", VClassPublic, 597, 500000}, {\"Police Maverick\", VClassHelicopter, 497, 500000}, {\"Police Ranger\", VClassPublic, 599, 500000}, {\"Pony\", VClassIndustrial, 413, 30000}, {\"Predator\", VClassBoat, 430, 500000}, {\"Premier\", VClassSaloons, 426, 20000}, {\"Previon\", VClassSaloons, 436, 20000}, {\"Primo\", VClassSaloons, 547, 20000}, {\"Quad\", VClassBike, 471, 20000}, {\"Raindance\", VClassHelicopter, 563, 150000}, {\"Rancher 1\", VClassOffRoad, 489, 30000}, {\"Rancher 2\", VClassOffRoad, 505, 30000}, // {\"RC Bandit\", VClassRCVehicle, 441, 50000}, // {\"RC Baron\", VClassRCVehicle, 464, 50000}, // {\"RC Cam\", VClassRCVehicle, 594, 50000}, // {\"RC Goblin\", VClassRCVehicle, 501, 50000}, // {\"RC Raider\", VClassRCVehicle, 465, 50000}, // {\"RC Tiger\", VClassRCVehicle, 564, 50000}, {\"Reefer\", VClassBoat, 453, 100000}, {\"Regina\", VClassStationCar, 479, 20000}, {\"Remington\", VClassLowRider, 534, 20000}, {\"Rhino\", VClassPublic, 432, 500000}, {\"Roadtrain\", VClassIndustrial, 515, 70000}, {\"Romero\", VClassUnique, 442, 50000}, {\"Rumpo\", VClassIndustrial, 440, 30000}, {\"Rustler\", VClassPlane, 476, 150000}, {\"Sabre\", VClassSportCar, 475, 40000}, {\"Sadler\", VClassIndustrial, 543, 30000}, {\"Sadler Shit\", VClassIndustrial, 605, 30000}, {\"SAN News Maverick\", VClassHelicopter, 488, 150000}, {\"Sanchez\", VClassBike, 468, 20000}, {\"Sandking\", VClassOffRoad, 495, 100000}, {\"Savanna\", VClassLowRider, 567, 30000}, {\"Seasparrow\", VClassHelicopter, 447, 100000}, {\"Securicar\", VClassUnique, 428, 70000}, {\"Sentinel\", VClassSaloons, 405, 30000}, {\"Shamal\", VClassPlane, 519, 150000}, {\"Skimmer\", VClassPlane, 460, 150000}, {\"Slamvan\", VClassLowRider, 535, 50000}, {\"Solair\", VClassStationCar, 458, 20000}, {\"Sparrow\", VClassHelicopter, 469, 100000}, {\"Speeder\", VClassBoat, 452, 150000}, {\"Squallo\", VClassBoat, 446, 150000}, {\"Stafford\", VClassSaloons, 580, 50000}, {\"Stallion\", VClassConvertible, 439, 20000}, {\"Stratum\", VClassStationCar, 561, 30000}, // {\"Streak Trailer (train)\", VClassTrailer, 570, 50000}, {\"Stretch\", VClassUnique, 409, 60000}, {\"Stuntplane\", VClassPlane, 513, 150000}, {\"Sultan\", VClassSaloons, 560, 50000}, {\"Sunrise\", VClassSaloons, 550, 30000}, {\"Super GT\", VClassSportCar, 506, 50000}, {\"S.W.A.T.\", VClassPublic, 601, 500000}, {\"Sweeper\", VClassUnique, 574, 20000}, {\"Tahoma\", VClassLowRider, 566, 20000}, {\"Tampa\", VClassSaloons, 549, 20000}, {\"Tanker\", VClassIndustrial, 514, 70000}, {\"Taxi\", VClassPublic, 420, 40000}, {\"Tornado\", VClassLowRider, 576, 20000}, {\"Towtruck\", VClassUnique, 525, 60000}, {\"Tractor\", VClassIndustrial, 531, 20000}, // {\"Tram\", VClassUnique, 449, 50000}, {\"Trashmaster\", VClassIndustrial, 408, 60000}, {\"Tropic\", VClassBoat, 454, 150000}, {\"Tug\", VClassUnique, 583, 30000}, {\"Tug Stairs Trailer\", VClassTrailer, 608, 15000}, {\"Turismo\", VClassSportCar, 451, 50000}, {\"Uranus\", VClassSportCar, 558, 30000}, {\"Utility Trailer\", VClassTrailer, 611, 30000}, {\"Utility Van\", VClassIndustrial, 552, 50000}, {\"Vincent\", VClassSaloons, 540, 30000}, {\"Virgo\", VClassSaloons, 491, 30000}, {\"Voodoo\", VClassLowRider, 412, 20000}, {\"Vortex\", VClassUnique, 539, 60000}, {\"Walton\", VClassIndustrial, 478, 30000}, {\"Washington\", VClassSaloons, 421, 20000}, {\"Wayfarer\", VClassBike, 586, 30000}, {\"Willard\", VClassSaloons, 529, 20000}, {\"Windsor\", VClassConvertible, 555, 50000}, {\"Yankee\", VClassIndustrial, 456, 50000}, {\"Yosemite\", VClassIndustrial, 554, 40000}, {\"ZR-350\", VClassSportCar, 477, 50000} }; // This function searches the ABuyableVehicles array to search for the model and returns the index in the array VehicleBuyable_GetIndex(vModel) { // Loop through all vehicles in the ABuyableVehicles array for (new i; i < sizeof(ABuyableVehicles); i++) { // Check if the model of the current vehicle is the same as the given model if (ABuyableVehicles[CarModel] == vModel) return i; // Return the index of the array where the carmodel was found } return -1; }
Oldalak: [1]
|