Jump to content
  • 0

Eroare in consola House



[debug] AMX backtrace:
[debug] #0 00222df0 in public @_yCgivehouse (playerid=0, params[]=@028f96dc "1 1", __help=0) at mrx.pwn:16893
[debug] #1 00222b2c in public @yC_givehouse (0, 42964700, 0, 0)  at mrx.pwn:16887
[debug] #2 native CallRemoteFunction () in samp-server.exe
[debug] #3 0003af78 in Command_Process (playerid=0, cmdtext[]=@028f96a0 "/givehouse", help=0) at C:\Users\Mrx Rarez\Desktop\Mrx-Main\Execute Compiler\include\YSI\y_commands.inc:2499
[debug] #4 0003a658 in ?? (0, 42964640) at C:\Users\Mrx Rarez\Desktop\Mrx-Main\Execute Compiler\include\YSI\y_commands.inc:2297
[debug] #5 0002a1b0 in public OnPlayerCommandText (playerid=0, cmdtext[]=@028f96a0 "/givehouse") at C:\Users\Mrx Rarez\Desktop\Mrx-Main\Execute Compiler\include\YSI\y_hooks/impl.inc:946


YCMD:givehouse(playerid, params[], help) {
    new house, id, query[256], string[180];
    if(PlayerInfo[playerid][pAdmin] < 7) return true;
    if(sscanf(params, "ud", id, house)) return SendClientMessage(playerid, COLOR_GREY, "Syntax: {FFFFFF}/givehouse <playerid/name> <house id>");
    mysql_format(SQL, query, sizeof(query), "UPDATE `users` SET `House`='999' WHERE `House`='%d'", id);
    mysql_tquery(SQL, query, "", "");
    PlayerInfo[id][pHouse] = house;
    format(query, sizeof(query), "UPDATE `users` SET `House`='%d' WHERE `ID`='%d'", house, PlayerInfo[id][pSQLID]);
    mysql_tquery(SQL, query, "", "");
    format(string, sizeof(string), "({FF0000}Admin Info{FFFFFF}) %s i-a dat lui %s(%d) casa %d.", GetName(playerid), GetName(id), id, house);
    SendAdminMessage(COLOR_WHITE, string, 1);
    format(string, sizeof(string), "Administratorul %s ti-a dat casa %d.", GetName(playerid), house);
    SendClientMessage(id, COLOR_YELLOW, string);
    HouseInfo[house][hOwned] = 1;
    format(HouseInfo[house][hOwner], 256, GetName(id));
    HouseInfo[house][hValue] = 0;
    UpdateLabel(1, house);
    mysql_format(SQL, query, sizeof(query), "UPDATE `houses` SET `Owned`='1', `Owner`='%s', `Value`='0' WHERE `ID`='%d'", GetName(id), house);
    mysql_tquery(SQL, query, "", "");
    return true;
} nuj ce dracu are

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.