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
avatar

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

PostSubject: Need help with a command   Fri 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
avatar

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

PostSubject: Re: Need help with a command   Fri 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
avatar

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

PostSubject: Re: Need help with a command   Fri 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
avatar

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

PostSubject: Re: Need help with a command   Fri 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




PostSubject: Re: Need help with a command   

Back to top Go down
 
Need help with a command
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Hillary command and control bunker
» Does any body know about goTX
» JKH rights command high price on the market

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