House help ''/
#1

this code is just saying unknown command when im not at an house :S please help me ive uses PlayerToPoint at gethouseid.


Код:
dcmd_buy(playerid,params[])
{
    #pragma unused params
    new house[256], house2;
    house2 = GetHouseID(playerid);
    format(house, sizeof(house), "Roleplay/Houses/house_%d", house2);
    if(house2r == -1) return SendClientMessage(playerid, gray, "You are not in a house icon!");
    if(GetPlayerMoney(playerid)<hInfo[house2][Cost]) return SendClientMessage(playerid, gray, "Not enough money!");
    GivePlayerMoney(playerid,-hInfo[house2][Cost]);
    SendClientMessage(playerid,gray,"works");
    DestroyPickup(HousePickup[house2]);
    HousePickup[house2] = CreatePickup(1272, 23, hInfo[house2][IconX], hInfo[house2][IconY], hInfo[house2][IconZ]);
    return 1;
}
Reply
#2

you could have used PlayerToPoint again , but now in comand?
Reply
#3

Quote:
Originally Posted by Rk_
you could have used PlayerToPoint again , but now in comand?
emm?? i just told that so ppl knowed donno if thats the problem or what do you mean ?
Reply
#4

Help?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)