SA-MP Forums Archive
Quick question - 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: Quick question (/showthread.php?tid=65377)



Quick question - walrus - 12.02.2009

Hello, i am just starting and so on.... And i have question.. How to sign two or more strings... like in php there is
$var = "Some" . "Another" . "Final..."; But i want to do that in pawno..

because i want to optimize gf script and change, for example:

Код:
	format(var, 32, "Level=%d\n",PlayerInfo[playerid][pLevel]);fwrite(hFile, var);
	format(var, 32, "AdminLevel=%d\n",PlayerInfo[playerid][pAdmin]);fwrite(hFile, var);
	format(var, 32, "DonateRank=%d\n",PlayerInfo[playerid][pDonateRank]);fwrite(hFile, var);
To something like this:

Код:
format(var, 128, 

"Level=%d".
"AdminLevel=%d".
"DonateRank=%d",

PlayerInfo[playerid][pLevel],
PlayerInfo[playerid][pAdmin],
PlayerInfo[playerid][pDonateRank]
);

fwrite(hFile, var);
Thank you for your help


Re: Quick question - MenaceX^ - 12.02.2009

GF? :X


Re: Quick question - Joe Staff - 12.02.2009

Код:
	format(var, 96, "Level=%d\nAdminLevel=%d\nDonateRank=%d\n",PlayerInfo[playerid][pLevel],PlayerInfo[playerid][pAdmin],PlayerInfo[playerid][pDonateRank]);fwrite(hFile, var);
=\


Re: Quick question - walrus - 12.02.2009

Well yeah. But this would be very very long line i think I mean.... With all of these info's/skill's that are there...


Re: Quick question - boylett - 12.02.2009

https://sampwiki.blast.hk/wiki/Scripting...ons_Old#strcat