error again -.-
#5

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 -.-
Reply


Messages In This Thread
error again -.- - by MestreKiller - 12.12.2010, 17:30
Re: error again -.- - by Joe_ - 12.12.2010, 17:39
Re: error again -.- - by MestreKiller - 12.12.2010, 17:48
Re: error again -.- - by Joe_ - 12.12.2010, 17:55
Re: error again -.- - by MestreKiller - 12.12.2010, 17:57
Re: error again -.- - by Joe_ - 12.12.2010, 17:58
Re: error again -.- - by MestreKiller - 12.12.2010, 18:06
Re: error again -.- - by Joe_ - 12.12.2010, 18:08
Re: error again -.- - by MestreKiller - 12.12.2010, 18:26

Forum Jump:


Users browsing this thread: 1 Guest(s)