create null string.
#1

Hi,

Код:
strmid(WROTE[ playerid ],"",0,50,50);
If i do that, WROTE[ playerid ] variable will be null?
Reply
#2

use simply
pawn Код:
WROTE[ playerid ][ 0 ] = '\0';
Reply
#3

It's doesn't work. I get error, this variable must by index ....
Reply
#4

You're supposed to use it as 2D array (for the lenght).

Let's say:
pawn Код:
new
    WROTE[ MAX_PLAYERS ][ 100 ]
;
// An array for each player that can store a text.
Where you want to make it NULL/empty:
pawn Код:
WROTE[ playerid ][ 0 ] = '\0';
// OR
WROTE[ playerid ][ 0 ] = EOS;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)