Problem with strcat
#1

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)