[HELP] Else Error! - 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] Else Error! (
/showthread.php?tid=347000)
[HELP] Else Error! -
Oscii - 30.05.2012
Hello..
I get a error when i try to make it that if your not within the range it will say
You Are Not Near Any Weed Spot..
but it gave me:
error:
pawn Код:
: error 029: invalid expression, assumed zero:
warning 215: expression has no effect
pawn Код:
if(strcmp(cmdtext, "/harvestweed", true)==0)
{
if (IsPlayerInRangeOfPoint(playerid, 5.0,2542.60009766,-1587.80004883,22.00000000))
}
else
SendClientMessage(playerid,COLOR_GREY,"You Are Not Near Any Weed Spot");
{
Re: [HELP] Else Error! -
Flake. - 30.05.2012
pawn Код:
if(strcmp(cmdtext, "/harvestweed", true)==0)
{
if (IsPlayerInRangeOfPoint(playerid, 5.0,2542.60009766,-1587.80004883,22.00000000))
}
else
{
SendClientMessage(playerid,COLOR_GREY,"You Are Not Near Any Weed Spot");
{