inconsistent return types (array & non-array) | Please help !
#1

I get this error several times:
Код:
error 079: inconsistent return types (array & non-array)
One of the lines is:
Код:
return 1;
Код:
SendClientMessage(playerid, COLOR_GREY, "USAGE: /pay [playerid/PartOfName] [amount]");
return 1;


What should I change or add to this I no longer get error? Delete lines with return 1 ? Sorry for my bad english. Thanks !
Reply
#2

can you sow us the entire function ?


also return 1; is used to tell that the function has been successfully performed for the player. if you wont place it, you will get error message in game and pawno as well

for example

pawn Код:
CMD:pay(playerid,params[]);
{
   SendClientMessage(playerid, COLOR_GREY, "USAGE: /pay [playerid/PartOfName] [amount]");
   return 1;
}
possibly you didn't placed the appropriate "{" "}"
Reply
#3

That means you are returning string and integer in the same procedure. Post the whole procedure here if you still cannot fix it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)