Peršokti į turinį
  • ŽAIDIMAI
  • , ŽAIDIMAI
  • ŽAIDIMAI

Ši tema yra neaktyvi. Paskutinis pranešimas šioje temoje buvo prieš 4196 dienas (-ų). Patariame sukurti naują temą, o ne rašyti naują pranešimą.

Už neaktyvių temų prikėlimą galite sulaukti įspėjimo ir pranešimo pašalinimo!

Recommended Posts

(redaguota)

man atrodo sakiau, kad buvau paleides, tai reiskia klaidu nera..

va ziurek, nieko neradau.

for(i = 0; i < MAX_PROPERTYS_IN_SERVER; i ++)
{
if(IsPlayerInRangeOfPoint(playerid, 2.5, PropertySystem[i][pPos_X], PropertySystem[i][pPos_Y], PropertySystem[i][pPos_Z]))
{
    new String[300];
    if(!strcmp(PropertySystem[i][pOwner], "Savivaldybė", false, MAX_PLAYER_NAME))
{
if(PropertySystem[i][pOwnerForCredits])
{
    format(String, sizeof(String), "{ffffff}Verslo pavadinimas: {FF0000}%s\n{ffffff}Verslo ID: "COL_PRICE"%d\n{ffffff}Kaina: "COL_PRICE"%d {ffffff}kreditų (-ai)\n{ffffff}Pelnas: "COL_PRICE"$%d/1 {ffffff}min\n{ffffff}Savininkas: {FF0000}%s\n \n{ffffff}Ar norite jį pirkti?",
    PropertySystem[i][pTitle], i, PropertySystem[i][pPrice], PropertySystem[i][pEarning], PropertySystem[i][pOwner]);
    }
    else
    {
    format(String, sizeof(String), "{ffffff}Verslo pavadinimas: {FF0000}%s\n{ffffff}Verslo ID: "COL_PRICE"%d\n{ffffff}Kaina: "COL_PRICE"$%s\n{ffffff}Pelnas: "COL_PRICE"$%d/1 {ffffff}min\n{ffffff}Savininkas: {FF0000}%s\n \n{ffffff}Ar norite jį pirkti?",
    PropertySystem[i][pTitle], i, konvertuoti_pinigus(PropertySystem[i][pPrice]), PropertySystem[i][pEarning], PropertySystem[i][pOwner]);
    }


ShowPlayerDialog(playerid, r, DIALOG_STYLE_MSGBOX, "Verslo pirkimas", String, "Taip", "Ne");


playerDB[playerid][SomeoneVariable][0] = i;
}
case PropertyBuyDialog:
{
   if(playerDB[playerid][admin] < 4)
   {
    new PropertysCountV;
   for(new i = 0; i < MAX_PROPERTYS_IN_SERVER; i ++)
   {
       if(strcmp(PropertySystem[pOwner], "0"))
    {
    if(!strcmp(PropertySystem[pOwner], GetPlayerNameEx(playerid), false, MAX_PLAYER_NAME))
    {
       PropertysCountV ++;
    }
    }
   }
 
    if(PropertysCountV >= 2)
    {
       return SendClientMessage(playerid, -1, ""COL_ERROR"[KLAIDA]: {ffffff}Jus jau turite 2 verslus!");
         }
     }
 
    new pID = playerDB[playerid][someoneVariable][0];
... ir t.t.

 

 

Redaguota , nario DELETED'

An error occurred while loading signature.


for(i = 0; i < MAX_PROPERTYS_IN_SERVER; i ++)

{

if(IsPlayerInRangeOfPoint(playerid, 2.5, PropertySystem[pPos_X], PropertySystem[pPos_Y], PropertySystem[pPos_Z]))

{

    new String[300];

    if(!strcmp(PropertySystem[pOwner], "Savivaldybė", false, MAX_PLAYER_NAME))

{

if(PropertySystem[pOwnerForCredits])

{

    format(String, sizeof(String), "{ffffff}Verslo pavadinimas: {FF0000}%s\n{ffffff}Verslo ID: "COL_PRICE"%d\n{ffffff}Kaina: "COL_PRICE"%d {ffffff}kreditų (-ai)\n{ffffff}Pelnas: "COL_PRICE"$%d/1 {ffffff}min\n{ffffff}Savininkas: {FF0000}%s\n \n{ffffff}Ar norite jį pirkti?",

    PropertySystem[pTitle], i, PropertySystem[pPrice], PropertySystem[pEarning], PropertySystem[pOwner]);

    }

    else

    {

    format(String, sizeof(String), "{ffffff}Verslo pavadinimas: {FF0000}%s\n{ffffff}Verslo ID: "COL_PRICE"%d\n{ffffff}Kaina: "COL_PRICE"$%s\n{ffffff}Pelnas: "COL_PRICE"$%d/1 {ffffff}min\n{ffffff}Savininkas: {FF0000}%s\n \n{ffffff}Ar norite jį pirkti?",

    PropertySystem[pTitle], i, konvertuoti_pinigus(PropertySystem[pPrice]), PropertySystem[pEarning], PropertySystem[pOwner]);

    }

ShowPlayerDialog(playerid, PropertyBuyDialog, DIALOG_STYLE_MSGBOX, "Verslo pirkimas", String, "Taip", "Ne");

playerDB[playerid][SomeoneVariable][0] = i;

}

/*else if(!strcmp(PropertySystem[pOwner], GetPlayerNameEx(playerid), false, MAX_PLAYER_NAME))

{

if(PropertySystem[pOwnerForCredits])

{

    format(String, sizeof(String), "{ffffff}Verslo pavadinimas: {FF0000}%s\n{ffffff}Verslo ID: "COL_PRICE"%d\n{ffffff}Kaina: "COL_PRICE"%d {ffffff}kreditų (-ai)\n{ffffff}Pelnas: "COL_PRICE"$%d/1 {ffffff}min\n{ffffff}Savininkas: {FF0000}%s\n \n{ffffff}Verslas priklauso jums, ar norite jį parduoti?",

    PropertySystem[pTitle], i, PropertySystem[pPrice], PropertySystem[pEarning], PropertySystem[pOwner]);

    }

    else

    {

    format(String, sizeof(String), "{ffffff}Verslo pavadinimas: {FF0000}%s\n{ffffff}Verslo ID: "COL_PRICE"%d\n{ffffff}Kaina: "COL_PRICE"$%s\n{ffffff}Pelnas: "COL_PRICE"$%d/1 {ffffff}min\n{ffffff}Savininkas: {FF0000}%s\n \n{ffffff}Verslas priklauso jums, ar norite jį parduoti?",

    PropertySystem[pTitle], i, PropertySystem[pPrice], PropertySystem[pEarning], PropertySystem[pOwner]);

    }

ShowPlayerDialog(playerid, PropertySellDialog, DIALOG_STYLE_MSGBOX, "Verslo pardavimas", String, "Taip", "Ne");

playerDB[playerid][SomeoneVariable][0] = i;

}*/

else

{

    if(PropertySystem[pOwnerForCredits])

{

    format(String, sizeof(String), "{ffffff}Verslo pavadinimas: {FF0000}%s\n{ffffff}Verslo ID: "COL_PRICE"%d\n{ffffff}Kaina: "COL_PRICE"%d {ffffff}kreditų (-ai)\n{ffffff}Pelnas: "COL_PRICE"$%d/1 {ffffff}min\n{ffffff}Savininkas: {FF0000}%s",

    PropertySystem[pTitle], i, PropertySystem[pPrice], PropertySystem[pEarning], PropertySystem[pOwner]);

    }

    else

    {

    format(String, sizeof(String), "{ffffff}Verslo pavadinimas: {FF0000}%s\n{ffffff}Verslo ID: "COL_PRICE"%d\n{ffffff}Kaina: "COL_PRICE"$%s\n{ffffff}Pelnas: "COL_PRICE"$%d/1 {ffffff}min\n{ffffff}Savininkas: {FF0000}%s",

    PropertySystem[pTitle], i, konvertuoti_pinigus(PropertySystem[pPrice]), PropertySystem[pEarning], PropertySystem[pOwner]);

    }

ShowPlayerDialog(playerid, PropertyInfoDialog, DIALOG_STYLE_MSGBOX, "Verslo informacija", String, "Uždaryti", "");

}

StopPlayerActions(playerid);

break;

}

}

}

return 0;

}


case PropertyBuyDialog:

{

   if(playerDB[playerid][admin] < 4)

   {

    new PropertysCountV;

   for(new i = 0; i < MAX_PROPERTYS_IN_SERVER; i ++)

   {

       if(strcmp(PropertySystem[pOwner], "0"))

    {

    if(!strcmp(PropertySystem[pOwner], GetPlayerNameEx(playerid), false, MAX_PLAYER_NAME))

    {

       PropertysCountV ++;

    }

    }

   }

    if(PropertysCountV >= 2)

    {

       return SendClientMessage(playerid, -1, ""COL_ERROR"[KLAIDA]: {ffffff}Jus jau turite 2 verslus!");

         }

     }

    new pID = playerDB[playerid][SomeoneVariable][0];

    if(response)

    {

    if(PropertySystem[pID][pOwnerForCredits])

    {

    new String[270];

    new Credits = KiekKredituTuri(GetPlayerNameEx(playerid));

    if(Credits < PropertySystem[pID][pPrice]) return SendClientMessage(playerid, -1, ""COL_ERROR"[KLAIDA]: {ffffff}Jums neužtenka kreditų!");

    Credits -= PropertySystem[pID][pPrice];

            format(String, sizeof(String), "UPDATE `players` SET `Kreditai` = '%d' WHERE `Vardas` = '%s'", Credits, GetPlayerNameEx(playerid));

            mysql_query(String);

            format(String, sizeof(String), "[PASLAUGOS] Kada pirko: %s | Zaidejo vardas: %s | PIRKO VERSLA\r\n", GetDateEx(), GetPlayerNameEx(playerid));

              Log(PIRKO_PASLAUGAS, String);

              format(String, sizeof(String),"{4C85FF}[ADMIN]: {ffffff}Žaidėjas {ff0000}%s {ffffff}nusipirko verslą už kreditus!", GetPlayerNameEx(playerid));

            SendMessageToAdmins(playerid, String);

            format(String, sizeof(String), "Nusipirko versla %s(%d) uz kreditus", PropertySystem[pID][pTitle], pID);

SendMessageToSeverLog(GetPlayerNameEx(playerid), String);

       format(String, sizeof(String), ""COL_INFO"[INFO]: {ffffff}Sėkmingai nusipirkote verslą už "COL_PRICE"%s {ffffff}kreditų (-us)!", konvertuoti_pinigus(PropertySystem[pID][pPrice]));

       SendClientMessage(playerid, -1, String);

       SendClientMessage(playerid, -1, ""COL_INFO"[INFO]: {ffffff}Savo verslą valdyti galėsite parašę "COL_CMD"/verslai{ffffff}!");

       strdel(PropertySystem[pID][pOwner], 0, MAX_PLAYER_NAME);

       strcat(PropertySystem[pID][pOwner], GetPlayerNameEx(playerid), MAX_PLAYER_NAME);

format(String, sizeof(String), "{FF0000}%s\n \n{ffffff}Kaina: "COL_PRICE"%d {ffffff}kreditų (-ai)\n{ffffff}Pelnas: "COL_PRICE"$%d/1 {ffffff}min\n{ffffff}Savininkas: {FF0000}%s\n \n{ffffff}Spausk ENTER",

PropertySystem[pID][pTitle], PropertySystem[pID][pPrice], PropertySystem[pID][pEarning], PropertySystem[pID][pOwner]);

UpdateDynamic3DTextLabelText(PropertySystem[pID][pTextLabel], -1, String);

SaveProperty(pID);

    }

    else

    {

    if(GetPlayerMoneyA(playerid) >= PropertySystem[pID][pPrice])

       {

           new String[270];

           format(String, sizeof(String), ""COL_INFO"[INFO]: {ffffff}Sėkmingai nusipirkote verslą už "COL_PRICE"$%s{ffffff}!", konvertuoti_pinigus(PropertySystem[pID][pPrice]));

           SendClientMessage(playerid, -1, String);

           SendClientMessage(playerid, -1, ""COL_INFO"[INFO]: {ffffff}Savo verslą valdyti galėsite parašę "COL_CMD"/verslai{ffffff}!");

           GivePlayerMoneyA(playerid, -PropertySystem[pID][pPrice]);

           format(String, sizeof(String), "Nusipirko versla %s(%d) uz pinigus", PropertySystem[pID][pTitle], pID);

SendMessageToSeverLog(GetPlayerNameEx(playerid), String);

           strdel(PropertySystem[pID][pOwner], 0, MAX_PLAYER_NAME);

           strcat(PropertySystem[pID][pOwner], GetPlayerNameEx(playerid), MAX_PLAYER_NAME);

format(String, sizeof(String), "{FF0000}%s\n \n{ffffff}Kaina: "COL_PRICE"$%s\n{ffffff}Pelnas: "COL_PRICE"$%d/1 {ffffff}min\n{ffffff}Savininkas: {FF0000}%s\n \n{ffffff}Spausk ENTER",

PropertySystem[pID][pTitle], konvertuoti_pinigus(PropertySystem[pID][pPrice]), PropertySystem[pID][pEarning], PropertySystem[pID][pOwner]);

UpdateDynamic3DTextLabelText(PropertySystem[pID][pTextLabel], -1, String);

SaveProperty(pID);

       }

       else

       {

           SendClientMessage(playerid, -1, ""COL_ERROR"[KLAIDA]: {ffffff}Jums neužtenka pinigų šio verslo nusipirkimui!");

       }

    }

    }

}

An error occurred while loading signature.

Ši tema yra neaktyvi. Paskutinis pranešimas šioje temoje buvo prieš 4196 dienas (-ų). Patariame sukurti naują temą, o ne rašyti naują pranešimą.

Už neaktyvių temų prikėlimą galite sulaukti įspėjimo ir pranešimo pašalinimo!

Prisijungti prie diskusijos

Palikti atsakymą galite iš karto, o užsiregistruoti vėliau. Jeigu jau turite paskyrą mūsų forume, Prisijunkite.

Svečias
Atsakyti šioje temoje...

×   Įklijuotas tekstas turi teksto formatavimą.   Pašalinti teksto formatavimą

  Galimi tik 75 veidukai.

×   Nuoroda buvo automatiškai įterpta.   Įterpti nuorodą paprastai

×   Jūsų ankstesnis pranešimas buvo atkurtas.   Išvalyti redaktorių

×   Jūs negalite įkelti nuotraukas tiesiogiai.Įkelkite arba įdėkite nuotraukas iš URL.

  • Šiame puslapyje naršo:   0 nariai

    • Nėra registruotų narių peržiūrinčių šį forumą.

Skelbimai


×
×
  • Sukurti naują...