fix buyhouse cmd
#1

Код:
CMD:buyhouse(playerid, params[]);
{
if(GetPlayerMoney(playerid) >= 1499999) return SendClientMessage(playerid, COLOR_RED, "ERROR: You don't have enough money");
GivePlayerMoney(playerid, -1500000);
GameTextForPlayer(playerid, "~r~-$1,500,000", 2500, 1);
Delete3DTextLabel(House1Label);
new name[MAX_PLAYER_NAME], string[24+MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), ""COL_GREEN"%s's house\n"COL_WHITE"1,500,000$", name);
House1Label = Create3DTextLabel(string, 0x008080FF,2496.049804,-1695.238159,1014.742187, 50.0, 0, 1);
return 1;
}
Can somebody fix it? and tell me what I'm doing wrong here.
It does not compile and send warnings 219.
thx ;e
Reply
#2

idk which line and error you mean dude but you can Update3DTextLabel instead of destroying and creating new one.
also wtf is that first line if player has MORE OR EQUAL money than 150k return error. df should it be < instead of >= ?
Reply
#3

The error lines: https://imgur.com/a/RPqm2

It does should be < instead of >, Thank you.
Reply
#4

It's some parenthesis missing
Reply
#5

CMD:buyhouse(playerid, params[]);
shall be
CMD:buyhouse(playerid, params[])
Reply
#6

Quote:
Originally Posted by Meller
Посмотреть сообщение
CMD:buyhouse(playerid, params[]);
shall be
CMD:buyhouse(playerid, params[])
Oh god, thanks a lot bro!
I wasn't noticing it and never had that error before..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)