Jump to content

Recommended Posts

Posted

Salut, va rog sa imi lasati o comanda de /bonus facuta cu z_cmd, am deja una in gamemode dar vreau sa ii se ofere playeru-lui si licenta de fly boat si gun, uitati cum e a mea: 

 
CMD:bonus(playerid, params[])
{
    if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
if(IsPlayerConnected(playerid))
  {
     if(BonusActiv > 0)
     {
      if(PlayerInfo[playerid][pLevel] <= 2)
      {
          GivePlayerCash(playerid, 100000000);
          PlayerInfo[playerid][pLevel] = 3;
PlayerInfo[playerid][pPremiumPoints] = 100;
          Update(playerid, pLevelx);
          Update(playerid, pCashx);
Update(playerid, pPremiumPointsx);
          SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]);
          SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai primit $100,000,000, level 3 si 100 puncte premium, bine ai venit!");
}
else return SendClientMessage(playerid, COLOR_LIGHTRED, "Nu poti folosi aceasta comanda daca ai level 3+ !");
}
}
return 1;
}
Posted
CMD:bonus(playerid, params[])
{
    if(gPlayerLoggeduserbar == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
    if(IsPlayerConnected(playerid))
    {
       if(BonusActiv > 0)
       {
          if(PlayerInfouserbar[pLevel] <= 2)
          {
             GivePlayerCash(playerid, 100000000);
             PlayerInfouserbar[pLevel] = 3;
             PlayerInfouserbar[pPremiumPoints] = 100;
             Update(playerid, pLevelx);
             Update(playerid, pCashx);
             Update(playerid, pPremiumPointsx);
             new str[128];
             PlayerInfo[playerid][pCarLic] = 1;
	     PlayerInfo[playerid][pCarLicT] = 10;
	     PlayerInfo[playerid][pFlyLic] = 1;
	     PlayerInfo[playerid][pFlyLicT] = 10;
	     PlayerInfo[playerid][pBoatLic] = 1;
	     PlayerInfo[playerid][pBoatLicT] = 10;
	     PlayerInfo[playerid][pGunLic] = 1;
	     PlayerInfo[playerid][pGunLicT] = 10;
	     mysql_format(SQL,str,1400,"UPDATE users SET `CarLic`='1',`CarLicT`='10',`FlyLic`='1',`FlyLicT`='10',`BoatLic`='1',`BoatLicT`='10',`GunLic`='1',`GunLicT`='10' WHERE `name`='%s'",PlayerInfo[playerid][pNormalName]);
	     mysql_tquery(SQL,str,"","");
             SetPlayerScore(playerid, PlayerInfouserbar[pLevel]);
             SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai primit $100,000,000, level 3, 100 puncte premium si toate licentele timp de 10 ore, bine ai venit!");
          }
         else return SendClientMessage(playerid, COLOR_LIGHTRED, "Nu poti folosi aceasta comanda daca ai level 3+ !");
       }
    }
    return 1;
}

Foarte greu.

Posted

Ai bigzone frate... stai ca iti refac comanda. Daca mi-ai dat-o asa.. asa ti-am facut-o.. ia: 

CMD:bonus(playerid, params[])
{
    if(IsPlayerConnected(playerid))
    {
       if(BonusActiv > 0)
       {
          if(PlayerInfo[playerid][pLevel] <= 2)
          {
             GivePlayerCash(playerid, 100000000);
             PlayerInfouserbar[pLevel] = 3;
             PlayerInfouserbar[pPremiumPoints] = 100;
             Update(playerid, pLevelx);
             Update(playerid, pCashx);
             Update(playerid, pPremiumPointsx);
             new str[128];
             PlayerInfo[playerid][pCarLic] = 1;
	     PlayerInfo[playerid][pCarLicT] = 10;
	     PlayerInfo[playerid][pFlyLic] = 1;
	     PlayerInfo[playerid][pFlyLicT] = 10;
	     PlayerInfo[playerid][pBoatLic] = 1;
	     PlayerInfo[playerid][pBoatLicT] = 10;
	     PlayerInfo[playerid][pGunLic] = 1;
	     PlayerInfo[playerid][pGunLicT] = 10;
	     mysql_format(SQL,str,1400,"UPDATE users SET `CarLic`='1',`CarLicT`='10',`FlyLic`='1',`FlyLicT`='10',`BoatLic`='1',`BoatLicT`='10',`GunLic`='1',`GunLicT`='10' WHERE `name`='%s'",PlayerInfo[playerid][pNormalName]);
	     mysql_tquery(SQL,str,"","");
             SetPlayerScore(playerid, PlayerInfouserbar[pLevel]);
             SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai primit $100,000,000, level 3, 100 puncte premium si toate licentele timp de 10 ore, bine ai venit!");
          }
         else return SendClientMessage(playerid, COLOR_LIGHTRED, "Nu poti folosi aceasta comanda daca ai level 3+ !");
       }
    }
    return 1;
}
Posted

CMD:bonus(playerid, params[])
{
    if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
if(IsPlayerConnected(playerid))
  {
     if(PlayerInfo[playerid][pBonus] == 0)
     {
    GivePlayerCash(playerid, 500000);
    PlayerInfo[playerid][pLevel] = 3;
    PlayerInfo[playerid][pPremiumPoints] += 20;
    PlayerInfo[playerid][pBonus] = 1;
    PlayerInfo[playerid][pCarLic] = 1;
   PlayerInfo[playerid][pCarLicT] = 5;
   PlayerInfo[playerid][pFlyLic] = 1;
   PlayerInfo[playerid][pFlyLicT] = 5;
   PlayerInfo[playerid][pBoatLic] = 1;
   PlayerInfo[playerid][pBoatLicT] = 5;
   PlayerInfo[playerid][pGunLic] = 1;
   PlayerInfo[playerid][pGunLicT] = 5;
    Update(playerid, pLevelx);
    Update(playerid, pCashx);
    Update(playerid, pPremiumPointsx);
    Update(playerid, pBonusx);
SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]);
    ShowPlayerDialog(playerid, 3354, DIALOG_STYLE_MSGBOX, "{ffffff}Server Bonus {ffffff}| {00FFFF}www.RedWoodz.ro{ffffff} |", "{ffffff}Ai folosit comanda {00FFFF}/bonus{ffffff} si ai primit:\n {00FFFF}-{ffffff} Level {00FFFF}3\n -{ffffff} 500.000{33cc33}$\n {00FFFF}-{ffffff} 20 Puncte {ffff00}Premium\n -{ffffff} Toate licentele timp de 5 {00FFFF}[ORE]","{ffffff}Multumesc","");
}
else return SCM(playerid, -1, "Deja ai primit bonusul.");
}
return 1;
}
Posted
C:\Users\Joculete\Desktop\ptmapeditor\BigZoneGM.pwn(38903) : warning 217: loose indentation

