Forbidden characters in dialog inputtext - 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)
+--- Thread: Forbidden characters in dialog inputtext (
/showthread.php?tid=622996)
Forbidden characters in dialog inputtext -
sheNdjze - 28.11.2016
hello everyone, is there a way to make %s, %d, %f, not writeable in dialogs inputtext? i need this because someone is crashing my server typing %s in some dialog... help me please..
Re: Forbidden characters in dialog inputtext -
Micko123 - 28.11.2016
https://sampwiki.blast.hk/wiki/Strfind
PHP код:
if(strfind(inputtext, "%") != -1) // Finds a blank space
{
SCM(playerid, -1, "That is forbidden charachter");
return 1;
}
Re: Forbidden characters in dialog inputtext -
sheNdjze - 28.11.2016
working, thank you!