[HELP] /buycomponent bug.
#1

DELETED
Reply
#2

Код:
if (strcmp("/buyrod", cmdtext, true, 10) == 0)
{
	if(IsPlayerInRangeOfPoint(playerid, 2, 387.8272,-1870.7032,7.8359)
	{
	    if(GetPlayerMoneyEx(playerid) >= 400)
		{
			if(FRod[playerid] == 0)
			{
			    GivePlayerMoney(playerid,-400);
				FRod[playerid] = 1;
				SendClientMessage(playerid,0xFFFFFFFF, "Fishing Rod {88AA88}Bought!");
				SendClientMessage(playerid,0xFFFFFFFF, "/TakeRod to Take it out!");
			}
		}
		else
		{
			SendClientMessage(playerid,COLOR_GREY,"You can't afford this.");
			return 1;
		}
	}
}
Try this.
Reply
#3

C:\DOCUME~1\ea\Desktop\ea\fishing.pwn(136) : error 001: expected token: ")", but found "{"
C:\DOCUME~1\ea\Desktop\ea\fishing.pwn(137) : error 017: undefined symbol "GetPlayerMoneyEx"
C:\DOCUME~1\ea\Desktop\ea\fishing.pwn(149) : error 017: undefined symbol "COLOR_GREY"
Reply
#4

help me fix /buycomponent please?
Reply
#5

up ......
Reply
#6

Код:
if (strcmp("/buyrod", cmdtext, true, 10) == 0)
{
	if(IsPlayerInRangeOfPoint(playerid, 2, 387.8272,-1870.7032,7.8359)
	{
	    if(GetPlayerMoney(playerid) > 400)
		{
			if(FRod[playerid] == 0)
			{
			    GivePlayerMoney(playerid,-400);
			    FRod[playerid] = 1;
			    SendClientMessage(playerid,0xFFFFFFFF, "Fishing Rod {88AA88}Bought!");
			    SendClientMessage(playerid,0xFFFFFFFF, "/TakeRod to Take it out!");
			}
		}
		else
		{
			SendClientMessage(playerid,COLOR_GREY,"You can't afford this.");
			return 1;
		}
	}
}
Fixed the code, try this.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)