SA-MP Forums Archive
Best way to save inputtext to a string? (Variable) - 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: Best way to save inputtext to a string? (Variable) (/showthread.php?tid=594138)



Delete - rangerxxll - 14.11.2015

Solved.


Re: Best way to save inputtext to a string? (Variable) - Kevln - 14.11.2015

pawn Код:
#define strcpy(%0,%1,%2) strcat((%0[0] = '\0', %0), %1, %2)

new string[129];
strcpy(string, inputtext, 129);