Cata Pui Posted February 9, 2017 Posted February 9, 2017 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; }
LucianGM Posted February 9, 2017 Posted February 9, 2017 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.
Cata Pui Posted February 9, 2017 Author Posted February 9, 2017 incepator+noob+prost in pawno= dezcar, recunosc.... Multumesc mult! http://imgur.com/a/vKolC dc imi da erroarea asta?
LucianGM Posted February 9, 2017 Posted February 9, 2017 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; }
Cata Pui Posted February 9, 2017 Author Posted February 9, 2017 tot imi da erroarea asta, te rog ajuta-ma! : http://imgur.com/a/PsRvL
Zooky. Posted February 9, 2017 Posted February 9, 2017 tot imi da erroarea asta, te rog ajuta-ma! : http://imgur.com/a/PsRvL Modifica "PlayerInfouserbar" in "PlayerInfo"
Ionu Nica Posted February 9, 2017 Posted February 9, 2017 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; }
Cata Pui Posted February 9, 2017 Author Posted February 9, 2017 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?
Ionu Nica Posted February 9, 2017 Posted February 9, 2017 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
Zooky. Posted February 9, 2017 Posted February 9, 2017 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. 1
Ionu Nica Posted February 9, 2017 Posted February 9, 2017 =)))))))))))))))))))))))))))))))))))))))))))))))))))))))) 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
Zooky. Posted February 9, 2017 Posted February 9, 2017 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.
Ionu Nica Posted February 9, 2017 Posted February 9, 2017 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
Zooky. Posted February 9, 2017 Posted February 9, 2017 Macar va sunt superior Adevarat. Scuze sefu'. N-ai habar ce inseamna warning-urile / errorile si esti superior. =))
Ionu Nica Posted February 9, 2017 Posted February 9, 2017 Adevarat. Scuze sefu'. N-ai habar ce inseamna warning-urile / errorile si esti superior. =)) warning=avertizare error=eroare
L0K3D. Posted February 9, 2017 Posted February 9, 2017 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.
qDany Posted February 9, 2017 Posted February 9, 2017 Din cate observ, nu intelegi nici romana. Bv mane, o duci bine in viata. Nu are rost sa il bagi in seama mah;).
MosEdi Posted February 9, 2017 Posted February 9, 2017 (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 February 9, 2017 by Lo0cK
Ionu Nica Posted February 10, 2017 Posted February 10, 2017 =))))))))) 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..
Cata Pui Posted February 10, 2017 Author Posted February 10, 2017 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
Roby Posted February 10, 2017 Posted February 10, 2017 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?
M1hai Posted February 11, 2017 Posted February 11, 2017 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
KeegaN. Posted February 11, 2017 Posted February 11, 2017 ... Nu ințelegi nimic, poți verifica ce ți-a zis Zooky, tu te crezi superior dar nu înțelegi nimic.
Recommended Posts