SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Romānă/Romanian

 
 
Thread Tools Display Modes
Old 10/09/2016, 03:51 PM   #1
darks0ne
Little Clucker
 
Join Date: Apr 2016
Posts: 1
Reputation: 0
Exclamation Problema urgenta (gm s4uricK)

salut,

Folosesc gamemod-ul s4urick si cineva tot pica sv-ul.
Inainte jucatorii picau server-ul prin comanda /report - %, am adaugat sistem si nu mai poti folosi % pe server.
Acum jucatorii pica iar server-ul si nu stiu unde ar fi problema, si cum il pica.
Ce sfaturi mi-ati da? Ce sistem trebuie sa adaug?

multumesc.
darks0ne is offline  
Old 10/09/2016, 04:18 PM   #2
HeLiOn_PrImE
High-roller
 
HeLiOn_PrImE's Avatar
 
Join Date: Jul 2010
Location: Romania
Posts: 3,007
Reputation: 469
Default Re: Problema urgenta (gm s4uricK)

Pai nu avem de unde sa stim solutia in conditiile in care nici macar nu stii unde anume este problema.
Studiaza log-urile la fiecare incident si incearca sa iti dai seama de la ce iti da crash.
Eventual foloseste pluginul crashdetect, poate iti da el ceva detalii.
__________________

"It's only a game, but people are real. You have to respect them." - Mick88
"You don't deserve a +rep, if you ask for it. Those who deserve it, don't have to ask." - me
"And yet people will still start new threads for the "dying" subject." - me


Last edited by HeLiOn_PrImE; 11/09/2016 at 04:14 PM.
HeLiOn_PrImE is offline  
Old 06/10/2016, 08:38 AM   #3
MiritaXD
Little Clucker
 
Join Date: Sep 2016
Posts: 5
Reputation: 0
Default Re: Problema urgenta (gm s4uricK)

Pune asta la public OnDialogResponse.

Code:
if(strfind(inputtext, "%", true) != -1) return SendClientMessage(playerid,-1, "Nu poti folosi asemena caract
MiritaXD is offline  
Old 06/10/2016, 12:17 PM   #4
Spmn
Gangsta
 
Join Date: Jun 2015
Location: Romania
Posts: 486
Reputation: 131
Default Re: Problema urgenta (gm s4uricK)

Quote:
Originally Posted by MiritaXD View Post
Pune asta la public OnDialogResponse.

Code:
if(strfind(inputtext, "%", true) != -1) return SendClientMessage(playerid,-1, "Nu poti folosi asemena caract
Daca ti-ai fi irosit 1 minut din viata ta pretioasa citind prima postare, ai fi observat ca a facut deja asta.


Cum s-a zis, compileaza scripturile cu debug flag si foloseste crashdetect.
Spmn is offline  
Old 17/11/2016, 11:49 AM   #5
GoJoshQ
Little Clucker
 
Join Date: Nov 2016
Posts: 1
Reputation: 0
Default Re: Problema urgenta (gm s4uricK)

if(strfind(inputtext, "%s", true) != -1) return SendClientMessage(playerid,-1, "Nu poti folosi asemena caracter);
if(strfind(inputtext, "%d", true) != -1) return SendClientMessage(playerid,-1, "Nu poti folosi asemena caracter);
GoJoshQ is offline  
Old 13/12/2016, 07:47 PM   #6
DyduShxD
Gangsta
 
DyduShxD's Avatar
 
Join Date: Jan 2013
Location: United Kingdom
Posts: 611
Reputation: 6
Default Re: Problema urgenta (gm s4uricK)

Nu doar cu alea poti pica un server..


"'",
"#",
"`",
"%"

acestea sunt caracterele care iti pica serverul.


Code:
Sus de tot..
static const antisqlinjection[][] = {
	"'",
	"#",
	"`",
 	"%"
};

OnDialogResponse

for(new i; i < sizeof(antisqlinjection); i++)
	{
		if(strfind(inputtext, antisqlinjection[i], true) != -1)
		{
        	SCM(playerid, COLOR_YELLOW2, "Eroare: Nu sunt permise asemenea caractere.");
			return 1;
    	}
    }
DyduShxD is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 06:04 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.