C:\Users\Joculete\Desktop\ptmapeditor\BigZoneGM.pwn(38911) : warning 217: loose indentation

C:\Users\Joculete\Desktop\ptmapeditor\BigZoneGM.pwn(38918) : warning 217: loose indentation

C:\Users\Joculete\Desktop\ptmapeditor\BigZoneGM.pwn(38921) : warning 217: loose indentation

C:\Users\Joculete\Desktop\ptmapeditor\BigZoneGM.pwn(38922) : warning 217: loose indentation

C:\Users\Joculete\Desktop\ptmapeditor\BigZoneGM.pwn(38924) : warning 217: loose indentation

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

 

 

6 Warnings.

 asta ce mai e?

Posted

S

 

 

C:\Users\Joculete\Desktop\ptmapeditor\BigZoneGM.pwn(38903) : warning 217: loose indentation
C:\Users\Joculete\Desktop\ptmapeditor\BigZoneGM.pwn(38911) : warning 217: loose indentation
C:\Users\Joculete\Desktop\ptmapeditor\BigZoneGM.pwn(38918) : warning 217: loose indentation
C:\Users\Joculete\Desktop\ptmapeditor\BigZoneGM.pwn(38921) : warning 217: loose indentation
C:\Users\Joculete\Desktop\ptmapeditor\BigZoneGM.pwn(38922) : warning 217: loose indentation
C:\Users\Joculete\Desktop\ptmapeditor\BigZoneGM.pwn(38924) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
 
 
6 Warnings.
 asta ce mai e?

 

Merge comanda,sunt warning-uri

Posted

 

S

 

Merge comanda,sunt warning-uri

 

