09.12.2011, 14:42
i have problem with this text draw Its Not showing Brackets Like THis [ ] It showing Stars how i fixed it
See TextDraw
See TextDraw
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; }
Help me here- https://sampforum.blast.hk/showthread.php?tid=302541
|
on where can i select other fronts in include ? Or Where
Код:
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; } |
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));
for(i = 0, j = strlen(Owner); i < j; i++)
{
if(Owner[i] == '[') Owner[i] = '(';
else if(Owner[i] == ']') Owner[i] = ')';
}
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;
}