Problem with command
#2

Код:
CMD:buyhouse(playerid, params[])
{
for(new i = 0; i < sizeof(hInfo); i++)
{
if(GetPlayerMoney(playerid) < hInfo[i][Price]) return SendClientMessage(playerid, COLOR_RED, "You don't have that much money!");
hInfo[i][Owned] = 1;
hInfo[i][Owner] = PlayerName(playerid);
SetPlayerInterior(playerid,hInfo[i][Interior]);
SetPlayerPos(playerid, hInfo[i][exPos][0], hInfo[i][exPos][1], hInfo[i][exPos][2]);
SetPlayerVirtualWorld(playerid, hInfo[i][VirtualWorld]);
GivePlayerMoney(playerid, -hInfo[i][Price]);
OnPropTextdrawUpdate(i,1);
OnHousePickupUpdate(i);
}
return 1;
}
Reply


Messages In This Thread
Problem with command - by Yako - 20.10.2012, 22:03
Re: Problem with command - by CaRa - 20.10.2012, 22:10
Re: Problem with command - by Yako - 20.10.2012, 22:22
Re: Problem with command - by Memoryz - 20.10.2012, 23:33

Forum Jump:


Users browsing this thread: 2 Guest(s)