26.04.2011, 19:33
How do I get rid of this warning it is so annoying!
pawn Код:
(1048) : warning 209: function "cmd_needmud" should return a value
pawn Код:
command(needmud, playerid, params[])
{
if( PlayerInfo[playerid][Admin] >= 1)
{
SendClientMessage(playerid, COLOR_INFO, "You have given yourself mud!");
PlayerInfo[playerid][Mud]++;
}
else
{
SendClientMessage(playerid, RED, "You are not an admin!");
return 1;
}
}