Jump to content

Jomes.

Membru
  • Posts

    102
  • Joined

  • Last visited

Posts posted by Jomes.

  1. Denumeste masina.

    Exemplu:

    new CarTruck[MAX_VEHICLES];

    CarTruck[playerid] = AddStaticVehicleEx (modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2, respawn_delay, addsiren=0)

    SetVehicleParamsEx(CarTruck[playerid], 1, 0, 0, 1, 0, 0, 0);

    Functie:

    SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective)

    (vehicleid, engine, lights, alarm, doors, bonnet, boot, objective)
    vehicleid The ID of the vehicle to set the parameters of.
    engine Engine status. 0 - Off, 1 - On.
    lights Light status. 0 - Off, 1 - On.
    alarm Vehicle alarm status. If on, the alarm starts. 0 - Off, 1 - On.
    doors Door lock status. 0 - Unlocked, 1 - Locked.
    bonnet Bonnet (hood) status. 0 - Closed, 1 - Open.
    boot Boot/trunk status. 0 - Closed, 1 - Open.
    objective Toggle the objective arrow above the vehicle. 0 - Off, 1 - On.
  2. 12 hours ago, Down71 said:

    Aha .. incerc acum ,mersi de informatie

    eroare la compilazre : error 029: invalid expression, assumed zero
    http://imgur.com/UNRWdd7

    Byethost

    Din cate vad in scriptul tau dupa setarea varstei, te pune sa bagi email-ul

    ShowPlayerDialog(playerid, DIALOG_REGISTER4, DIALOG_STYLE_INPUT, "Email", "(ex: [email protected])", "ok", "");

    In loc de "\" pune DIALOG_REGISTER4 si compileaza.

     

    if(dialogid == DIALOG_REGISTER4)

  3. 2 hours ago, NoNamed said:

    Se pare ca pe timpurile astea , aroganta mea e potrivita . Sunt gamemode-uri la care conectarea la baza de date se face dintr-un include din pawno , dar de unde sa stii tu asta ? Daca tu folosesti doar bugged edit ? Uita-te la gm-ul lui Wopss , sa vezi ca are conexiunea la baza de date facuta din include .

    Stiu si eu ca sunt asemenea servere...

    In primul rand nu am vazut pe nimeni sa-l intrebe unde vrea sa porneasca server-ul(host sau pc)...

    Chiar daca conexiunea se face dint-un include, tot din script pleaca tot... Nu vezi ca e paralel cu tot? 

  4. 37 minutes ago, NoNamed said:

    Tu i-ai citit problema ? :))

    Aroganta ta ma enerveaza... Esti moderator si nu stii sa pornesti un server?

    Conexiunea se face din script(http://imgur.com/i5sjlKR) nu din myacc.inc(http://imgur.com/i5sjlKR).

    Si depinde unde vrea sa-l porneasca.. Daca vrea pe localhost, trebuie pornit cu xampp sau wampserver.

    Daca el nu stie sa caute ceva in pawn, ma pot gandi la orice....

  5. Poftim nenea.
    La prima linie lasi asa, adica daca aplicatiile sunt deschise(groupAplication == 1) sa iti arate " Inchide aplicatii ", iar daca sunt inchise(groupAplication == 0) sa-ti arate "Deschide aplicatii"

     
    <?php if($dnn['groupAplication']=="1") { ?>
     
    <li><a href="?X=<?=$udata['playerGroup']?>">Inchide aplicatii</a></li>
     
     <?php } ?>
     
    <?php if($dnn['groupAplication']=="0") { ?>
     
    <li><a href="?X2=<?=$udata['playerGroup']?>">Deschide aplicatii</a></li>

     

     

    Greseala din scriptul tau este urmatoarea

     

    <?php if($dnn['groupApplication']=="1") { ?>

    <li><a href="?X=<?=$udata['playerGroup']?>">Inchide aplicatii</a></li>    

    <?php } ?>

    <?php if($dnn['groupApplication']=="1") { ?> treuie sa pui 0
                
    <li><a href="?X2=<?=$udata['playerGroup']?>">Deschide aplicatii</a></li>

    • Upvote 1
  6. La on gamemodein:

     

    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    Fond = TextDrawCreate(641.500000, 168.099990, "usebox");
    TextDrawLetterSize(Fond, 0.000000, 1.757408);
    TextDrawTextSize(Fond, -2.000000, 0.000000);
    TextDrawAlignment(Fond, 1);
    TextDrawColor(Fond, 0);
    TextDrawUseBox(Fond, true);
    TextDrawBoxColor(Fond, 102);
    TextDrawSetShadow(Fond, 0);
    TextDrawSetOutline(Fond, 0);
    TextDrawFont(Fond, 0);
     
          //Si asa mai departe...
    }
  7. Am o mica intrebare.

     

    Cum as putea sa traduc SendClientMessageAll

     

    Eu am facut in felul urmator

     

    foreach(Player, i) {
       if(PlayerInfo[pLanguage] == 0) { format(string, sizeof(string), "Romana", sendername, giveplayer,minutes,reason); }
    else if(PlayerInfo[pLanguage] == 1) { format(string, sizeof(string), "Engleza", giveplayer, sendername,minutes,reason); }
    SCM(i, COLOR_LIGHTBLUE, string); }
     
    As vrea ceva mai simplu
     
     
    Multumesc!
  8. Problemă întâlnită (descriere): Vreau sa trec de pe .ini pe mysql si nu reusesc.
    Ero(area / rile) / warning-(ul / urile): -
    Liniile de cod / sursa / script-ul:

    [pawn]stock GetPlayerRecord()

    {
    new File:file = fopen("record.txt");
    new string[8];
    fread(file, string);   
    fclose(file);   
    return strval(string);  
    }
    stock UpdatePlayerRecord()
    {    
    new onlines = GetOnlinePlayersbar();
    if (onlines <= GetPlayerRecord()) return;
    new File:file = fopen("record.txt");
    new string[8];
    UpdateRecordDate();
    format(string, 8, "%d", onlines);
    fwrite(file, string);
    fclose(file);
    }[/pawn]

    Imagini / Video (optional): -
    Aţi încercat să rezolvaţi singur?: Da

×
×
  • 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.