Jump to content

[PAWNO]Anti-Dialog BUG and Anti-SQL injection.


ZeCo
 Share

Recommended Posts

*Nume: Anti dialog BUG and anti SQL injection.


*Descriere Script: Daca un jucator punea %s, %f intr-un dialog de tip IMPUT, pica serverul. Cu astept script, nu va mai pica.


*Poze: -


*Codul (sursa):


Puneti asta la public OnDialogResponse.



if(strfind(inputtext,"'") || strfind(inputtext,"'"))
{
for(new i; i < strlen(inputtext); i++)
{
if(strfind(inputtext[i],"%", true) == 0)
{
inputtext[i] = '-';
}
if(strfind(inputtext[i],"'", true) == 0)
{
inputtext[i] = '-';
}
}
SCM(playerid, COLOR_YELLOW2, "Eroare: Nu poti folosi aceste caractere.");

}

Edited by Hudson ToV
Link to comment
Share on other sites

Frumos, mai ma duceam pe niste servere mici si picau saracele :)) scripteri de 2 bani...

ON: Multam' pentru script :) Dar daca ai spune cu // sau /* */ cateva explicatii prin el ar fi superb :* sal

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

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