How to check what a player types?
#1

How to check if a player types Male or Female?
Reply
#2

pawn Code:
public OnPlayerText(playerid, text[])
{
  if(!strcmp("male", text, true))
  {
    SendClientMessage(playerid, YELLOW2, "You typed 'male'");
  }
  else if(!strcmp("female", text, true))
  {
    SendClientMessage(playerid, YELLOW2, "You typed 'female'");
  }
  return 0;
}
Reply
#3

Code:
C:\Users\Torran\Desktop\Roleplay Server\Gamemodes\Roleplay.pwn(397) : error 017: undefined symbol "text"
C:\Users\Torran\Desktop\Roleplay Server\Gamemodes\Roleplay.pwn(406) : error 017: undefined symbol "text"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Reply
#4

Are you sur you put it under OnPlayerText callback?
Reply
#5

Yes, Il try recompile
EDIT: Fixed, Just had to recompile
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)