Loading houses (should be easy to fix)
#6

Okey, so I made a command: /edit2, where I have to put two parameters now, for house_uid and new house text.
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;
}
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).
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)