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
#2
Thx for sharing @denisa
Are you new here?
You can introduct yourself here: https://forum.elites-host.com/forumdisplay.php?fid=28
Keep calm and enjoy elites host community!!!
You can ask me everything.
Skype:barcellonagameplay
Best regardz,
Joker >_<
Reply
#3
And what this supposed to do?
Reply


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

Forum Jump:


Users browsing this thread: 1 Guest(s)