How to check what a player types? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to check what a player types? (
/showthread.php?tid=126327)
How to check what a player types? -
Torran - 07.02.2010
How to check if a player types Male or Female?
Re: How to check what a player types? -
Coicatak - 07.02.2010
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;
}
Re: How to check what a player types? -
Torran - 07.02.2010
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.
Re: How to check what a player types? -
Coicatak - 07.02.2010
Are you sur you put it under OnPlayerText callback?
Re: How to check what a player types? -
Torran - 08.02.2010
Yes, Il try recompile
EDIT: Fixed, Just had to recompile