format( string, sizeof string, "Name: %s \
\nIP adress: %d \
\nTotal kills: %i \
\nTotal deaths: %i \
\nTotal K/D ratio: %0.2f \
\nAdmin level: %i (%s) \
\nVip level: %i (%s) \
\nUse your own weapons: %s \
\nHighest killstreak: %i \
\nTotal commands used: %i ", GetName(playerid), \
GetPIP(playerid), \
PlayerInfo[playerid][pKills], \
PlayerInfo[playerid][pDeaths], \
Float:floatdiv( PlayerInfo[playerid][pKills], PlayerInfo[playerid][pDeaths] ), \
PlayerInfo[playerid][pAdmin], \
AdminInfo, \ // 1304
PlayerInfo[playerid][pVip], \ // 1305
VipInfo, \
UseOwnInfo, \
PlayerInfo[playerid][pHighestKS], \
PlayerInfo[playerid][pCMD]); // 1310
(1304) : error 075: input line too long (after substitutions) (1305) : error 017: undefined symbol "pl" (1310) : warning 217: loose indentation (1310) : error 017: undefined symbol "ayerid" (1310) : error 029: invalid expression, assumed zero (1310) : error 029: invalid expression, assumed zero (1310) : fatal error 107: too many error messages on one line
format( string, sizeof string, "\
Name: %s \
\nIP adress: %d \
\nTotal kills: %i \
\nTotal deaths: %i \
\nTotal K/D ratio: %0.2f \
\nAdmin level: %i (%s) \
\nVip level: %i (%s) \
\nUse your own weapons: %s \
\nHighest killstreak: %i \
\nTotal commands used: %i ",
GetName(playerid),
GetPIP(playerid),
PlayerInfo[playerid][pKills],
PlayerInfo[playerid][pDeaths],
Float:floatdiv( PlayerInfo[playerid][pKills],
PlayerInfo[playerid][pDeaths] ),
PlayerInfo[playerid][pAdmin],
AdminInfo,
PlayerInfo[playerid][pVip],
VipInfo,
UseOwnInfo,
PlayerInfo[playerid][pHighestKS],
PlayerInfo[playerid][pCMD]);
Doing "\" on the end of a line merges that line with the next line, which is why you need to do it with strings. However, as the two lines are now merged they are together subject to the line length limit of 511 (512 with EOL) (this is a compiler restriction and nothing to do with string lengths). The solution you got works as parameters do not all have to be on the same line.
|