12.06.2014, 09:52
@sup all, I gotta a problem since I started sicripting with strings in dialogs here is my code
I don't know how to create many strings in dialog and if I tried to it crashes. :/
I would be thankfully if you helped me guys!
pawn Код:
CMD:housestats(playerid,params[]){
#pragma unused params
new str[256],housenumber;
housenumber = GetHouseID(playerid);
format(str, sizeof(str), "Owner: %s\n", hInfo[housenumber][Name]);
format(str, sizeof(str), "Cost: $%d\n", hInfo[housenumber][Cost]);
format(str, sizeof(str), "Renter: %s\n", hInfo[housenumber][Renter]);
format(str, sizeof(str), "Rentcost: $%d / hour\n", hInfo[housenumber][Rentcost]);
strcat(str, "", sizeof(str));
ShowPlayerDialog(playerid, DIALOG_STYLE_MSGBOX, "{FF0000}SFTDM - House Stats", str, "OK","");
return 1;}
I would be thankfully if you helped me guys!