Jump to content

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


Weeze

Recommended Posts

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

Link to comment
Share on other sites

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"
};

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.