Jump to content
  • 0

pomoc House System - Úprava


Troy

Dotaz

Mám ještě menší problém.
Když potřebuji se dostat do domu, musím si stoupnout na pickup a dát /enter
Stoupnu na pickup, a pořád mi to do chatu spamuje toto:
Owned by : MAJITELDOMU
Cost: CENA
Chtěl bych to předělat na dialog..
Jenže si nevím rady s tím, jak předělat obsah stocku do dialogu:

stock GetHouseStats(playerid, hid)
{
new str2[256];
format(str2, sizeof(str2), "Owned by: %s", hInfo[hid][Name]);
SendClientMessage(playerid, c_y, str2);
if(strcmp(hInfo[hid][Renter],"ForRent",true))
{
format(str2, sizeof(str2), "Rented by: %s", hInfo[hid][Renter]);
SendClientMessage(playerid, c_y, str2);
}
format(str2,sizeof(str2),"Cost: %i",hInfo[hid][Cost]);
SendClientMessage(playerid, c_y, str2);
}

Předem díky za pomoc :) :)

Link to comment
Share on other sites

2 odpovědí na tuto otázku

Recommended Posts

  • 0


stock GetHouseStats(playerid,hid)
{
new str[512];
format(str,sizeof(str),"Owned by: %s",hInfo[hid][Name]);
if(strcmp(hInfo[hid][Renter],"ForRent",true)) format(str,sizeof(str),"%s\nRented by: %s",str,hInfo[hid][Renter]);
format(str,sizeof(str),"%s\nCost: %i",str,hInfo[hid][Cost]);
ShowPlayerDialog(playerid,0,DIALOG_STYLE_MSGBOX,"Nadpis",str,"OK","Zavřít");
}

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...