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(playerid, 10);
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " You are not in your locker room !");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_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 "{"