Can't /deletehouse from in-game! :(
#1

Hello all. I am trying to do the command /deletehouse House ID and all it says is: "You are not a developer!" When I'm' the server owner! And I checked the script, there is in fact a Developer rank, but it has the same rank number as the server owner! 1-5 and 5 represents server owner so Developer should be rank 6 right? Well anyways, I can do all of the developer commands with a level 5 rank as a server owner. All except the /deletehouse command! And the strangest thing about it? Rank 2 which is jr. admin can do the /deletehouse command! Now I don't understand how that's even possible!? Because I checked the script for admin commands, and no where in the admin command line under level 2 admin does it show the /deletehouse as one of those commands! Only for Developer! So what do I do? Can I just change the rank number of developer to rank 6 and should that fix it? Or change the name of Developer to Server Owner? So Server owner has the /deletehouse command? I just don't know what to do! And I figured maybe it was a the code that got put in wrong. But if you look at the photos, it clearly shows that when you do /deletehouse you have to be a level 5 administrator! if(strcmp(cmd, "/deletehouse", true) == 0) if(PInfo[playerid][AdminLevel] >= 5)
See? It doesen't make any sense! Anyways, please take a look at the photos, and let me know what I have to do or if anyone is willing to help me with it that would be really great. Thanks again all for taking the time to read this. I really appreciate it!

Kind Regards,
Airin M. Wesley
Server Owner

P.S. Here is the link to the pictures.

Link: http://imgur.com/GuoziAZ,tPYGL77,ubLATYI,qPUXnPA There are 4 images of the script.
Reply
#2

Your code says:
pawn Код:
if(PInfo[playerid][AdminLevel] >= 5) { SendClientMessage(...,"You are not a developer"); }
If we translate this to English your code is
Код:
if Admin Level is Equal or Higher than 5 he isn't developer.
So proper statement would be
pawn Код:
if(PInfo[playerid][AdminLevel] < 5)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)