=)))))))))))))))))))))))))))))))))))))))))))))))))))))))) Prin comment-ul asta ai dovedit cat de bine stii sa scriptezi. MOOOR =))

 

OT: Sunt warning-uri, insa iti recomand sa le rezolvi. Loose Indentation inseamna atunci cand ai pus prea multe spatii sau prea putine. Codul nu e "indentat" corect. Verifica liniile alea.

  • Thanks 1
Posted

=)))))))))))))))))))))))))))))))))))))))))))))))))))))))) Prin comment-ul asta ai dovedit cat de bine stii sa scriptezi. MOOOR =))

 

OT: Sunt warning-uri, insa iti recomand sa le rezolvi. Loose Indentation inseamna atunci cand ai pus prea multe spatii sau prea putine. Codul nu e "indentat" corect. Verifica liniile alea.

M-am uitat mai sus,au postat mari scripteri comanda bonus,cu 4-5 erori,ii dau eu comanda buna ii da warning la altceva apare hate-ul , va pup :*

CMD:bonus(playerid, params[])
{
    if(gPlayerLoggeduserbar == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
    if(IsPlayerConnected(playerid))
    {
       if(BonusActiv > 0)
       {
          if(PlayerInfouserbar[pLevel] <= 2)
          {
             GivePlayerCash(playerid, 100000000);
             PlayerInfouserbar[pLevel] = 3;
             PlayerInfouserbar[pPremiumPoints] = 100;
             Update(playerid, pLevelx);
             Update(playerid, pCashx);
             Update(playerid, pPremiumPointsx);
             new str[128];
             PlayerInfo[playerid][pCarLic] = 1;
	     PlayerInfo[playerid][pCarLicT] = 10;
	     PlayerInfo[playerid][pFlyLic] = 1;
	     PlayerInfo[playerid][pFlyLicT] = 10;
	     PlayerInfo[playerid][pBoatLic] = 1;
	     PlayerInfo[playerid][pBoatLicT] = 10;
	     PlayerInfo[playerid][pGunLic] = 1;
	     PlayerInfo[playerid][pGunLicT] = 10;
	     mysql_format(SQL,str,1400,"UPDATE users SET `CarLic`='1',`CarLicT`='10',`FlyLic`='1',`FlyLicT`='10',`BoatLic`='1',`BoatLicT`='10',`GunLic`='1',`GunLicT`='10' WHERE `name`='%s'",PlayerInfo[playerid][pNormalName]);
	     mysql_tquery(SQL,str,"","");
             SetPlayerScore(playerid, PlayerInfouserbar[pLevel]);
             SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai primit $100,000,000, level 3, 100 puncte premium si toate licentele timp de 10 ore, bine ai venit!");
          }
         else return SendClientMessage(playerid, COLOR_LIGHTRED, "Nu poti folosi aceasta comanda daca ai level 3+ !");
       }
    }
    return 1;
}

Foarte greu.

 

Vezi ca i-ai dat comanda buguita,stiu ca esti invatat dar mna abtinete

Posted

M-am uitat mai sus,au postat mari scripteri comanda bonus,cu 4-5 erori,ii dau eu comanda buna ii da warning la altceva apare hate-ul , va pup :*

Vezi ca i-ai dat comanda buguita,stiu ca esti invatat dar mna abtinete

Frate, tu esti chiar atat de nab? Sau doar te prefaci? E logic ca ii da erori daca comanda aia nu e facuta pentru gamemode-ul lui. Noi n-avem de unde sa stim ce variabile are. Macar daca ii dai o comanda, da-i una perfecta daca tot te "pricepi". Mai ales ca trebuie sa ii si explici ce inseamna pe acolo. Tu dai copy-paste dintr-un gamemode si gata, te lauzi cu ea pe forum. Tu vezi o mare diferenta intre comanda ta si comanda lui sKim? Marele scripter, ai si tu 11 anisori jumate si vii si faci pe desteptul aici.

Posted

Frate, tu esti chiar atat de nab? Sau doar te prefaci? E logic ca ii da erori daca comanda aia nu e facuta pentru gamemode-ul lui. Noi n-avem de unde sa stim ce variabile are. Macar daca ii dai o comanda, da-i una perfecta daca tot te "pricepi". Mai ales ca trebuie sa ii si explici ce inseamna pe acolo. Tu dai copy-paste dintr-un gamemode si gata, te lauzi cu ea pe forum. Tu vezi o mare diferenta intre comanda ta si comanda lui sKim? Marele scripter, ai si tu 11 anisori jumate si vii si faci pe desteptul aici.

Macar va sunt superior 

Posted

Macar va sunt superior 

Adevarat. Scuze sefu'. N-ai habar ce inseamna warning-urile / errorile si esti superior. =))

Posted

warning=avertizare

error=eroare

Crede-ma ca poti primi warning-uri care iti pot cauza nefunctionarea unui script, deci nu mai vorbi prostii atat timp cat n-ai idee despre ce vorbesti.

 

 

 

C:\Users\Joculete\Desktop\ptmapeditor\BigZoneGM.pwn(38903) : warning 217: loose indentation
C:\Users\Joculete\Desktop\ptmapeditor\BigZoneGM.pwn(38911) : warning 217: loose indentation
C:\Users\Joculete\Desktop\ptmapeditor\BigZoneGM.pwn(38918) : warning 217: loose indentation
C:\Users\Joculete\Desktop\ptmapeditor\BigZoneGM.pwn(38921) : warning 217: loose indentation
C:\Users\Joculete\Desktop\ptmapeditor\BigZoneGM.pwn(38922) : warning 217: loose indentation
C:\Users\Joculete\Desktop\ptmapeditor\BigZoneGM.pwn(38924) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
 
 
6 Warnings.
 asta ce mai e?

 

Aranjeaza scriptul, e prea haotic.

Posted (edited)

Macar comanda mea a mers =)))))))))))))))

