Input line too long ? - 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: Input line too long ? (
/showthread.php?tid=323497)
Input line too long ? -
DonWade - 05.03.2012
Код:
format(string, sizeof(string), "{FFFFFF}%s [ID: %d]\nTime On Server: [ {9BFF00}%d: %d: %d{FFFFFF} ]\n\n\nKills: [ %d ]\nDeaths: [ %d ]\nScore: [ %d ]\nMoney: [ $%d ]\nWanted Level: [ %d ]\nRegular Player: [ %d ]\nMoney Bags: [ %d ]\n\n/Morestats",PlayerName(ID),ID, PlayerInfo[ID][pHour],PlayerInfo[ID][pMin],PlayerInfo[ID][pSec],PlayerInfo[ID][pKills], PlayerInfo[ID][pDeaths],GetPlayerScore(ID),GetPlayerMoney(ID),GetPlayerWantedLevel(ID),PlayerInfo[ID][pRegular],PlayerInfo[ID][pMoneyBags]);
This is as much as i can show in dialog , if i add one more thing it will give me error:
075: Input line too long
My question i how to deal with this , i wanna add few more things in stats
Respuesta: Input line too long ? -
kirk - 05.03.2012
Split the line in two formats for example
pawn Код:
new string[128]
format(string, sizeof(string),"......%s do this and that, oh fuck my line is too long", playername);
format(string, sizeof(string, "%s it doesnt matter as i continue the line here ; )..", string);
Aswell this " " is 1 character
This are " " " " two characters and this " " ten characters, get rid of them or split everything in two lines.
EDIT: oh well it doesnt allow me reply with blank spaces, just understand they count as characters..
Re: Input line too long ? -
DonWade - 05.03.2012
ok , ty for answer. +rep
Re: Input line too long ? -
MSI - 05.03.2012
yes, you must format a string