Save string
#1

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"
Reply
#2

try
pawn Код:
Something = inputtext;

to

format(Something, 128, inputtext);
Reply
#3

Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)