SA-MP Forums Archive
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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: input line too long (/showthread.php?tid=193296)



input line too long - armyoftwo - 25.11.2010

Код:
    format(string, sizeof(string), "UPDATE `vehicles` SET `vPos` = '%f', `vPos2` = '%f', `vPos3` = '%f', `vPos4` = '%f',  `Price` = '%i', `Rent` = '%i', `Buyable` = '%i', `Faction` = '%i', \
    `Gang` = '%i', `job` = '%i', `Fuel` = '%i', `Model` = '%i', `Owner` = '%i', `Lock` = '%i', `Mod1` = '%i', \
    `Mod2` = '%i',`Mod3` = '%i',`Mod4` = '%i',`Mod5` = '%i',`Mod6` = '%i',`Mod7` = '%i',`Mod8` = '%i',`Mod9` = '%i',`Mod10` = '%i', \
	`Mod11` = '%i' ,`Mod12` = '%i' ,`Mod13` = '%i' ,`Mod14` = '%i' ,`Mod15` = '%i' ,`Mod16` = '%i',`Mod17` = '%i' WHERE `SQLID` = '%d'",
Input line too long, the "\" doesnt work on this i think..


Re: input line too long - TheXIII - 25.11.2010

You coud put them all onto one line, or do something like
pawn Код:
format(string, sizeof(string), "Some Stuff");
format(string, sizeof(string, "%s Some Other Stuff", string);