[HELP] /buycomponent bug. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP] /buycomponent bug. (
/showthread.php?tid=502978)
[HELP] DELETED -
Elanggg - 27.03.2014
DELETED
Re: [HELP] /buycomponent bug. -
SiraBots - 27.03.2014
Код:
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.
Re: [HELP] /buycomponent bug. -
Elanggg - 27.03.2014
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"
Re: [HELP] /buycomponent bug. -
Elanggg - 27.03.2014
help me fix /buycomponent please?
Re: [HELP] /buycomponent bug. -
Elanggg - 27.03.2014
up ......
Re: [HELP] /buycomponent bug. -
SiraBots - 27.03.2014
Код:
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.