Jump to content

sk1ZoOr

Membru
  • Posts

    9
  • Joined

  • Last visited

Posts posted by sk1ZoOr

  1. Salut am facut comanda bonus si primesc aceste 2 erori, ma poate ajuta cineva sa le rezolv ?

    https://imgur.com/a/dOir8Az 32613

    https://imgur.com/a/umWfRXL 32629

    CMD:bonus(playerid, params[])
    {
     if(PlayerInfo[playerid][pLevel] == 1)
    {
       GivePlayerCash(playerid, 10000000);
       PlayerInfo[playerid][pLevel] = 3;
       PlayerInfo[playerid][pPremiumPoints] = 300;
       PlayerInfo[playerid][pRob] = 20;

       PlayerInfo[playerid][pFlyLic] = 1;
       PlayerInfo[playerid][pFlyLicT] += 50;
       PlayerInfo[playerid][pFlyLicS] = 0;
       PlayerInfo[playerid][pBoatLic] = 1;
       PlayerInfo[playerid][pBoatLicT] += 50;
       PlayerInfo[playerid][pBoatLicS] = 0;
       PlayerInfo[playerid][pGunLic] = 1;
       PlayerInfo[playerid][pGunLicT] += 50;
       PlayerInfo[playerid][pGunLicS] = 0;   
        new str[128];                                                                           
        format(str,128,"UPDATE users SET `FlyLic`='1',`FlyLicT`='%d',`FlyLicS`='0' WHERE `ID`='%d'",PlayerInfo[playerid][pFlyLicT],PlayerInfo[playerid][pSQLID]);
        mysql_query(SQL,str);
        format(str,128,"UPDATE users SET `BoatLic`='1',`BoatLicT`='%d',`BoatLicS`='0' WHERE `ID`='%d'",PlayerInfo[playerid][pBoatLicT],PlayerInfo[playerid][pSQLID]);
        mysql_query(SQL,str);
        format(str,128,"UPDATE users SET `GunLic`='1',`GunLicT`='%d', `GunLicS`='0' WHERE `ID`='%d'",PlayerInfo[playerid][pGunLicT],PlayerInfo[playerid][pSQLID]);
        mysql_query(SQL,str);

        SCM(playerid, COLOR_WHITE, "------------------------------------------------------------------");
        SCM(playerid, COLOR_WHITE, "Pentru ca esti incepator, iti oferim cateva bonusuri:");
        SCM(playerid, COLOR_GREEN, "(+) $10.000.000");
        SCM(playerid, COLOR_GREEN, "(+) Levelul tau este 3");
        SCM(playerid, COLOR_GREEN, "(+) 20 Rob Points");        
        SCM(playerid, COLOR_GREEN, "(+) 300 Premium Points");
        SCM(playerid, COLOR_WHITE, "------------------------------------------------------------------");    
    }
    return 1;
    }
     

    C:\Users\GTX710Ti\Desktop\gm\gamemodes\1.31\wa-rpg.pwn(32613) : warning 217: loose indentation
    C:\Users\GTX710Ti\Desktop\gm\gamemodes\1.31\wa-rpg.pwn(32629) : warning 217: loose indentation
    Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


    2 Warnings.
    [Finished in 82.9s]

  2. On 4/10/2018 at 5:16 PM, RaduAndrei said:

    Salut, am revenit cu o noua intrebare, de ce cand ma loghez cu aceeasi parola pe care am folosit-o cand m-am inregistrat imi zice ca nu e buna? Nu am prea multe cunostinte in legatura cu  scriptat-ul dar sa scriu de 2 ori acelasi lucru sunt capabil.

    Aici am o poza cu conectarea la baza de date pe care am facut-o, in caz ca nu e corecta ma poti ajuta corectand-o ? Este pe localhost . Poza : 6MErIff.png

    Daca nu ai inteles care imi este problema it ipot face un video cu acest lucru sau doar ss, depinde cum vrei. Ar fi foarte amabil din partea ta sa ma ajuti, sunt nou in scripting-ul unui server de samp si am gasit ceva atractiv in asta, as vrea sa continui. Mersi de atentie!

    Trebuie sa faci conexiunea cu baza de date prala.  Trebuie localhost root si numele bazei de date si trebuie sa ai xamp sa poti avea acces la phpmyadmin

  3. On 7/18/2018 at 8:57 PM, DaNl said:

    Salut, urat gamemode, sincer, este chiar foarte urat, am primit extrem de multe erori, si n-am modificat nimic prin el, decat datele de conectare la baza de date din ongamemodeinit, am stat sa le rezolv pe toate (erorile), ca apoi sa imi dau seama ca e un cacat de gamemode,  -1.

    Dani esti atat de prost incat prin ceea ce ai spus, ma faci sa imi dau seama ca nu sti sa faci o conexiune cu baza de date si mai vii si cu duma ca ai primit extrem de multe erori.

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