A little script help? - 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)
+--- Thread: A little script help? (
/showthread.php?tid=369778)
A little script help? -
xSiiLenTx - 18.08.2012
"error 017: undefined symbol "fstring""
Reasoning? Help?
Re: A little script help? -
FireCat - 18.08.2012
fstring?
What do you mean by that?
Re: A little script help? -
BigAl - 18.08.2012
Show us the code.
Re: A little script help? -
xSiiLenTx - 18.08.2012
Код:
format(fstring,300,"%s\n%s\n%s\n%s\n%s",string[0],string[1],string[2],string[3],string[4]);
The full dialog:
Код:
new dstring[300];
format(fstring,300,"%s\n%s\n%s\n%s\n%s",string[0],string[1],string[2],string[3],string[4]);
for(new i=0;i<MAX_PLAYERS;++i)
{
if(IsPlayerConnected(i))
{
ShowPlayerDialog(i,DIALOG_TOP,0,"TOp 5",dstring,"OK","");
}
EDIT: I changed 'fstring' to 'dstring', and it compiled, i'm guessing I'm good?
Re: A little script help? -
BigAl - 18.08.2012
you have new dstring... not new fstring.. change it
Re: A little script help? -
BigAl - 18.08.2012
pawn Код:
new fstring[300];
format(fstring,300,"%s\n%s\n%s\n%s\n%s",string[0],string[1],string[2],string[3],string[4]);
for(new i=0;i<MAX_PLAYERS;++i)
{
if(IsPlayerConnected(i))
{
ShowPlayerDialog(i,DIALOG_TOP,0,"TOp 5",fstring,"OK","");
}