PDA

View Full Version : This Client message won't send. (using StrCat)


Dokins
27/02/2013, 01:42 PM
new name = GetVehicleModel(vehicleid) - 400;
format(second, sizeof(second), "Congratulations! You have purchased a {33AA33}%s!", VehicleNames[name]);
strcat(string, second);
format(second, sizeof(second), "Price: {33AA33}$%d", VehPrice[vehicleid]);
strcat(string, second);
format(second, sizeof(second), "License Plate: {33AA33}%s",VehPlate[vehicleid]);
strcat(string, second);
format(second, sizeof(second), "You are now the {33AA33}Registered Owner{8000FF} of this vehicle.");
strcat(string, second);
SendClientMessage(playerid, COLOUR_ORANGE, string);


Could someone tell my why it won't send the client message?

DiGiTaL_AnGeL
27/02/2013, 01:51 PM
It's because you don't have enough arguments:
strcat(string, second, sizeof(string));

Dokins
27/02/2013, 02:04 PM
The client message won't send at exactly the same time, or am I wrong?

Dokins
27/02/2013, 02:37 PM
Okay.