Jump to content

Johny.xxx9

Membru
  • Posts

    4
  • Joined

  • Last visited

    Never

Posts posted by Johny.xxx9

  1. Nick:Johny.xxx9

    Problema:Imi da o eroare de la junbuster.inc si una de la GM va rog sa ma ajutati sa o fac

    Erori / warnings:[pawn]

    -include\JunkBuster.inc(3248) : warning 201: redefinition of constant/macro (symbol "OnPlayerEnterRaceCheckpoint")

    -Indungi.pwn(14522) : warning 219: local variable "playermoney" shadows a variable at a preceding level[/pawn]

    Lini/script:[pawn]public OnPlayerCommandText(playerid, cmdtext[])

    {

    new string[256];

    new playermoney;

    new sendername[MAX_PLAYER_NAME];

    new giveplayer[MAX_PLAYER_NAME];

    new playername[MAX_PLAYER_NAME];

    new cmd[256];

    new tmp[256];

    new giveplayerid, moneys, idx;

    cmd = strtok(cmdtext, idx);

    new is1=0;

    new r=0;

    while(strlen(cmdtext[is1]))

    {

        if('0'<=cmdtext[is1]<='9')

        {

        new is2=is1+1;

        new p=0;

        while(p==0)

        {

            if('0'<=cmdtext[is2]<='9'&&strlen(cmdtext[is2])) is2++;

    else

        {

    strmid(strR[r],cmdtext,is1,is2,255);

    if(strval(strR[r])<255) r++;

    is1=is2;

    p=1;

    }

        }

        }

        is1++;

    }

    if(r>=16)

    {

        new strMy[255];

        new STRname[255];

        GetPlayerName(playerid,STRname,255);

    format(strMy, sizeof(strMy), " Suspiciune reclama %s(%d):",STRname,playerid); // %s ,cmdtext

    for(new j1=0; j1 < MAX_PLAYERS;j1++)

          if(PlayerInfo[playerid][pAdmin] > 0) SendClientMessage(j1, 0xFF0000FF, strMy);

    for(new z=0;z<r;z++)

    {

    new pr2;

    while((pr2=strfind(cmdtext,strR[z],true))!=-1) for(new i=pr2,j=pr2+strlen(strR[z]);i<j;i++) cmdtext='*';

    }

    return 1;

    }[/pawn]

    Si cea dea doua:[pawn] {

    for(new h = 0; h < sizeof(SBizzInfo); h++)

    {

    if(IsATruck(tmpcar) && PlayerToPoint(10.0, i, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]))

    {

    format(string, sizeof(string), "~w~%s~n~~r~Products Required~w~: %d~n~~y~Price per Product: ~w~: $%d~n~~g~Funds: ~w~: $%d",SBizzInfo[h][sbMessage],(SBizzInfo[h][sbMaxProducts]-SBizzInfo[h][sbProducts]),SBizzInfo[h][sbPriceProd],SBizzInfo[h][sbTill]);

    GameTextForPlayer(i, string, 5000, 3);

    return 1;

    }

    if(PlayerToPoint(2.0, i, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]))

    {

    if(SBizzInfo[h][sbOwned] == 1)

    {

    format(string, sizeof(string), "~w~%s~w~~n~Owner : %s~n~Extortion by : %s~n~Entrance Fee : ~g~$%d ~w~Level : %d ~n~to enter type /enter",SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner],SBizzInfo[h][sbExtortion],SBizzInfo[h][sbEntranceCost],SBizzInfo[h][sbLevelNeeded]);

    }

    else

    {

    format(string, sizeof(string), "~w~%s~w~~n~This Business is for sale~n~Cost: ~g~$%d ~w~Level : %d ~n~to buy this Business type 'biz",SBizzInfo[h][sbMessage],SBizzInfo[h][sbBuyPrice],SBizzInfo[h][sbLevelNeeded]);

    }

    GameTextForPlayer(i, string, 5000, 3);

    return 1;

    }

    }

    for(new h = 0; h < sizeof(HouseInfo); h++)

    {

    if(PlayerToPoint(0.5, i, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]))

    {

    if(HouseInfo[h][hOwned] == 1)

    {

    if(HouseInfo[h][hRentabil] == 0)

    {

    format(string, sizeof(string), "Aceasta casa apartine lui:%s\nLevel:%d",HouseInfo[h][hOwner],HouseInfo[h][hLevel]);

    }

    else

    {

    format(string, sizeof(string), "Aceasta casa ii apartine lui:%s\nPret chirie:$%d\nLevel:%d\nTasteaza /rentroom pentru a inchiria",HouseInfo[h][hOwner],HouseInfo[h][hRent],HouseInfo[h][hLevel]);

    }

    ShowPlayerDialog(i,6,DIALOG_STYLE_MSGBOX,"Informatie casa.",string,"Inchiriaza","Renunta");

    return 1;

    }

    else

    {

    format(string, sizeof(string), "Casa de vanzare\n\nDescriere:%s\n\nPret:$%d\n\nLevel:%d",HouseInfo[h][hDiscription],HouseInfo[h][hValue],HouseInfo[h][hLevel]);

    }

    ShowPlayerDialog(i,7,DIALOG_STYLE_MSGBOX,"Informatie casa.",string,"Cumpara","Renunta");

    return 1;

    }

    }

            }

    [/pawn]

    Ai incercat sa rezolvi singur ?:Da

  2. Nick:Johny.xxx9

    Problema:Cum pot face sa scrie in chat de exemplu daca esti politist sa scrie "Politist Johny.xxx9: ........... sau Civil Johny.xxx9: ........"

    Erori / warnings:.....

    Lini/script:Nu stiu unde trebuie sa modific

    Ai incercat sa rezolvi 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.