=)))))))))

pai e simplu, intri in BigZoneGM, cauti cu CTRL+F, CMD:bonus, o copii, dai paste aici, gata.

csf, macar eu nu ma pun cu de astia la varsta ta.

retras.
Edited by Lo0cK
Posted

 

=)))))))))

pai e simplu, intri in BigZoneGM, cauti cu CTRL+F, CMD:bonus, o copii, dai paste aici, gata.

csf, macar eu nu ma pun cu de astia la varsta ta.

retras.

Intra in bizgone sa vezi ca comenzile sunt diferite,dar tu esti autist..

Posted

BzIonutt ....

 

C:\Users\Joculete\Desktop\ptmapeditor\BigZoneGM.pwn(38901) : error 017: undefined symbol "gPlayerLoggeduserbar"
C:\Users\Joculete\Desktop\ptmapeditor\BigZoneGM.pwn(38906) : error 017: undefined symbol "PlayerInfouserbar"
C:\Users\Joculete\Desktop\ptmapeditor\BigZoneGM.pwn(38906) : warning 215: expression has no effect
C:\Users\Joculete\Desktop\ptmapeditor\BigZoneGM.pwn(38906) : error 001: expected token: ";", but found "]"
C:\Users\Joculete\Desktop\ptmapeditor\BigZoneGM.pwn(38906) : error 029: invalid expression, assumed zero
C:\Users\Joculete\Desktop\ptmapeditor\BigZoneGM.pwn(38906) : fatal error 107: too many error messages on one line
Posted

Macar va sunt superior 

Ba da' tare-n mazare esti zilele astea copil

Vezi-ti de fasolea ta si noi ne vedem de puiu nostru

Ramai in lumea ta unde esti shad0w, da?

Posted

Pune aici folosind [ code ] [ /code ] liniile 38901 si 38906

 

 

BzIonutt ....

 

C:\Users\Joculete\Desktop\ptmapeditor\BigZoneGM.pwn(38901) : error 017: undefined symbol "gPlayerLoggeduserbar"
C:\Users\Joculete\Desktop\ptmapeditor\BigZoneGM.pwn(38906) : error 017: undefined symbol "PlayerInfouserbar"
C:\Users\Joculete\Desktop\ptmapeditor\BigZoneGM.pwn(38906) : warning 215: expression has no effect
C:\Users\Joculete\Desktop\ptmapeditor\BigZoneGM.pwn(38906) : error 001: expected token: ";", but found "]"
C:\Users\Joculete\Desktop\ptmapeditor\BigZoneGM.pwn(38906) : error 029: invalid expression, assumed zero
C:\Users\Joculete\Desktop\ptmapeditor\BigZoneGM.pwn(38906) : fatal error 107: too many error messages on one line

 

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. 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.

moduri samp