Admin duty isn't working?
#10

Why did you do this?
pawn Код:
if(PlayerInfo[giveplayerid][pAdmin] > PlayerInfo[playerid][pAdmin])
From your explanation i don't see the point of this, just do

pawn Код:
if(PlayerInfo[playerid][pAdmin] > 0)
Then, in /aoduty you are just checking if player's admin level is 1, so it won't work if there level is different from 1, do this:

pawn Код:
if(PlayerInfo[playerid][pAdmin] > 0)


And about the compiler crashing, I don't think it's because of your command, since there are no huge errors on it, it could be, for example, that you defined a function inside another one, you might have coded a dcmd command inside onplayercommandtext, that will make the compiler crash.
Check ALL the code you have made, and see where you've put it.

See ya!
Reply


Messages In This Thread
Admin duty isn't working? - by Ehab1911 - 07.10.2011, 14:18
Re: Admin duty isn't working? - by Pharrel - 07.10.2011, 14:22
Re: Admin duty isn't working? - by Ehab1911 - 07.10.2011, 15:33
Re: Admin duty isn't working? - by Ehab1911 - 07.10.2011, 15:45
Re: Admin duty isn't working? - by [MWR]Blood - 07.10.2011, 15:46
Re: Admin duty isn't working? - by Ehab1911 - 07.10.2011, 15:49
Re: Admin duty isn't working? - by =WoR=G4M3Ov3r - 07.10.2011, 15:58
Re: Admin duty isn't working? - by Jafet_Macario - 07.10.2011, 15:59
Re: Admin duty isn't working? - by Ehab1911 - 07.10.2011, 16:01
Re: Admin duty isn't working? - by DreamOnIt - 07.10.2011, 16:09

Forum Jump:


Users browsing this thread: 1 Guest(s)