Szerző Téma: Kocsilehivó + GameMode-m = semmi (FONTOS)  (Megtekintve 647 alkalommal)

Kocsilehivó + GameMode-m = semmi (FONTOS)
« Dátum: 2011. április 23. - 17:06:29 »
0 Show voters
Csá mindenki!
Az a bajom hogy van egy ilyen kocsilehívóm:
 
#include <a_samp>
new VehicleNames[212][] = {
{\"landstalker\"},{\"bravura\"},{\"buffalo\"},{\"linerunner\"},{\"perrenial\"},{\"sentinel\"},{\"dumper\"},
{\"firetruck\"},{\"trashmaster\"},{\"stretch\"},{\"manana\"},{\"infernus\"},{\"voodoo\"},{\"pony\"},{\"mule\"},
{\"cheetah\"},{\"ambulance\"},{\"leviathan\"},{\"moonbeam\"},{\"esperanto\"},{\"taxi\"},{\"washington\"},
{\"bobcat\"},{\"mr whoopee\"},{\"bfinjection\"},{\"hunter\"},{\"premier\"},{\"enforcer\"},{\"securicar\"},
{\"banshee\"},{\"predator\"},{\"bus\"},{\"rhino\"},{\"barracks\"},{\"hotknife\"},{\"trailer 1\"},{\"previon\"},
{\"coach\"},{\"cabbie\"},{\"stallion\"},{\"rumpo\"},{\"rcbandit\"},{\"romero\"},{\"packer\"},{\"monster\"},
{\"admiral\"},{\"squalo\"},{\"seasparrow\"},{\"pizzaboy\"},{\"tram\"},{\"trailer 2\"},{\"turismo\"},
{\"speeder\"},{\"reefer\"},{\"tropic\"},{\"flatbed\"},{\"yankee\"},{\"caddy\"},{\"solair\"},{\"rcvan\"},
{\"skimmer\"},{\"pcj-600\"},{\"faggio\"},{\"freeway\"},{\"rc baron\"},{\"rc raider\"},{\"glendale\"},{\"oceanic\"},
{\"sanchez\"},{\"sparrow\"},{\"patriot\"},{\"quad\"},{\"coastguard\"},{\"dinghy\"},{\"hermes\"},{\"sabre\"},
{\"rustler\"},{\"zr-350\"},{\"walton\"},{\"regina\"},{\"comet\"},{\"bmx\"},{\"burrito\"},{\"camper\"},{\"marquis\"},
{\"baggage\"},{\"dozer\"},{\"maverick\"},{\"news chopper\"},{\"rancher\"},{\"fbi rancher\"},{\"Virgo\"},{\"greenwood\"},
{\"jetmax\"},{\"hotring\"},{\"sandking\"},{\"blista\"},{\"police maverick\"},{\"boxville\"},{\"benson\"},
{\"mesa\"},{\"rcgoblin\"},{\"hotring racer a\"},{\"hotring racer b\"},{\"bloodring banger\"},{\"rancher\"},
{\"super gt\"},{\"elegant\"},{\"journey\"},{\"bike\"},{\"mountainbike\"},{\"beagle\"},{\"cropduster\"},{\"stunt\"},
{\"tanker\"}, {\"roadtrain\"},{\"nebula\"},{\"majestic\"},{\"buccaneer\"},{\"shamal\"},{\"hydra\"},{\"fcr900\"},
{\"nrg\"},{\"hpv1000\"},{\"cement truck\"},{\"tow truck\"},{\"fortune\"},{\"cadrona\"},{\"fbi truck\"},
{\"willard\"},{\"forklift\"},{\"tractor\"},{\"combine\"},{\"feltzer\"},{\"remington\"},{\"slamvan\"},
{\"blade\"},{\"freight\"},{\"streak\"},{\"vortex\"},{\"vincent\"},{\"bullet\"},{\"clover\"},{\"sadler\"},
{\"firetruck\"},{\"hustler\"},{\"intruder\"},{\"primo\"},{\"cargobob\"},{\"tampa\"},{\"sunrise\"},{\"merit\"},
{\"utility\"},{\"nevada\"},{\"yosemite\"},{\"windsor\"},{\"monster a\"},{\"monster b\"},{\"uranus\"},{\"jester\"},
{\"sultan\"},{\"stratum\"},{\"elegy\"},{\"raindance\"},{\"rc tiger\"},{\"flash\"},{\"tahoma\"},{\"savanna\"},
{\"bandito\"},{\"freight flat\"},{\"streak carriage\"},{\"kart\"},{\"mower\"},{\"duneride\"},{\"sweeper\"},
{\"broadway\"},{\"tornado\"},{\"at400\"},{\"dft30\"},{\"huntley\"},{\"stafford\"},{\"bf400\"},{\"newsvan\"},
{\"tug\"},{\"trailer 3\"},{\"emperor\"},{\"wayfarer\"},{\"euros\"},{\"hotdog\"},{\"club\"},{\"freightcarriage\"},
{\"trailer 3\"},{\"andromada\"},{\"dodo\"},{\"rccam\"},{\"launch\"},{\"ploice ls\"},{\"police sf\"},
{\"police car (lvpd)\"},{\"police ranger\"},{\"picador\"},{\"swatvan\"},{\"alpha\"},{\"phoenix\"},{\"glendale\"},
{\"sadler\"},{\"luggage trailer a\"},{\"luggage trailer b\"},{\"stair trailer\"},{\"boxville\"},{\"farm plow\"},
{\"utility trailer\"}
};
new VehicleNamesSCM[212][] = {//ez azért kell, hogy a chatben nagy betûkkel irja ki.
{\"Landstalker\"},{\"Bravura\"},{\"Buffalo\"},{\"Linerunner\"},{\"Perrenial\"},{\"Sentinel\"},{\"Dumper\"},
{\"Firetruck\"},{\"Trashmaster\"},{\"Stretch\"},{\"Manana\"},{\"Infernus\"},{\"Voodoo\"},{\"Pony\"},{\"Mule\"},
{\"Cheetah\"},{\"Ambulance\"},{\"Leviathan\"},{\"Moonbeam\"},{\"Esperanto\"},{\"Taxi\"},{\"Washington\"},
{\"Bobcat\"},{\"Mr Whoopee\"},{\"BF Injection\"},{\"Hunter\"},{\"Premier\"},{\"Enforcer\"},{\"Securicar\"},
{\"Banshee\"},{\"Predator\"},{\"Bus\"},{\"Rhino\"},{\"Barracks\"},{\"Hotknife\"},{\"Trailer 1\"},{\"Previon\"},
{\"Coach\"},{\"Cabbie\"},{\"Stallion\"},{\"Rumpo\"},{\"RC Bandit\"},{\"Romero\"},{\"Packer\"},{\"Monster\"},
{\"Admiral\"},{\"Squalo\"},{\"Seasparrow\"},{\"Pizzaboy\"},{\"Tram\"},{\"Trailer 2\"},{\"Turismo\"},
{\"Speeder\"},{\"Reefer\"},{\"Tropic\"},{\"Flatbed\"},{\"Yankee\"},{\"Caddy\"},{\"Solair\"},{\"Berkley\'s RC Van\"},
{\"Skimmer\"},{\"PCJ-600\"},{\"Faggio\"},{\"Freeway\"},{\"RC Baron\"},{\"RC Raider\"},{\"Glendale\"},{\"Oceanic\"},
{\"Sanchez\"},{\"Sparrow\"},{\"Patriot\"},{\"Quad\"},{\"Coastguard\"},{\"Dinghy\"},{\"Hermes\"},{\"Sabre\"},
{\"Rustler\"},{\"ZR-350\"},{\"Walton\"},{\"Regina\"},{\"Comet\"},{\"BMX\"},{\"Burrito\"},{\"Camper\"},{\"Marquis\"},
{\"Baggage\"},{\"Dozer\"},{\"Maverick\"},{\"News Chopper\"},{\"Rancher\"},{\"FBI Rancher\"},{\"Virgo\"},{\"Greenwood\"},
{\"Jetmax\"},{\"Hotring\"},{\"Sandking\"},{\"Blista Compact\"},{\"Police Maverick\"},{\"Boxville\"},{\"Benson\"},
{\"Mesa\"},{\"RC Goblin\"},{\"Hotring Racer A\"},{\"Hotring Racer B\"},{\"Bloodring Banger\"},{\"Rancher\"},
{\"Super GT\"},{\"Elegant\"},{\"Journey\"},{\"Bike\"},{\"Mountain Bike\"},{\"Beagle\"},{\"Cropdust\"},{\"Stunt\"},
{\"Tanker\"}, {\"Roadtrain\"},{\"Nebula\"},{\"Majestic\"},{\"Buccaneer\"},{\"Shamal\"},{\"Hydra\"},{\"FCR-900\"},
{\"NRG-500\"},{\"HPV1000\"},{\"Cement Truck\"},{\"Tow Truck\"},{\"Fortune\"},{\"Cadrona\"},{\"FBI Truck\"},
{\"Willard\"},{\"Forklift\"},{\"Tractor\"},{\"Combine\"},{\"Feltzer\"},{\"Remington\"},{\"Slamvan\"},
{\"Blade\"},{\"Freight\"},{\"Streak\"},{\"Vortex\"},{\"Vincent\"},{\"Bullet\"},{\"Clover\"},{\"Sadler\"},
{\"Firetruck LA\"},{\"Hustler\"},{\"Intruder\"},{\"Primo\"},{\"Cargobob\"},{\"Tampa\"},{\"Sunrise\"},{\"Merit\"},
{\"Utility\"},{\"Nevada\"},{\"Yosemite\"},{\"Windsor\"},{\"Monster A\"},{\"Monster B\"},{\"Uranus\"},{\"Jester\"},
{\"Sultan\"},{\"Stratum\"},{\"Elegy\"},{\"Raindance\"},{\"RC Tiger\"},{\"Flash\"},{\"Tahoma\"},{\"Savanna\"},
{\"Bandito\"},{\"Freight Flat\"},{\"Streak Carriage\"},{\"Kart\"},{\"Mower\"},{\"Duneride\"},{\"Sweeper\"},
{\"Broadway\"},{\"Tornado\"},{\"AT-400\"},{\"DFT-30\"},{\"Huntley\"},{\"Stafford\"},{\"BF-400\"},{\"Newsvan\"},
{\"Tug\"},{\"Trailer 3\"},{\"Emperor\"},{\"Wayfarer\"},{\"Euros\"},{\"Hotdog\"},{\"Club\"},{\"Freight Carriage\"},
{\"Trailer 3\"},{\"Andromada\"},{\"Dodo\"},{\"RC Cam\"},{\"Launch\"},{\"Police Car (LSPD)\"},{\"Police Car (SFPD)\"},
{\"Police Car (LVPD)\"},{\"Police Ranger\"},{\"Picador\"},{\"S.W.A.T. Van\"},{\"Alpha\"},{\"Phoenix\"},{\"Glendale\"},
{\"Sadler\"},{\"Luggage Trailer A\"},{\"Luggage Trailer B\"},{\"Stair Trailer\"},{\"Boxville\"},{\"Farm Plow\"},
{\"Utility Trailer\"}
};
 
public OnPlayerCommandText(playerid, cmdtext[])
{
      new string[64];
      new x;
      new Float:angle = GetPlayerFacingAngle(playerid, angle);
/*     new tmp1[126];
      new tmp2[126];
      new color1, color2;
if(!strlen(tmp1)) color1 = random(126); else color1 = strval(tmp1);
if(!strlen(tmp2)) color2 = random(126); else color2 = strval(tmp2);
*/   for(x=0; x<212; x++){
      format(string,64,\"/%s\",VehicleNames
  • );

if(!strcmp(cmdtext,string))
{
      new id=x+400;
      new Float:pos[3];
      GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
      new vehicle;
   vehicle = CreateVehicle(id, pos[0], pos[1], pos[2], 0.0, -1, -1, -1);
   SetVehicleZAngle(vehicle, angle);
   PutPlayerInVehicle(playerid, vehicle, 0);
   PlayerPlaySound(playerid, 1138, 0.0,0.0,0.0);
    format(string,64,\"{3BC5A2}Lehívtál egy {88AA88}%s{3BC5A2}-t!\",VehicleNamesSCM
  • );//Itt céklakék színnel kiirja :)

     SendClientMessage(playerid,0x3A7CFFFF,string);
      return 1;
      }
      }
return 0;
}

 
És ha a GameMode-mmal együtt töltöm be, akkor nem hív le semmit  :(
Ad ki hangot, chatbe ir mindent csinál, csak kocsit nem hiv le.
Az egész GameMode-met nem másolom be azért, csak azt hogy milyen inlclude-ket használok:
 
#include <a_samp>
#include <fixchars.h>
#include <streamer>
#include <mtamap>
#include <dini>
#include <minigun>
#include <zcmd>
#include <sscanf2>
#include \"../include/gl_common.inc\"

 Ezek közül zavarhatja valamelyik a szkriptemet?
pls help :(

Nem elérhető InAceX

  • 501
    • Profil megtekintése
Kocsilehivó + GameMode-m = semmi (FONTOS)
« Válasz #1 Dátum: 2011. április 23. - 17:09:37 »
0 Show voters
Hát szerintem a ZCMD+SSCANF2 bezavar mivel a scripted STRCMP-t használ.Legalábbis szerintem ez a hiba.

Kocsilehivó + GameMode-m = semmi (FONTOS)
« Válasz #2 Dátum: 2011. április 23. - 17:11:39 »
0 Show voters
Próbáltam más gamemode-val, azokban is van zcmd & sscanf.
Próbáltam egybetenni a gamemodemmal, de hibát észlelt, és leállt.
Esetleg meg kéne csinálni, hogy ZCMD-kompatibilis legyen, de ahhoz én nem nagyon értek  :)

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal