How to make this!? - 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 make this!? (
/showthread.php?tid=215010)
How to make this!? -
[H]265 - 22.01.2011
pawn Код:
public OnPlayerText(playerid, text[])
{
return true;
}
How i can check if player typed something in GetPVarString ?
Re: How to make this!? -
JaTochNietDan - 22.01.2011
Do you mean comparing the text he just wrote with a string stored using PVars? Well use strcmp the same way as always to compare the strings.
pawn Код:
new string[128];
GetPVarString(playerid,"Key",string,128);
if(strcmp(text,string,true) == 0) // Strings match...
Re: How to make this!? -
[H]265 - 22.01.2011
Tnx alot man!
Re: How to make this!? -
admantis - 22.01.2011
EDIT.