string array ?
#1

is it possible to create a string array? or to store any text in an array? would be much easier
thx
/edit: the strpack function does it now sry
Reply
#2

pawn Code:
new text1[] = "some text.";
print(text1);

new text2[128];
format(text2, sizeof text2, "%s formatted %s.", "some", "text");
print(text2);

Reply
#3

I think he means like an index library
new MultipleStrings[AmountofStrings][SizeofString]
Reply
#4

an example i use in my script
pawn Code:
//top
new pName[MAX_PLAYERS][MAX_PLAYER_NAME];
//OnPlayerConnect
GetPlayerName(playerid, pName[playerid], MAX_PLAYER_NAME);
Reply
#5

yeah the last one works
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)