The Script Market
Would you like to react to this message? Create an account in a few clicks or log in to continue.


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

 

 Need help with a command

Go down 
2 posters
AuthorMessage
Leon
BETA Developer
Leon


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

Need help with a command Empty
PostSubject: Need help with a command   Need help with a command EmptyFri Oct 29, 2010 12: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
Weponz


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

Need help with a command Empty
PostSubject: Re: Need help with a command   Need help with a command EmptyFri Oct 29, 2010 12: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
Leon


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

Need help with a command Empty
PostSubject: Re: Need help with a command   Need help with a command EmptyFri Oct 29, 2010 12: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
Weponz


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

Need help with a command Empty
PostSubject: Re: Need help with a command   Need help with a command EmptyFri Oct 29, 2010 1: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
Sponsored content





Need help with a command Empty
PostSubject: Re: Need help with a command   Need help with a command Empty

Back to top Go down
 
Need help with a command
Back to top 
Page 1 of 1

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