Enum help
#1

I want to make a cmd that will toggle something I know it will use enums this is something what i tought:

Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/afk", cmdtext, true, 10) == 0)
	{
		If user = afk then
                      print("You are no longer AFK!")
                Else
                      print("You are now afk!")
                End if
		return 1;
	}
	return 0;
}
I know the code is not right, I stopped with pawn for a while so bear with me
Reply


Messages In This Thread
Enum help - by NicholasA - 01.04.2013, 15:38
Re: Enum help - by iGetty - 01.04.2013, 15:52

Forum Jump:


Users browsing this thread: 1 Guest(s)