07.02.2010, 22:32
How to check if a player types Male or Female?
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;
}
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.