SA-MP Forums Archive
Problem with strcat - 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: Problem with strcat (/showthread.php?tid=547046)



Problem with strcat - Dreishalm - 20.11.2014

I have that code:
Код:
new PV_Bikes[][] =
{
	{509,"Rower",5000},
	{481,"BMX",5000},
	{510,"Rower Gуrski",5000}
};
Код:
	                case 0:
	                {
					    for(new A,B = sizeof(PV_Bikes); A < B; A++)
					    {
							strcat(String,PV_Bikes[A][1]);
							strcat(String," - ");
							strcat(String,PV_Bikes[A][2]);
							strcat(String,"$\n");
					    }
					    ShowPlayerDialog(playerid,DIALOG_BIKES,DIALOG_STYLE_LIST,"{FFFFFF}Diler Pojazdуw {00FF00}>> {FFFFFF}Rowery",String,"Akceptuj","Anuluj");
	                }
If i use format i see 111$ instead of 5000$, with that code in-game i see:

Anyone have idea how to fix it?