Bugs Posted April 25, 2020 Report Share Posted April 25, 2020 Am incercat sa fac comanda asta pe gm ul 2k19 cred ca e bigzone edit, idk si primesc niste errori , ma poate ajuta cineva? Ps : daca se poate vreau sa stiu de ce am primit acele errori vreau sa incerc sa repar eu singur [pe google nu am gasit nimic folositor] !~ Am incercat sa schimb money cu pCashx sau Pbank dar tot primesc errorile astea ~! Comanda new Year, Month, Day; getdate(Year, Month, Day); if (PlayerInfo[playerid][pDailyLogin] != Day) { new szString[128]; pRP = 1, money = PlayerInfo([playerid] [pLevel] * 10000 + random(40000); format(szString, sizeof(szString), "UPDATE `users` SET `DailyLogin`='%d' WHERE `ID`='%d'", day, PlayerInfo[playerid] [pSQLID]); mysql_tquery(SQL, szString, "", ""); SendClientMessage(playerid, 0xFF8A00, "Felicitari") format(szString, sizeof(szString),"acest bonus consta in %d rp(uri) si $%s.", rp, FormatNumber(money)); SendClientMessage(playerid, 0xFF8A00, szString); GivePlayerMoney(playerid, money); PlayerInfo(playerid)[pExp] += rp; Update(playerid,pRP); } Errori GM.pwn(15390) : warning 217: loose indentation GM.pwn(15391) : warning 217: loose indentation GM.pwn(15395) : error 022: must be lvalue (non-constant) GM.pwn(15395) : warning 215: expression has no effect GM.pwn(15395 -- 15396) : error 017: undefined symbol "money" GM.pwn(15396) : error 012: invalid function call, not a valid address GM.pwn(15396) : fatal error 107: too many error messages on one line Compilation aborted. Pawn compiler 3.10.8 Copyright (c) 1997-2006, ITB CompuPhase 4 Errors. [Finished in 0.6s with exit code 1] Citat Quote Link to comment Share on other sites More sharing options...
0 hanako Posted April 26, 2020 Report Share Posted April 26, 2020 pai si eu de unde stiu care-s liniile? Quote Link to comment Share on other sites More sharing options...
0 _Valy_ Posted April 26, 2020 Report Share Posted April 26, 2020 (edited) Acum 13 ore, Bugs a spus: Am incercat sa fac comanda asta pe gm ul 2k19 cred ca e bigzone edit, idk si primesc niste errori , ma poate ajuta cineva? Ps : daca se poate vreau sa stiu de ce am primit acele errori vreau sa incerc sa repar eu singur [pe google nu am gasit nimic folositor] !~ Am incercat sa schimb money cu pCashx sau Pbank dar tot primesc errorile astea ~! Comanda new Year, Month, Day; getdate(Year, Month, Day); if (PlayerInfo[playerid][pDailyLogin] != Day) { new szString[128]; pRP = 1, money = PlayerInfo([playerid] [pLevel] * 10000 + random(40000); format(szString, sizeof(szString), "UPDATE `users` SET `DailyLogin`='%d' WHERE `ID`='%d'", day, PlayerInfo[playerid] [pSQLID]); mysql_tquery(SQL, szString, "", ""); SendClientMessage(playerid, 0xFF8A00, "Felicitari") format(szString, sizeof(szString),"acest bonus consta in %d rp(uri) si $%s.", rp, FormatNumber(money)); SendClientMessage(playerid, 0xFF8A00, szString); GivePlayerMoney(playerid, money); PlayerInfo(playerid)[pExp] += rp; Update(playerid,pRP); } Errori GM.pwn(15390) : warning 217: loose indentation GM.pwn(15391) : warning 217: loose indentation GM.pwn(15395) : error 022: must be lvalue (non-constant) GM.pwn(15395) : warning 215: expression has no effect GM.pwn(15395 -- 15396) : error 017: undefined symbol "money" GM.pwn(15396) : error 012: invalid function call, not a valid address GM.pwn(15396) : fatal error 107: too many error messages on one line Compilation aborted. Pawn compiler 3.10.8 Copyright (c) 1997-2006, ITB CompuPhase 4 Errors. [Finished in 0.6s with exit code 1] new Year, Month, Day; getdate(Year, Month, Day); if (PlayerInfo[playerid][pDailyLogin] != Day) { new szString[256], pRP = 1, money = PlayerInfo([playerid] [pLevel] * 10000 + random(40000)); format(szString, sizeof(szString), "UPDATE `users` SET `DailyLogin`='%d' WHERE `ID`='%d'", day, PlayerInfo[playerid][pSQLID]); mysql_tquery(SQL, szString, "", ""); SendClientMessage(playerid, 0xFF8A00, "Felicitari"); format(szString, sizeof(szString),"acest bonus consta in %d rp(uri) si $%s.", rp, FormatNumber(money)); SendClientMessage(playerid, 0xFF8A00, szString); GivePlayerMoney(playerid, money); PlayerInfo(playerid)[pExp] += rp; Update(playerid,pRP); return 1; } 1. acolo unde este variabilea new sztring[128] aveai ; si trebuia , 2.la money = ....... trebuia o paranteza 3. la SendClientMessage ai omis ; 4.La format ai uitat de o paranteza 5.ai uitat sa pui sub update(playerid,rp); return 1; daca mai intampini probleme adaugama pe discord Valy#4110 Edited April 26, 2020 by _Valy_ completare Quote Link to comment Share on other sites More sharing options...
Question
Bugs
Am incercat sa fac comanda asta pe gm ul 2k19 cred ca e bigzone edit, idk si primesc niste errori , ma poate ajuta cineva?
Ps : daca se poate vreau sa stiu de ce am primit acele errori vreau sa incerc sa repar eu singur [pe google nu am gasit nimic folositor]
!~ Am incercat sa schimb money cu pCashx sau Pbank dar tot primesc errorile astea ~!
Comanda
new Year, Month, Day; getdate(Year, Month, Day); if (PlayerInfo[playerid][pDailyLogin] != Day) { new szString[128]; pRP = 1, money = PlayerInfo([playerid] [pLevel] * 10000 + random(40000); format(szString, sizeof(szString), "UPDATE `users` SET `DailyLogin`='%d' WHERE `ID`='%d'", day, PlayerInfo[playerid] [pSQLID]); mysql_tquery(SQL, szString, "", ""); SendClientMessage(playerid, 0xFF8A00, "Felicitari") format(szString, sizeof(szString),"acest bonus consta in %d rp(uri) si $%s.", rp, FormatNumber(money)); SendClientMessage(playerid, 0xFF8A00, szString); GivePlayerMoney(playerid, money); PlayerInfo(playerid)[pExp] += rp; Update(playerid,pRP); }
Errori
GM.pwn(15390) : warning 217: loose indentation GM.pwn(15391) : warning 217: loose indentation GM.pwn(15395) : error 022: must be lvalue (non-constant) GM.pwn(15395) : warning 215: expression has no effect GM.pwn(15395 -- 15396) : error 017: undefined symbol "money" GM.pwn(15396) : error 012: invalid function call, not a valid address GM.pwn(15396) : fatal error 107: too many error messages on one line Compilation aborted. Pawn compiler 3.10.8 Copyright (c) 1997-2006, ITB CompuPhase 4 Errors. [Finished in 0.6s with exit code 1]
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.