Locker Help
#3

Quote:
Originally Posted by Mencent
Посмотреть сообщение
Hi!

Replace your code with this:
PHP код:
if(strcmp(cmdtext"/apdlocker"true) == 0// LSPD Locker
{
    if(
IsPlayerConnected(playerid))
     {
         
printf("IsACop: %i",IsACop(playerid));
          if(
IsACop(playerid))
        {
              if(
IsPlayerConnected(playerid)//Would ask for a cord but I changed it to see if that was the problem)
            
{
                
DisplayDialogForPlayer(playerid10);
            }
            else
            {
                   
SendClientMessage(playeridCOLOR_GRAD2"   You are not in your locker room !");
                return 
1;
            }
        }
        else
        {
              
SendClientMessage(playeridCOLOR_GREY"   You are not a MPD officer!");
              return 
1;
           }
    }
    return 
1;

Compile the script and restart the server. What is printing in the console (server.log) when you use this command?
I get this error when compiling
:\Users\Laptop\Downloads\rp\rp\gamemodes\MFRP.pwn( 65641) : error 001: expected token: ")", but found "{"
Reply


Messages In This Thread
Locker Help - by TheMafien - 29.03.2016, 20:51
Re: Locker Help - by Mencent - 29.03.2016, 20:55
Re: Locker Help - by TheMafien - 29.03.2016, 21:06
Re: Locker Help - by Mencent - 29.03.2016, 21:08
Re: Locker Help - by TheMafien - 29.03.2016, 21:26
Re: Locker Help - by OmegaKiller72 - 29.03.2016, 21:33
Re: Locker Help - by TheMafien - 29.03.2016, 21:52
Re: Locker Help - by Golden96 - 29.03.2016, 21:55
Re: Locker Help - by TheMafien - 29.03.2016, 22:07
Re: Locker Help - by Mencent - 30.03.2016, 09:38

Forum Jump:


Users browsing this thread: 1 Guest(s)