ElitesHost Forums

Full Version: Anti - MYSQL Injection for samp
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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;
    }
}
Thx for sharing @denisa
Are you new here?
You can introduct yourself here: https://forum.elites-host.com/forumdisplay.php?fid=28
And what this supposed to do?