07.10.2011, 16:09
Why did you do this?
From your explanation i don't see the point of this, just do
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:
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!
pawn Код:
if(PlayerInfo[giveplayerid][pAdmin] > PlayerInfo[playerid][pAdmin])
pawn Код:
if(PlayerInfo[playerid][pAdmin] > 0)
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!

