Invalid Expression[REPPING]
#1

I get
pawn Код:
error 029: invalid expression, assumed zero
My line is
pawn Код:
else SendClientMessage(playerid, COLOR_GREY, "You need to be closer/near a gate to open her.");
    return 1;
}
I don't see anything wrong here but i receive error.
Reply
#2

Quote:
Originally Posted by Strech
Посмотреть сообщение
I get
pawn Код:
error 029: invalid expression, assumed zero
My line is
pawn Код:
else SendClientMessage(playerid, COLOR_GREY, "You need to be closer/near a gate to open her.");
    return 1;
}
I don't see anything wrong here but i receive error.
Here you go:
pawn Код:
else return SendClientMessage(playerid, COLOR_GREY, "You need to be closer/near a gate to open her.");
    return 1;
}
Reply
#3

pawn Код:
else { SendClientMessage(playerid, COLOR_GREY, "You need to be closer/near a gate to open her.");
    return 1;
}
It would help if you provided the full code block, so don't be shocked or upset if the above solution is wrong.
Reply
#4

You could just

pawn Код:
else return SendClientMessage(playerid, COLOR_GREY, "You need to be closer/near a gate to open her.");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)