cmd problem [+REP]
#1

hi guys i need a small help the cmd work but it show me SERVER: Unknown Command

pawn Код:
CMD:sellhouse(playerid, params[])
{
    if(pInfo[playerid][HouseKey] == 0) return SendClientMessage(playerid, COLOR_WHITE, "You don't have a house to sell.");
    {
        new string[256], Query[1000];
        pInfo[playerid][Money] += hInfo[pInfo[playerid][HouseKey]][HousePrice] / 2 + 5000;
        format(hInfo[pInfo[playerid][HouseKey]][HouseOwner], 24, "Nobody");
        format(string, sizeof(string), "You have sold '%s' for $%d.", hInfo[pInfo[playerid][HouseKey]][HouseName], hInfo[pInfo[playerid][HouseKey]][HousePrice] / 2 + 5000);
        SendClientMessage(playerid, COLOR_YELLOW, string);
        mysql_format(mysql, Query, sizeof(Query), "UPDATE `Houses` SET `HouseOwner` = 'Nobody' WHERE `hID` = %i", pInfo[playerid][HouseKey]);
        mysql_query(mysql, Query);
        mysql_free_result();
        pInfo[playerid][HouseKey] = 0;
        SavePlayer(playerid);
    }
    return 1;
}
sorry for my bad english
thnx
Reply


Messages In This Thread
cmd problem [+REP] - by simo0000 - 21.02.2015, 17:14
Re : cmd problem [+REP] - by simo0000 - 21.02.2015, 17:36
Re: cmd problem [+REP] - by Boot - 21.02.2015, 18:21
Re : Re: cmd problem [+REP] - by simo0000 - 21.02.2015, 18:32
Re: Re : Re: cmd problem [+REP] - by Boot - 21.02.2015, 18:36
Re : Re: Re : Re: cmd problem [+REP] - by simo0000 - 21.02.2015, 18:39
Re: Re : Re: Re : Re: cmd problem [+REP] - by Boot - 21.02.2015, 18:42
Re: Re : Re: cmd problem [+REP] - by CalvinC - 21.02.2015, 18:46
Re : Re: Re : Re: cmd problem [+REP] - by simo0000 - 21.02.2015, 18:51
Re: cmd problem [+REP] - by AndySedeyn - 21.02.2015, 19:06

Forum Jump:


Users browsing this thread: 1 Guest(s)