Jump to content

Problema (am gm s4urick si cineva tot pica sv-ul)


Recommended Posts

Posted

salut sa-mp.ro,

Am o problema cu gm-ul s4urick, inainte picau jucatorii sv-ul prin comanda /report - %s, am adaugat sistem si nu mai poti folosi % in joc.

Acum vad ca iar il pica, si nu stiu care ar fi problema.. ma ajuta si pe mine cinvea? Ce sistem sa adaug sau ce am de facut

 

Multumesc

Posted

pui asta la ondialogresponse:

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[i], true) != -1)
			{
				return 1;
   			}
		}

si asta la inceputu gm sub include :

static const antisqlinjection[][] =
{
	"'",
	"#",
	"`",
 	"%s",
 	"%d",
 	"%f"
};

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.