Input line too long
#1

So I wanna make a dialog that shows your attached objects, but the line is too long.
How could I do it differently?

Код:
format(string, sizeof(string), "Slot 1 - Object: %d\nSlot 2 - Object: %d\nSlot 3 - Object: %d\nSlot 4 - Object: %d\nSlot 5 - Object: %d\nSlot 6 - Object: %d\nSlot 7 - Object: %d\nSlot 8 - Object: %d\nSlot 9 - Object: %d\nSlot 10 - Object: %d", PlayerInfo[playerid][kOID][0], PlayerInfo[playerid][kOID][1], PlayerInfo[playerid][kOID][2], PlayerInfo[playerid][kOID][3], PlayerInfo[playerid][kOID][4], PlayerInfo[playerid][kOID][5], PlayerInfo[playerid][kOID][6], PlayerInfo[playerid][kOID][7], PlayerInfo[playerid][kOID][8], PlayerInfo[playerid][kOID][9]);
Reply
#2

Did it show an error or it don't show the full line ?
Reply
#3

I'm getting this.

Код:
error 075: input line too long (after substitutions)
Reply
#4

format(string, sizeof(string), "Slot 1 - Object: %d\n \
Slot 2 - Object: %d\nSlot 3 - Object: %d\nSlot 4 - Object: %d\nSlot 5 - Object: %d\nSlot 6 - Object: %d\
\nSlot 7 - Object: %d\nSlot 8 - Object: %d\nSlot 9 - Object: %d\nSlot 10 - Object: %d", PlayerInfo[playerid][kOID][0], PlayerInfo[playerid][kOID][1], PlayerInfo[playerid][kOID][2], PlayerInfo[playerid][kOID][3], PlayerInfo[playerid][kOID][4], PlayerInfo[playerid][kOID][5], PlayerInfo[playerid][kOID][6], PlayerInfo[playerid][kOID][7], PlayerInfo[playerid][kOID][8], PlayerInfo[playerid][kOID][9]);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)