Warning!
#1

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;
    }
}
Reply
#2

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;
}
Fix the indentations that SA-MP forum messes up.
Reply
#3

Haha lol! silly mistake thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)