Command Help
#10

Quote:
Originally Posted by mick88
Посмотреть сообщение
Код:
        new pid;
        if(sscanf(params, "u", id))
Bug here. Also, why do you check if player is admin twice?
And check if player id is correct, otherwise command will crash because INVALID_PLAYER_NAME is larger than array size MAX_PLAYERS.

Reset by setting player as un-frozen when he connects:
Код:
PlayerFrozen[playeris]
The way you do that command is confusing me. I'll be changing how I check if a player is an admin twice, but the main reason is so I can tell the admin how to do the command correctly. If you have a better way, care to share? I'm still modifying the command, but its truly confusing me and I don't know why. Could you explain it a little to me?
Reply


Messages In This Thread
Why don't these work? - by Scenario - 16.09.2010, 00:02
Re: Command Help - by PotH3Ad - 16.09.2010, 00:51
Re: Command Help - by mick88 - 16.09.2010, 00:56
Re: Command Help - by PotH3Ad - 16.09.2010, 00:58
Re: Command Help - by Scenario - 16.09.2010, 01:42
Re: Command Help - by mick88 - 16.09.2010, 09:22
Re: Command Help - by Scenario - 16.09.2010, 13:31
Re: Command Help - by Cameltoe - 16.09.2010, 14:02
Re: Command Help - by mick88 - 16.09.2010, 14:07
Re: Command Help - by Scenario - 16.09.2010, 14:22

Forum Jump:


Users browsing this thread: 1 Guest(s)