11.04.2013, 19:17
Okey, so I made a command: /edit2, where I have to put two parameters now, for house_uid and new house text.
And I went to game and checked this command, and the result was same. Anyway, why did I do that? it's simple, because I wanted to check editing house text without being in house pickup. So, for the logic, it's seems like there's a problem with UpdateDynamic3DTextLabe, right? But I am not sure.
Sorry for double post with bump, but maybe some people will be interested (if they're trying to help me).
pawn Код:
YCMD:edit2(playerid, params[], help)
{
new text[32],
string[128];
new house_uid;
if(sscanf(params, "ds[32]", house_uid, text))return SendClientMessage(playerid, -1, "Wpisz: /edit (uid_domu) (tekst)");
{
strset(HouseData[house_uid][E_HOUSE_DESCRIPTION], text);
SendClientMessage(playerid, -1, "Aktualny opis tego domu to:");
format(string, sizeof(string), "%s", HouseData[house_uid][E_HOUSE_DESCRIPTION]);
SendClientMessage(playerid, -1, string);
UpdateDynamic3DTextLabelText(HouseData[house_uid][E_HOUSE_LABEL], 0xFFC973FF, text);
}
return true;
}
Sorry for double post with bump, but maybe some people will be interested (if they're trying to help me).