Save string - 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: Save string (
/showthread.php?tid=262689)
Save string - Unknown123 - 19.06.2011
pawn Код:
//top
new Something[128];
//////////////////////////////////////////////////
//OnDialogResponse
Something = inputtext;
//some where in a command
format(string, sizeof(string), "the 'new Something': %s", Something);
Код:
Error Line:
Something = inputtext;
Error:
array sizes do not match, or destination array is too small
im trying to save a string into "Something"
Re: Save string -
Laronic - 19.06.2011
try
pawn Код:
Something = inputtext;
to
format(Something, 128, inputtext);
Re: Save string - Unknown123 - 19.06.2011
Thanks