[HELP] for string in 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: [HELP] for string in array (
/showthread.php?tid=159682)
[HELP] for string in array -
boynumber5 - 14.07.2010
Hello , i've a problem about string in array, how to put text or message in array and how to use it.
this is my array , i try to do it long time but it is error.
new animlist[5] =
{"thrw_barl_thrw","Stepsit_in","Stepsit_loop","Ste psit_out"};
(this is animlist)
sorry for my bad english
Re: [HELP] for string in array -
bigcomfycouch - 14.07.2010
Код:
new animlist[][] =
{"thrw_barl_thrw","Stepsit_in","Stepsit_loop","Ste psit_out"};
Re: [HELP] for string in array -
boynumber5 - 14.07.2010
thx but how to use it ?
exam SendClientMessage(playerid,COLOR_WHITE,"%s",animli st[][]):
please explantion this for me
Re: [HELP] for string in array -
Pghpunkid - 14.07.2010
pawn Код:
new str[32];
format(str,sizeof(str),"%s",animlist[0]);
SendClientMessage(playerid, COLOR_WHITE, str);
This would produce "thrw_barl_thrw".