Too long line causing crash
#1

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]);
Reply
#2

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]);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)