Jump to content

DarkyTheAngel

Membru
  • Posts

    1,005
  • Joined

  • Last visited

    Never

Posts posted by DarkyTheAngel

  1. Deci am error 052:multi dimensional arrays must pe fully initalized pe line 3529

    error029:invalid expression assumed zero si error 008:must be a constant expression;assumed zero amandoua pe line 3555

    [pawn]new JoinPed[86][1] = {

    {280},//POLICE_FORCE

    {281},

    {282},

    {283},

    {284},

    {285},

    {148},

    {286},//Federal Of Investigation

    {164},

    {285},//National Guard

    {276},

    {70},//FIRE/AMBULANCE

    {274},

    {275},

    {277},

    {278},

    {279},

    {258},//The Sicilian Mafia

    {111},

    {126},

    {125},

    {124},

    {98},//23

    {117},//The Triads

    {118},

    {120},

    {169},

    {121},

    {122},

    {127},//HITMANS

    {165},

    {186},

    {93},

    {141},

    {148},//NEWS_REPORTERS

    {188},

    {187},

    {255},//TAXI_CAB_COMPANY

    {253},

    {8},//TOW_CAR_COMPANY

    {42},

    {106},//The Barzini Family

    {105},

    {107},

    {269},

    {271},

    {270},

    {195},

    {102},//The Paterno Family

    {103},

    {104},

    {296},

    {108},//The Tattaglia Family

    {110},

    {111},

    {126},

    {122},

    {114},//The 69Pier Mobs Family

    {116},

    {117},

    {46}

    }; ei bine aici imi da error 052

    new Peds[198][1] = {

    //CIVILIANS DOWN HERE

    {248},{100},{256},{263},{262},{261},{260},{259},{257},{256},{196},

    {252},{251},{249},{246},{245},{244},{243},{242},{241},{240},{197},

    {238},{237},{236},{235},{234},{233},{232},{231},{230},{229},{94},

    {226},{225},{224},{223},{222},{221},{220},{219},{218},{60},{95},

    {217},{216},{215},{214},{213},{212},{211},{210},{209},{247},{78},

    {207},{206},{205},{204},{203},{202},{201},{200},{199},{198},{290},

    {194},{193},{192},{191},{190},{189},{185},{184},{183},{239},{77},

    {182},{181},{271},{179},{178},{176},{172},{170},{168},{167},{162},

    {161},{160},{159},{158},{157},{156},{155},{154},{153},{152},{151},

    {146},{145},{144},{143},{142},{140},{139},{138},{137},{136},{135},

    {134},{133},{132},{131},{130},{129},{128},{254},{99},{97},{96},//110

    {92},{90},{89},{88},{87},{85},{84},{83},{82},{81},{80},{79},{76},

    {75},{73},{72},{69},{68},{105},{66},{64},{63},{62},{58},{57},{56},{55},//27

    {54},{53},{52},{51},{50},{49},{45},{44},{43},{41},{39},{38},{37},{36},{35},

    {34},{33},{32},{31},{30},{29},{28},{27},{26},{25},{24},{23},{22},{21},{20},

    {19},{18},{17},{16},{15},{14},{13},{12},{11},{10},{1},{2},

    {291},//16,16,16,16

    {292},//CESAR

    {293},//OGLOC

    {187},

    {297},//MADDOGG

    {298},//CAT

    };iar aici error 029 si error 008[/pawn] cam asta e tot de la line 3467 la l3555 si nu stiu cum sa fixez aceste errori va rog frumos sa ma ajutati :D

    [pawn]new JoinPed [ ] [ ] = {

    {280},//POLICE_FORCE

    {281},

    {282},

    {283},

    {284},

    {285},

    {148},

    {286},//Federal Of Investigation

    {164},

    {285},//National Guard

    {276},

    {70},//FIRE/AMBULANCE

    {274},

    {275},

    {277},

    {278},

    {279},

    {258},//The Sicilian Mafia

    {111},

    {126},

    {125},

    {124},

    {98},//23

    {117},//The Triads

    {118},

    {120},

    {169},

    {121},

    {122},

    {127},//HITMANS

    {165},

    {186},

    {93},

    {141},

    {148},//NEWS_REPORTERS

    {188},

    {187},

    {255},//TAXI_CAB_COMPANY

    {253},

    {8},//TOW_CAR_COMPANY

    {42},

    {106},//The Barzini Family

    {105},

    {107},

    {269},

    {271},

    {270},

    {195},

    {102},//The Paterno Family

    {103},

    {104},

    {296},

    {108},//The Tattaglia Family

    {110},

    {111},

    {126},

    {122},

    {114},//The 69Pier Mobs Family

    {116},

    {117},

    {46}

    };[/pawn]

    [pawn]new Peds [ ] [ ] = {

    //CIVILIANS DOWN HERE

    {248},{100},{256},{263},{262},{261},{260},{259},{257},{256},{196},

    {252},{251},{249},{246},{245},{244},{243},{242},{241},{240},{197},

    {238},{237},{236},{235},{234},{233},{232},{231},{230},{229},{94},

    {226},{225},{224},{223},{222},{221},{220},{219},{218},{60},{95},

    {217},{216},{215},{214},{213},{212},{211},{210},{209},{247},{78},

    {207},{206},{205},{204},{203},{202},{201},{200},{199},{198},{290},

    {194},{193},{192},{191},{190},{189},{185},{184},{183},{239},{77},

    {182},{181},{271},{179},{178},{176},{172},{170},{168},{167},{162},

    {161},{160},{159},{158},{157},{156},{155},{154},{153},{152},{151},

    {146},{145},{144},{143},{142},{140},{139},{138},{137},{136},{135},

    {134},{133},{132},{131},{130},{129},{128},{254},{99},{97},{96},//110

    {92},{90},{89},{88},{87},{85},{84},{83},{82},{81},{80},{79},{76},

    {75},{73},{72},{69},{68},{105},{66},{64},{63},{62},{58},{57},{56},{55},//27

    {54},{53},{52},{51},{50},{49},{45},{44},{43},{41},{39},{38},{37},{36},{35},

    {34},{33},{32},{31},{30},{29},{28},{27},{26},{25},{24},{23},{22},{21},{20},

    {19},{18},{17},{16},{15},{14},{13},{12},{11},{10},{1},{2},

    {291},//16,16,16,16

    {292},//CESAR

    {293},//OGLOC

    {187},

    {297},//MADDOGG

    {298},//CAT

    };

    [/pawn]

  2. [pawn]D:\samp 0.3xa\pawno\include\SpikeStrip.inc(27) : warning 219: local variable "lights" shadows a variable at a preceding level

    D:\samp 0.3xa\gamemodes\gf.pwn(5712) : warning 219: local variable "string" shadows a variable at a preceding level

    D:\samp 0.3xa\gamemodes\gf.pwn(5713) : error 001: expected token: ";", but found "-identifier-"

    D:\samp 0.3xa\gamemodes\gf.pwn(5713) : error 017: undefined symbol "kname"

    D:\samp 0.3xa\gamemodes\gf.pwn(5713) : warning 215: expression has no effect

    D:\samp 0.3xa\gamemodes\gf.pwn(5713) : error 001: expected token: ";", but found "]"

    D:\samp 0.3xa\gamemodes\gf.pwn(5713) : fatal error 107: too many error messages on one line

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

    4 Errors.

    [/pawn]

    :|

    [pawn]    new

            string    [ 64 ] ,

            kname      [ 64 ]

        ;

        GetPlayerName ( killerid , kname , sizeof ( kname ) ) ;

        format ( string , sizeof ( string ) , "Ai fost omorat de %s." , kname ) ;

        SendClientMessage ( playerid , -1 , string ) ;[/pawn]

    Scuze, greseala mea.Am uitat sa pun o virgula 1.gif.

  3. inca una si te las :))

    [pawn]C:\Users\KyLLeR\Desktop\JP trucking\gamemodes\PPC_Trucking.pwn(7430) : warning 219: local variable "vehicleid" shadows a variable at a preceding leve[/pawn]

    si sa stii ca iti multumesc pentru tot ajutorul acordat :)

    si timpul pierdut cu mine

    Simbolul "vehicleid" este definit de mai multe ori.Presupun ca aici este eroarea:

    [pawn]public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)

    {

        for(new i = 0; i < GetMaxPlayers(); i++)  if(IsPlayerConnected(i) && !IsPlayerNPC(i))

        {

                new string[256];

                new vehicleid = GetPlayerVehicleID(i);

                format(string,sizeof string ,"{B7FF00}Marca: {00FFEE}%s", GetVehicleName(vehicleid));

        }

        return 1;

    }[/pawn]

    Prima data nu am fost nici eu atent, si nu am remarcat greselile.Codul corect ar fi:

    [pawn]public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)

    {

        for(new i = 0; i < GetMaxPlayers(); i++)  if(IsPlayerConnected(i) && !IsPlayerNPC(i))

        {

                new lstring[256];

                format(lstring,lsizeof string ,"{B7FF00}Marca: {00FFEE}%s", GetVehicleName(vehicleid));

                vehicle3Dtext[vehicleid] = Create3DTextLabel(lstring, 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1);

                Attach3DTextLabelToVehicle(vehicle3Dtext[vehicleid] , vehicleid, 0.0, 0.0, 2.0);

        }

        return 1;

    }[/pawn]

  4. tot imi spune sa il definesc stiu pun #define OnPlayerEnterVehicle si mai ce simpliu

    C:\Users\KyLLeR\Desktop\JP trucking\gamemodes\PPC_Trucking.pwn(6387) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
    C:\Users\KyLLeR\Desktop\JP trucking\gamemodes\PPC_Trucking.pwn(7421) : error 021: symbol already defined: "OnPlayerEnterVehicle"

    Cum sa pui ma #define OnPlayerEnterVehicle? Iti spune chestia aia pentru ca ai public-ul OnPlayerEnterVehicle de mai multe ori in script.

  5. C:\Users\KyLLeR\Desktop\JP trucking\gamemodes\PPC_Trucking.pwn(6658) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
    C:\Users\KyLLeR\Desktop\JP trucking\gamemodes\PPC_Trucking.pwn(6659) : error 017: undefined symbol "GetVehicleName"
    C:\Users\KyLLeR\Desktop\JP trucking\gamemodes\PPC_Trucking.pwn(6658) : warning 204: symbol is assigned a value that is never used: "vehicleid"
    C:\Users\KyLLeR\Desktop\JP trucking\gamemodes\PPC_Trucking.pwn(7401) : error 021: symbol already defined: "OnPlayerEnterVehicle"

    niste erori :D

    Verifica postul meu anterior.Am pus acolo si un "stock".

    Defineste simbolul "GetVehicleName".Si o sa iti mearga

    [pawn]if( strcmp(cmdtext, "/masini", true)==0)

        {

    SendClientMessage(playerid, COLOR_GREEN, "| ______________________ Masini FT:RP ___________________|");

    SendClientMessage(playerid, 0x33CCFFAA, "Level 2 : Walton / Merit / Campo / Sadler / Yosemite / Picador / Perenial / Tornado / Regina");

    SendClientMessage(playerid, 0x33CCFFAA, "Level 3 : Bobcat / Windsor / Bravura / Hermes / Blista / Hustler / Tampa / Clover / Sabre / Slamvan / LandStalker / Solair / Vincent");

    SendClientMessage(playerid, 0x33CCFFAA, "Level 4 : Burrito / Journey / Virgo / Majestic / Stallion / Voodoo / Remington / Blade / Oceanic / Greenwood / Stratum");

    SendClientMessage(playerid, 0x33CCFFAA, "Level 5 : Rancher / Buffalo / Uranus / Jester / Flash / Euros / Alpha / Pheonix / NRG / Tahoma ");

    SendClientMessage(playerid, 0x33CCFFAA, "Level 6 : Banshee / Zr350 / Comet / Sultan / Savanna / Elegy / Washington");

    SendClientMessage(playerid, 0x33CCFFAA, "Level 7 : Cheetah / Mesa / Huntley / Bus / Hotring / ATV");

    SendClientMessage(playerid, 0x33CCFFAA, "Level 9 : Infernus / SuperGT / Turismo / Bullet / Sandking ");

    SendClientMessage(playerid, 0x33CCFFAA, "Foloseste: {CC3300}/v numemasina [idculoare1] [idculoare2] {33CCFF}si fa-ti o masina free daca ai level!");

    SendClientMessage(playerid, COLOR_GREEN, "|_____________________________________________________|");

    return 1;

    }[/pawn]

    Realizezi ca i-ai dat o comanda si nu o variabila/un "stock" sau un "callback", nu?

  6. [pawn]new VehicleNames[][] =

    {

        "Landstalker", "Bravura", "Buffalo", "Linerunner", "Perrenial", "Sentinel",

        "Dumper", "Firetruck", "Trashmaster", "Stretch", "Manana", "Infernus",

        "Voodoo", "Pony", "Mule", "Cheetah", "Ambulance", "Leviathan", "Moonbeam",

        "Esperanto", "Taxi", "Washington", "Bobcat", "Whoopee", "BF Injection",

        "Hunter", "Premier", "Enforcer", "Securicar", "Banshee", "Predator", "Bus",

        "Rhino", "Barracks", "Hotknife", "Trailer", "Previon", "Coach", "Cabbie",

        "Stallion", "Rumpo", "RC Bandit", "Romero", "Packer", "Monster", "Admiral",

        "Squalo", "Seasparrow", "Pizzaboy", "Tram", "Trailer", "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", "Cropduster", "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", "Hustler", "Intruder", "Primo",

        "Cargobob", "Tampa", "Sunrise", "Merit", "Utility", "Nevada", "Yosemite",

        "Windsor", "Monster", "Monster", "Uranus", "Jester", "Sultan", "Stratium",

        "Elegy", "Raindance", "RC Tiger", "Flash", "Tahoma", "Savanna", "Bandito",

        "Freight Flat", "Streak Carriage", "Kart", "Mower", "Dune", "Sweeper",

        "Broadway", "Tornado", "AT-400", "DFT-30", "Huntley", "Stafford", "BF-400",

        "News Van", "Tug", "Trailer", "Emperor", "Wayfarer", "Euros", "Hotdog", "Club",

        "Freight Box", "Trailer", "Andromada", "Dodo", "RC Cam", "Launch", "Police Car",

        "Police Car", "Police Car", "Police Ranger", "Picador", "S.W.A.T", "Alpha",

        "Phoenix", "Glendale", "Sadler", "Luggage", "Luggage", "Stairs", "Boxville",

        "Tiller", "Utility Trailer"

    };

    stock GetVehicleName(vehicleid)

    {

        new String[64];

        format(String,sizeof(String),"%s",VehicleNames[GetVehicleModel(vehicleid) - 400]);

        return String;

    }[/pawn]

    [pawn]public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)

    {

        for(new i = 0; i < GetMaxPlayers(); i++)  if(IsPlayerConnected(i) && !IsPlayerNPC(i))

        {

                new string[256];

                new vehicleid = GetPlayerVehicleID(i);

                format(string,sizeof string ,"{B7FF00}Marca: {00FFEE}%s", GetVehicleName(vehicleid));

        }

        return 1;

    }[/pawn]

    N-am mai stat sa aranjez codul, pentru ca nu isi are rostul.Incearca sa vezi daca apare cu codul pe care ti l-am dat eu.

  7. Killerid reprezinta DOAR id-ul celui care a l-a omorat , daca v-a pune %d, va aparea IDul inamicului.

    Pune functia de aflare a numelui, nu stiu cum e la tine acolo,

    new killername[64];

    GetPlayerName(killerid, killername,sizeof(killername));

    Iar la comanda pune in loc de killerid(de la sfasit), pune killername.

    * %d - DOAR pentru cifre

    * %s - DOAR pentru litere si cifre, folosit in special pentru nume de playeri/factiuni etc.

    Stiam eu ca lipseste ceva dar nu stiam ce.Multumesc ca mi-ai spus de greseala (chiar uitasem sa iau numele jucatorului care ucide).Am corectat postul de mai sus.

  8. Da am reusit cu aia dar acum  2hoabtl.jpg arata asa cand ma omoara cineva:|

    Incearca asta:

    [pawn]    new

            string    [ 64 ]

            kname      [ 64 ]

        ;

        GetPlayerName ( killerid , kname , sizeof ( kname ) ) ;

        format ( string , sizeof ( string ) , "Ai fost omorat de %s." , kname ) ;

        SendClientMessage ( playerid , -1 , string ) ;[/pawn]

    Inlocuieste codul pe care il ai (care trimite jucatorului datele) cu ce ti-am dat mai sus.Scuze, am facut eu o greseala.

  9. ms

    nu ma prea pricep io la orase:))

    Te-as ruga sa numai postezi cu "ms" dupa fiecare "replay' in acest topic 1.gif.Cat despre mapa, mie chiar imi place, nu stiu de ce, dar imi place.Felicitari pentru munca depusa 1.gif.

  10. Ok ai putea unde sa o pun,adica am intrat GM am cautat lina OnPlayer Death si am adaugat acolo... :|

    Pai, tu ai ceva de genu' asta in script:

    [pawn]public OnPlayerDeath ( playerid , killerid , reason )

    {

        // ...

        // ...

        // ...

        // ...

        // ...

        // ...

        // ...

        return ( true ) ;

    }[/pawn]

    Iar codul este acesta:

    [pawn]    new

            string [ 64 ]

        ;

        if ( killerid != INVALID_PLAYER_ID )

        {

            format ( string , sizeof ( string ) , "Ai fost omorat de %s." , killerid ) ;

        }

        SendClientMessage ( playerid , -1 , string ) ;[/pawn]

    Iar atunci cand le impreunezi, va arata cam asa:

    [pawn]public OnPlayerDeath ( playerid , killerid , reason )

    {

        new

            string [ 64 ]

        ;

        if ( killerid != INVALID_PLAYER_ID )

        {

            format ( string , sizeof ( string ) , "Ai fost omorat de %s." , killerid ) ;

        }

        SendClientMessage ( playerid , -1 , string ) ;

        // ...

        // ...

        // ...

        // ...

        // ...

        // ...

        // ...

        return ( true ) ;

    }[/pawn]

    EDIT: Vad ca ai rezolvat cu asta.

    Am rezolvat,insa as mai dori sa stiu ceva

    Cum pot sa fac la comanda /mission cand o iau sa imi faca numele rosu?

    [pawn] if(strcmp(cmd,"/mission",true)==0)

        {

            if(IsPlayerConnected(playerid))

            {

              if(PlayerToPoint(3.0,playerid,1381.0413,-1088.8511,27.3906) || PlayerToPoint(3.0,playerid,-1963.6067,437.5748,35.1719))

              {

    if(MissionPlayable == 0)

    {

        SendClientMessage(playerid, COLOR_GREY, "  No Mission has been Activated !");

        return 1;

    }

    if(PlayerInfo[playerid][pMissionNr] == MissionPlayable)

    {

        SendClientMessage(playerid, COLOR_GREY, "  You've already completed the Active Mission !");

        return 1;

    }

    if(CP[playerid] == 1)

    {

        SendClientMessage(playerid, COLOR_GREY, "  You can`t take the mission, drop the car at the crane !");

        return 1;

    }

    if(IsCollectingRubbish[playerid] == 1)

    {

        SendClientMessage(playerid, COLOR_GREY, "  You can`t take the mission, Collect the Rubbish!");

        return 1;

    }

    RingTone[playerid] = 20;

    PlayerOnMission[playerid] = PlayMission[kNumber];

    MissionCheckpoint[playerid] = 1;

    format(string, sizeof(string), "~w~Mission started: ~n~~r~%s", PlayMission[kTitle]);

    GameTextForPlayer(playerid, string, 5000, 3);

    format(string, sizeof(string), "%s", PlayMission[kText1]);

    SendClientMessage(playerid, COLOR_YELLOW2, string);

    format(string, sizeof(string), "%s", PlayMission[kText2]);

    SendClientMessage(playerid, COLOR_YELLOW2, string);

    format(string, sizeof(string), "%s", PlayMission[kText3]);

    SendClientMessage(playerid, COLOR_YELLOW2, string);

    if(PlayMission[kToggle] == 1)

    {

    SetPlayerCheckpoint(playerid, PlayMission[kCP1][0], PlayMission[kCP1][1], PlayMission[kCP1][2], 8);

    }

      }

      else

              {

                  SendClientMessage(playerid, COLOR_GREY, "  You are not at the Bill Board !");

              }

            }

            return 1;

        }[/pawn]

    Aceasta este comanda /mission mersi.

    Ca sa faci numele unui jucator rosu, incearca asta:

    [pawn] if(strcmp(cmd,"/mission",true)==0)

        {

            if(IsPlayerConnected(playerid))

            {

              if(PlayerToPoint(3.0,playerid,1381.0413,-1088.8511,27.3906) || PlayerToPoint(3.0,playerid,-1963.6067,437.5748,35.1719))

              {

    if(MissionPlayable == 0)

    {

        SendClientMessage(playerid, COLOR_GREY, "  No Mission has been Activated !");

        return 1;

    }

    if(PlayerInfo[playerid][pMissionNr] == MissionPlayable)

    {

        SendClientMessage(playerid, COLOR_GREY, "  You've already completed the Active Mission !");

        return 1;

    }

    if(CP[playerid] == 1)

    {

        SendClientMessage(playerid, COLOR_GREY, "  You can`t take the mission, drop the car at the crane !");

        return 1;

    }

    if(IsCollectingRubbish[playerid] == 1)

    {

        SendClientMessage(playerid, COLOR_GREY, "  You can`t take the mission, Collect the Rubbish!");

        return 1;

    }

    RingTone[playerid] = 20;

    PlayerOnMission[playerid] = PlayMission[kNumber];

    MissionCheckpoint[playerid] = 1;

    format(string, sizeof(string), "~w~Mission started: ~n~~r~%s", PlayMission[kTitle]);

    GameTextForPlayer(playerid, string, 5000, 3);

                            SetPlayerColor(playerid, 0xFF0000FF);

    format(string, sizeof(string), "%s", PlayMission[kText1]);

    SendClientMessage(playerid, COLOR_YELLOW2, string);

    format(string, sizeof(string), "%s", PlayMission[kText2]);

    SendClientMessage(playerid, COLOR_YELLOW2, string);

    format(string, sizeof(string), "%s", PlayMission[kText3]);

    SendClientMessage(playerid, COLOR_YELLOW2, string);

    if(PlayMission[kToggle] == 1)

    {

    SetPlayerCheckpoint(playerid, PlayMission[kCP1][0], PlayMission[kCP1][1], PlayMission[kCP1][2], 8);

    }

      }

      else

              {

                  SendClientMessage(playerid, COLOR_GREY, "  You are not at the Bill Board !");

              }

            }

            return 1;

        }[/pawn]

  11. [pawn]public OnPlayerDeath ( playerid , killerid , reason )

    {

        new

            string [ 64 ]

        ;

        if ( killerid != INVALID_PLAYER_ID )

        {

            format ( string , sizeof ( string ) , "Ai fost omorat de %s." , killerid ) ;

        }

        SendClientMessage ( playerid , -1 , string ) ;

        return ( true ) ;

    }[/pawn]

  12. Ca un exemplu:

    [pawn]new

    Text3D:vehicle_text [ MAX_VEHICLES ] ,

    vehicle_string      [ 64          ]

    vehicle_test

    ;

    public OnFilterScriptInit ( )

    {

        vehicle_test = CreateVehicle ( 510 , 0.0. , 0.0 , 15.0 , 5 , 0 , 120 ) ;

        format ( vehicle_string , sizeof ( vehicle_string ) , "%s" , GetVehicleName ( vehicleid ) ) ;

        vehicle_text [ vehicle_test ] = Create3DTextLabel ( vehicle_string , 0xFF0000AA , 0.0 , 0.0 , 0.0 , 50.0 , 0 , 1 ) ;

        Attach3DTextLabelToVehicle ( vehicle_text [ vehicle_test ] , vehicle_test , 0.0 , 0.0 , 2.0 ) ;

        return ( true ) ;

    }

    public OnFilterScriptExit ( )

    {

        Delete3DTextLabel ( vehicle_text [ vehicle_test ] ) ;

        return ( true ) ;

    }[/pawn]

    Dar ca sa faci asta, ai nevoie de un "stock" care sa scoata numele vehiculelor din "id"-urile acestora:

    [pawn]new VehicleNames[][] = // by Tee.

    {

        "Landstalker", "Bravura", "Buffalo", "Linerunner", "Perrenial", "Sentinel",

        "Dumper", "Firetruck", "Trashmaster", "Stretch", "Manana", "Infernus",

        "Voodoo", "Pony", "Mule", "Cheetah", "Ambulance", "Leviathan", "Moonbeam",

        "Esperanto", "Taxi", "Washington", "Bobcat", "Whoopee", "BF Injection",

        "Hunter", "Premier", "Enforcer", "Securicar", "Banshee", "Predator", "Bus",

        "Rhino", "Barracks", "Hotknife", "Trailer", "Previon", "Coach", "Cabbie",

        "Stallion", "Rumpo", "RC Bandit", "Romero", "Packer", "Monster", "Admiral",

        "Squalo", "Seasparrow", "Pizzaboy", "Tram", "Trailer", "Turismo", "Speeder",

        "Reefer", "Tropic", "Flatbed", "Yankee", "Caddy", "Solair", "Berkley 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", "Cropduster", "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", "Hustler", "Intruder", "Primo",

        "Cargobob", "Tampa", "Sunrise", "Merit", "Utility", "Nevada", "Yosemite",

        "Windsor", "Monster", "Monster", "Uranus", "Jester", "Sultan", "Stratium",

        "Elegy", "Raindance", "RC Tiger", "Flash", "Tahoma", "Savanna", "Bandito",

        "Freight Flat", "Streak Carriage", "Kart", "Mower", "Dune", "Sweeper",

        "Broadway", "Tornado", "AT-400", "DFT-30", "Huntley", "Stafford", "BF-400",

        "News Van", "Tug", "Trailer", "Emperor", "Wayfarer", "Euros", "Hotdog", "Club",

        "Freight Box", "Trailer", "Andromada", "Dodo", "RC Cam", "Launch", "Police Car",

        "Police Car", "Police Car", "Police Ranger", "Picador", "S.W.A.T", "Alpha",

        "Phoenix", "Glendale", "Sadler", "Luggage", "Luggage", "Stairs", "Boxville",

        "Tiller", "Utility Trailer"

    };

    stock GetVehicleName(vehicleid) // by Tee.

    {

    new String[64];

        format(String,sizeof(String),"%s",VehicleNames[GetVehicleModel(vehicleid) - 400]);

        return String;

    }[/pawn]

    Iar ca sa-l faci sa arate detinatorul masinii, ei bine, asta depinde de ce sistem de masini personale ai tu.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.