[Help] -
Salsa - 17.10.2011
hey Guys I Have a Problem with Property system
when player go to property icon it show
Property Name:
Price:
Sellvalue:
Earning:
Owner:
I need One more text /buyproperty
Please add in to property info
Uploaded with
ImageShack.us
Add one more in this /buyproperty text
Код:
if (strcmp("/propertyinfo", cmd, true) == 0)
{
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, 0xFF0000AA, "USE: /propertyinfo [PropertyID]");
return 1;
}
new prop = strval(tmp);
if(!DoesPropertyExists(prop)) return SendClientMessage(playerid, 0xFF0000AA, "This property does not exists!");
new Float:X, Float:Y, Float:Z;
new Price, Earning, SellValue, Name[64], Owner[MAX_PLAYER_NAME], Status[16];
GetPropertyInfo(prop, X, Y, Z, Price, SellValue, Earning);
format(Name, 64, "%s", GetPropertyName(prop));
format(Owner, MAX_PLAYER_NAME, "%s", GetPropertyOwner(prop));
format(Status, 16, "%s", GetPropertyStatus(prop));
new str[128];
format(str, 128, "Name: %s ** X: %.1f Y:%.1f ** Z:%.1f", Name, X, Y, Z);
SendClientMessage(playerid, 0xFFFFFFAA, str);
format(str, 128, "Price: $%d ** SellValue: $%d ** Earnings: $%d", Price, SellValue, Earning);
SendClientMessage(playerid, 0xFFFFFFAA, str);
format(str, 128, "Owner: %s", Owner);
SendClientMessage(playerid, 0xFFFFFFAA, str);
format(str, 128, "Status: %s", Status);
SendClientMessage(playerid, 0xFFFFFFAA, str);
return 1;
}
Re: [Help] -
SmiT - 17.10.2011
Missread.
Re: [Help] -
Salsa - 17.10.2011
Lawl: not this type see pic on
property Name:
Price
sellvalue
Earninig
Owner
/buyproperty <----- I Need This on When player go to property pickup Its show /buyproperty
After Owner text I Need /buyproperty text !!!!
Re: [Help] -
Kingunit - 17.10.2011
Go to the request thread. You are requesting something.
Re: [Help] -
Salsa - 17.10.2011
Kingunit i post there but no one help me there
Re: [Help] -
DaRkAnGeL[NBK] - 17.10.2011
pawn Код:
if (strcmp("/propertyinfo", cmd, true) == 0)
{
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, 0xFF0000AA, "USE: /propertyinfo [PropertyID]");
return 1;
}
new prop = strval(tmp);
if(!DoesPropertyExists(prop)) return SendClientMessage(playerid, 0xFF0000AA, "This property does not exists!");
new Float:X, Float:Y, Float:Z;
new Price, Earning, SellValue, Name[64], Owner[MAX_PLAYER_NAME], Status[16];
GetPropertyInfo(prop, X, Y, Z, Price, SellValue, Earning);
format(Name, 64, "%s", GetPropertyName(prop));
format(Owner, MAX_PLAYER_NAME, "%s", GetPropertyOwner(prop));
format(Status, 16, "%s", GetPropertyStatus(prop));
new str[128];
format(str, 128, "Name: %s ** X: %.1f Y:%.1f ** Z:%.1f", Name, X, Y, Z);
SendClientMessage(playerid, 0xFFFFFFAA, str);
format(str, 128, "Price: $%d ** SellValue: $%d ** Earnings: $%d", Price, SellValue, Earning);
SendClientMessage(playerid, 0xFFFFFFAA, str);
format(str, 128, "Owner: %s", Owner);
SendClientMessage(playerid, 0xFFFFFFAA, str);
format(str, 128, "Status: %s", Status);
SendClientMessage(playerid, 0xFFFFFFAA, str);
GameTextForPlayer(playerid, "/buyproperty",3000,4");
return 1;
}
would that work ?
Re: [Help] -
Salsa - 17.10.2011
its clint message when a player type /propertyinfo it will show
but i need it now pickup text
property Name:
Price
sellvalue
Earninig
Owner
/buyproperty <----- I Need This on When player go to property pickup Its show /buyproperty
After Owner text I Need /buyproperty text !!!!
Re: [Help] -
DaRkAnGeL[NBK] - 17.10.2011
which includes do you use as i can't test it without errors
Re: [Help] -
Salsa - 18.10.2011
no one
Re: [Help] -
SampEver1 - 18.10.2011
Are you using sandra property system ?