string array ? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: string array ? (
/showthread.php?tid=66367)
string array ? -
fredl - 21.02.2009
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
Re: string array ? -
yom - 21.02.2009
pawn Code:
new text1[] = "some text.";
print(text1);
new text2[128];
format(text2, sizeof text2, "%s formatted %s.", "some", "text");
print(text2);
Re: string array ? -
Joe Staff - 21.02.2009
I think he means like an index library
new MultipleStrings[AmountofStrings][SizeofString]
Re: string array ? -
Daren_Jacobson - 21.02.2009
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);
Re: string array ? -
fredl - 22.02.2009
yeah the last one works