error 075: input line too long (after substitutions)
#1

fixed
Reply
#2

The line is simply too long.
Code:
format(Test, sizeof (Test), "{0055FF}XtremeX Stats For %s (ID:%d):\n\n{FFDC00}Main Stats:\n{E1FF00}> Score: %d\n> Money/Cash: $%d\n> Kills: %d\n> Deaths: %d\n> Level: %d\n", GetName(playerid), playerid, GetPlayerScore(playerid), GetPlayerMoney(playerid), pInfo[playerid][Kills], pInfo[playerid][Deaths], pInfo[playerid][pLevel]);
format(Test, sizeof (Test), "%s> VIP Level: %d\n> Time Spent Ingame: %s\n\n{FFDC00}Goodies Stats:\n{E1FF00}> Cookies: %d\n> Icecreams: %d\n> Cakes: %d", Test, pInfo[playerid][Donator], ConvertTime(seconds,m,h,d), pPinfo[playerid][Cookies], pPinfo[playerid][Icecream], pPinfo[playerid][Cakes]);
Reply
#3

Quote:
Originally Posted by Stinged
View Post
The line is simply too long.
Code:
format(Test, sizeof (Test), "{0055FF}XtremeX Stats For %s (ID:%d):\n\n{FFDC00}Main Stats:\n{E1FF00}> Score: %d\n> Money/Cash: $%d\n> Kills: %d\n> Deaths: %d\n> Level: %d\n", GetName(playerid), playerid, GetPlayerScore(playerid), GetPlayerMoney(playerid), pInfo[playerid][Kills], pInfo[playerid][Deaths], pInfo[playerid][pLevel]);
format(Test, sizeof (Test), "%s> VIP Level: %d\n> Time Spent Ingame: %s\n\n{FFDC00}Goodies Stats:\n{E1FF00}> Cookies: %d\n> Icecreams: %d\n> Cakes: %d", Test, pInfo[playerid][Donator], ConvertTime(seconds,m,h,d), pPinfo[playerid][Cookies], pPinfo[playerid][Icecream], pPinfo[playerid][Cakes]);
You should use strcat,format function will replace the line,while strcat will join the lines.
Reply
#4

Quote:
Originally Posted by K0P
View Post
You should use strcat,format function will replace the line,while strcat will join the lines.
And how exactly will strcat replace the specifiers with values?
Yes, format does replace the line, which is why I added %s to the beginning, and the string Test as its value.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)