Jump to content
  • 0

Ajutor se inchide serverul cu %s


Question

Posted

Problema intalnita (descriere):Cand un player da /report si da la alta problema si scrie %s se inchide serverul
Ero(area / rile) / warning-(ul / urile): -
Liniile de cod / sursa / script-ul(obligatoriu): - Nu am problema in pawno
Imagini / Video (optional):-
Ati incercat sa rezolvati singur?: Nu.

1 answer to this question

Recommended Posts

  • 0
Posted

In cearca sa pui la  

OnDialogResponse

   codul asta 

if(!isnull(inputtext))
        for(new strPos; inputtext[strPos] > 0; strPos++)
            if(inputtext[strPos] == '%')
                inputtext[strPos] = '\0'; // SA-MP placeholder exploit patch

for(new i; i < sizeof(antisqlinjection); i++)
{
    if(strfind(inputtext, antisqlinjection, true) != -1)
    {
        SCM(playerid, -1, "Nu sunt permise asemenea caractere.");
        return 1;
       }
}
  • Upvote 1

FiveGame  Lands

Pawno Developer, Mapping , Scripter

Since 2016

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.