Quote:
Originally Posted by Joe_
You're assigning a string to a varible, which can only hold one value, and only integers.
You need to assign it to a array, which can hold multiple pieces of data.
And you cannot assign a string directly to a array / string, you must format it, or it'll bring up another error.
pawn Код:
// Array, with 24 cells, one cell can hold 1 piece of data, when assigning it traditionally, MAX_PLAYER_NAME is the same as 24 cells. new gArray[ MAX_PLAYER_NAME ];
// Format the array, to hold what dini_Get (..) returns
format(gArray, sizeof( gArray ), "%s", dini_Get( file, "Ownername" ));
// gArray will now be the same as what dini_Get returned // Now use gArray, which is the owners name.
printf( "The owners name is: %s", gArray );
|
can you please transform that to my command please because i tryed it my slef but COME with the same error -.-