Jump to content
  • 0

Problema pica server


Question

5 answers to this question

Recommended Posts

  • 0
Posted
6 hours ago, [kLs]Z3r0. - [kLs]ArmaNd said:

ip

Si ce ai vrea sa faci cu ipul?

La public OnDialogResponse adauga asta

if(    strfind(inputtext, "%", true) != -1  ||
           strfind(inputtext, "'", true) != -1 ||
           strfind(inputtext, "`", true) != -1 ||
           strfind(inputtext, ";", true) != -1 )
  	{
		format(string,sizeof(string),"* %s (%d) type inccorect character", PlayerName(playerid), playerid);
	    SendClientMessage(playerid,COLOR_RED,"don't use this characters!");
        return 0;
	}
  • Upvote 1

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
  • 1
Posted
Acum 11 ore, Mister a spus:

Si ce ai vrea sa faci cu ipul?

La public OnDialogResponse adauga asta


if(    strfind(inputtext, "%", true) != -1  ||
           strfind(inputtext, "'", true) != -1 ||
           strfind(inputtext, "`", true) != -1 ||
           strfind(inputtext, ";", true) != -1 )
  	{
		format(string,sizeof(string),"* %s (%d) type inccorect character", PlayerName(playerid), playerid);
	    SendClientMessage(playerid,COLOR_RED,"don't use this characters!");
        return 0;
	}

 

Acum 10 minute, Geani a spus:

incearca sa pui dupa #include asta 

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

si la  OnDialogResponse  adaugi asta 

    for(new i; i < sizeof(antisqlinjection); i++)
    {
       if(strfind(inputtext, antisqlinjection, true) != -1)
       {
           SCM(playerid, -1, "Server protected by sistem FiveGame.");
           return 1;
          }
    }

 

multumesc chear imi trebuia si mie, tot respectul !!!!

  • 0
Posted

incearca sa pui dupa #include asta 

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

si la  OnDialogResponse  adaugi asta 

    for(new i; i < sizeof(antisqlinjection); i++)
    {
       if(strfind(inputtext, antisqlinjection, true) != -1)
       {
           SCM(playerid, -1, "Server protected by sistem FiveGame.");
           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.