Jump to content

OscarJoaca

Membru
  • Posts

    113
  • Joined

  • Last visited

Posts posted by OscarJoaca

  1. Uite-te si tu pe poze.. dupa tine, ar trebui sa te ajut?

     

    In orimul rand, implementeaza scriptul in gamemode. Nu cred ca ar trebui sa ai probleme, pentru ca nu e nimic complex.

    La functia settime, lasi doar

    public settime(playerid)
    {
            new string[50],hours,minutes,seconds;
            gettime(hours, minutes, seconds);
            format(string, sizeof string, "%s%d:%s%d:%s%d", (hours < 10) ? ("0") : (""), hours, (minutes < 10) ? ("0") : (""), minutes, (seconds < 10) ? ("0") : (""), seconds);
            TextDrawSetString(Time, string);
    }
    
    Astea le adaugi in functia PayDay
    new year,month,day;
    getdate(year, month, day);
    format(string, sizeof string, "%d/%s%d/%s%d", day, ((month < 10) ? ("0") : ("")), month, (year < 10) ? ("0") : (""), year);
    TextDrawSetString(Date, string);

     

    Multumesc, si nu eu am fost cel din imagine...

  2. Nu mai merge sa adaugi boti pe 0.3.7. Sloturile le poti definii si din server.cfg.

    ​Da poti, dar sunt unele firme de hosting care nu te lasa sa modifici sloturile in server.cfg... Si eram curios sa vad daca se poate si din gamemode :)). Oricum, multumesc baieti! Puteti sa inchideti topic-ul!

  3. Daca nu stii cum functioneaza o baza de date MySQL ma tem ca nu prea am cu ce sa te ajut. Trebuie sa te documentezi inainte, sa vezi ce si cum. Google.com are toate informatiile , trebuie doar sa cauti. De asemenea, imi amintesc ca mi-a luat o noaptea intreaga sa-l fac sa mearga cu inregistrare de pe site. Plus ca GM-ul a fost facut pe MySQL din prima deci nu cred ca ai sanse prea mari sa-l faci pe altceva.

    ​Multumesc pentru ajutor! Dar credca o sa incep sa imi fac propriul meu gamemode care sa nu ruleze pe MySql...

  4. \\psf\Home\Desktop\AliasGaming RP\gamemodes\CRP.pwn(8014) : warning 217: loose indentation
    \\psf\Home\Desktop\AliasGaming RP\gamemodes\CRP.pwn(8022) : warning 217: loose indentation
    \\psf\Home\Desktop\AliasGaming RP\gamemodes\CRP.pwn(8024) : warning 217: loose indentation
    \\psf\Home\Desktop\AliasGaming RP\gamemodes\CRP.pwn(8026) : warning 217: loose indentation
    \\psf\Home\Desktop\AliasGaming RP\gamemodes\CRP.pwn(8027) : warning 217: loose indentation
    \\psf\Home\Desktop\AliasGaming RP\gamemodes\CRP.pwn(8034) : warning 217: loose indentation
    \\psf\Home\Desktop\AliasGaming RP\gamemodes\CRP.pwn(8035) : warning 217: loose indentation
    \\psf\Home\Desktop\AliasGaming RP\gamemodes\CRP.pwn(8037) : warning 217: loose indentation
    Pawn compiler 3.2.3664     Copyright (c) 1997-2006, ITB CompuPhase


    8 Warnings.

    Dar la ce ma ajuta pForumName?

  5.    // Load normal stats 1
            format( String, sizeof( String ), "UPDATE `Accounts` SET `Password` = '%s', `Level` = '%d', `Admin` = '%d', `Banned` = '%d', `Sex` = '%d', `Tutorial` = '%d', `Bank` = '%d', `ForumName` = '%s' WHERE `UserID` = '%d'"
            , PlayerInfo[playerid][pKey], PlayerInfo[playerid][pLevel], PlayerInfo[playerid][pAdministrator], PlayerInfo[playerid][pBan], PlayerInfo[playerid][pSex], PlayerInfo[ playerid ][ pTut ], PlayerInfo[playerid][pBank],PlayerInfo[playerid][pForumName], PlayerInfo[playerid][pDatabaseID]);
            mysql_query(String);
     

     

     

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