Results 1 to 3 of 3
  1. #1
    Junior Member Array
    Join Date
    Jun 2013
    Karma
    0

    Default Problem oko skriptanja

    format(string, sizeof(string), ""ZELENA"Oglas "BIJELA"|"ZELENA" Ime: "BIJELA"%s "ZELENA"|"ZELENA" Broj Telefona: "BIJELA"%d", (GetName(playerid), PlayerInfo[playerid][pMobilni]);
    Stalno mi izbacuje error 001 expected token , but found ; na toj liniji..


    CMD:ad(playerid, params[], help)
    {
    #pragma unused help
    if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,""ZELENA" "SIVA"Morate biti ulogovani da bi koristili komande!");
    new result[100],string[256];
    if(PlayerInfo[playerid][pZatvor] != 0) return SCM(playerid,-1,""ZELENA" "SIVA"Ne mozete ucestvovati na eventu, zatvoreni ste!");
    if(PlayerInfo[playerid][pLevel] < 3) return SCM(playerid, -1, ""SIVA"Morate biti level 3 za davanje oglasa!");
    if(sscanf(params, "s[100]", result)) return SCM(playerid,-1, ""CRVENA""ZUTA" "BIJELA"/ad [tekst]");
    if(strlen(result) < 10) return SCM(playerid, -1, ""SIVA"Broj slova u oglasu mora biti minimum 10!");
    if(PlayerInfo[playerid][pNovacDzep] < 100) return SCM(playerid,-1,""SIVA"Za oglas vam treba 100$!");
    if(PlayerInfo[playerid][pMobilni] == 0) return SCM(playerid,-1,""SIVA"Nemate mobilni!");
    if(gettime() < toglas) return SCM(playerid, -1, ""SIVA"Oglas se moze koristiti svakih 30 sekundi!");

    g_NovacMinus(playerid, 100); toglas = gettime() + 30;
    format(string, sizeof(string), ""ZELENA"Oglas "BIJELA"|"ZELENA" Ime: "BIJELA"%s "ZELENA"|"ZELENA" Broj Telefona: "BIJELA"%d", (GetName(playerid), PlayerInfo[playerid][pMobilni]);
    SCMTA(-1,string);
    format(string, sizeof(string), ""ZELENA"-"BIJELA"%s", result);
    SCMTA(-1,string);
    GameTextForPlayer(playerid,"~w~Cijena Oglasa ~r~100$!",4000,3);
    return 1;
    }
    Evo i cijela komanda ako zna tko riješiti problem...

  2. #2
    Junior Member Array
    Join Date
    Jan 2013
    Karma
    0

    Default

    Stavi ovako
    Code:
    format(string, sizeof(string), ""ZELENA"Oglas "BIJELA"|"ZELENA" Ime: "BIJELA"%s "ZELENA"|"ZELENA" Broj Telefona: "BIJELA"%d", GetName(playerid), PlayerInfo[playerid][pMobilni]);

  3. #3
    Junior Member Array
    Join Date
    Jun 2013
    Karma
    0

    Default

    Hvala stari na pomoći, radi

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •