The Script Market dedicated to the advertisement and sales of all gaming scripts/maps and servers!
 
HomeSearchRegisterLog in

Share | 
 

 Need help with a command

View previous topic View next topic Go down 
AuthorMessage
Leon
BETA Developer


Posts: 7
Active Points: 16
Join date: 2010-10-29

PostSubject: Need help with a command   Fri Oct 29, 2010 6:53 pm

Code:
COMMAND:morning(playerid,params[]) {
{
   if(level[playerid] >= 1)
      if(IsPlayerConnected(playerid))
        return SetPlayerTime(playerid,7,0);
        }
        SendClientMessageToAll(playerid,"Morning!");
  } else SendClientMessage(playerid,red,"ERROR: You need to be a Premium Player to use this command");
  return 1;
}


Help me anybody?
Back to top Go down
Weponz
Founder/BETA Developer


Posts: 62
Active Points: 157
Join date: 2010-10-21
Age: 23
Location: Australia

PostSubject: Re: Need help with a command   Fri Oct 29, 2010 6:56 pm

Leon wrote:
Code:
COMMAND:morning(playerid,params[]) {
{
   if(level[playerid] >= 1)
      if(IsPlayerConnected(playerid))
        return SetPlayerTime(playerid,7,0);
        }
        SendClientMessageToAll(playerid,"Morning!");
  } else SendClientMessage(playerid,red,"ERROR: You need to be a Premium Player to use this command");
  return 1;
}


Help me anybody?


Post errors..
Back to top Go down
http://thescriptmarket.betaboard.net
Leon
BETA Developer


Posts: 7
Active Points: 16
Join date: 2010-10-29

PostSubject: Re: Need help with a command   Fri Oct 29, 2010 6:57 pm

Code:
C:\Users\Maple\Desktop\Premium\filterscripts\Premium.pwn(245) : warning 217: loose indentation
C:\Users\Maple\Desktop\Premium\filterscripts\Premium.pwn(246) : warning 209: function "cmd_morning" should return a value
C:\Users\Maple\Desktop\Premium\filterscripts\Premium.pwn(246) : error 010: invalid function or declaration
C:\Users\Maple\Desktop\Premium\filterscripts\Premium.pwn(247) : error 010: invalid function or declaration
Back to top Go down
Weponz
Founder/BETA Developer


Posts: 62
Active Points: 157
Join date: 2010-10-21
Age: 23
Location: Australia

PostSubject: Re: Need help with a command   Fri Oct 29, 2010 7:03 pm

Leon wrote:
Code:
COMMAND:morning(playerid,params[]) {
{
   if(level[playerid] >= 1)
      if(IsPlayerConnected(playerid))
        return SetPlayerTime(playerid,7,0);
        }
        SendClientMessageToAll(playerid,"Morning!");
  } else SendClientMessage(playerid,red,"ERROR: You need to be a Premium Player to use this command");
  return 1;
}



Change that to:

Code:
cmd_morning(playerid,params[])
{
   if(level[playerid] >= 1)
   if(IsPlayerConnected(playerid))
        return SetPlayerTime(playerid,7,0);
        }
        SendClientMessageToAll(playerid,"Morning!");
  } else SendClientMessage(playerid,red,"ERROR: You need to be a Premium Player to use this command");
  return 1;
}


Should work..
Back to top Go down
http://thescriptmarket.betaboard.net
 

Need help with a command

View previous topic View next topic Back to top 
Page 1 of 1

 Similar topics

-
» Tutorial to the Cframe Command
» House Will Discuss the Cancellation of Some Defunct Revolutionary Command Council Decisions at Its Tuesday
»  Solve the Baghdad Operations Command After the End of the Arab Summit
» Baghdad Operations Command DENIES Put Its Troops on High Alert
» MW2 Single Player Hacks

Permissions in this forum:You cannot reply to topics in this forum
The Script Market :: Site Archives :: Archives Index-