Too long line causing crash - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Too long line causing crash (
/showthread.php?tid=402897)
Too long line causing crash -
Feastahashi - 28.12.2012
Hey, guys, how do I do to solve it?
When I compile, pwncc.exe process uses 30% of CPU, and it simply stuck, so I have to finalize it. It's due a line that's too long, and I would like to know how do I do to split it in 2 lines to solve the problem.
Code:
format(string,sizeof(string),""#ice"Welcome back, %s!\nYour account stats:\n"#red"Money: "#yellow"%d\n"#red"Your score: "#yellow"%d\n"#red"Skin ID: "#yellow"%d\n"#red"Level: "#yellow"%d\n"#red"Admin Level: "#yellow"%d\n"#red"Kills: "#yellow"%d\n"#red"Deaths: "#yellow"%d\n"#red"Your bank money: "#yellow"%d",GetMyName(playerid),Info[playerid][Money], Info[playerid][Score], Info[playerid][Skin], Info[playerid][Level], Info[playerid][AdminLevel], Info[playerid][Kills], Info[playerid][Deaths], Info[playerid][BankMoney]);
Re : Too long line causing crash -
DaRk_RaiN - 28.12.2012
Put it this way
pawn Code:
format
(string,sizeof(string),""#ice"Welcome back, %s!\nYour account stats:\n"#red"Money: "#yellow"%d\n"#red"Your score: "#yellow"%d\n"#red"Skin ID: "#yellow"%d\n"#red"Level: "#yellow"%d\n"#red"Admin Level: "#yellow"%d\n"#red"Kills: "#yellow"%d\n"#red"Deaths: "#yellow"%d\n"#red"Your bank money: "#yellow"%d",GetMyName(playerid),Info[playerid][Money], Info[playerid][Score], Info[playerid][Skin], Info[playerid][Level],
Info[playerid][AdminLevel],
Info[playerid][Kills],
Info[playerid][Deaths],
Info[playerid][BankMoney]);