Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Anti - MYSQL Injection for samp
#1
Step 1:
We create a static, go up in the gamemode after the last #include
 
And add this static:
Static const antisqlinjection [] [] =
{
    "" "
    "#"
    "` "
    "% S",
    "% D",
    "% F"
};
Step 2:
 
We go to OnDialogResponse and add this function:
For (new i; i <sizeof (antisqlinjection); i ++)
{
    If (strfind (inputtext, antisqlinjection [i], true)! = -1)
    {
        SCM (playerid, -1, "No such characters allowed");
        Return 1;
    }
}
Reply


Messages In This Thread
Anti - MYSQL Injection for samp - by denisa - 08-25-2017, 04:01 PM
RE: Anti - MYSQL Injection for samp - by joker123 - 08-25-2017, 05:35 PM
RE: Anti - MYSQL Injection for samp - by PotatoM - 08-27-2017, 11:16 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Requesting SAMP SERVER Renzkie 2 10,133 01-02-2018, 12:50 PM
Last Post: Bob
  Gamemode samp RPG 0 2,419 Less than 1 minute ago
Last Post:

Forum Jump:


Users browsing this thread: 1 Guest(s)