[CAMPANIE STAFF]Cautam moderatori si designeri activi!
Welcome to WTFCS Community Forums!
Servere gaming la super-preturi! [HOSTING SERVICE]
-->






[Tutorial] Rezolvare bug mod EnemY
Author : SaTaNa99, Category : Tutoriale, 0 Replyes, 925 Views
EVALUATE THIS TOPIC
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
1 Guest(s)
fondator rsp.wtfcs.com
 
421
POSTS
150
THREADS
0
REPUTATION
Male
Sex

WtfCs Coins: -0.01[w]
01-09-2014, 11:09 AM
#1
Modul Public Enemy NO:1 Mod creat de Denver(Astro) are un bug destul de nasol:
Orice player care isi face cont are sansa sa devin admin level 50000 doar tastand /regnick <cenzurez codul> (este un cod de vreo 14 litere)

am gasit bugul si o metoda sa fie reparat
in mod gasiti liniile acestea:

Pawno code:

public Encript(string[])
{
for(new x=0; x < strlen(string); x++)
{
string[x] += (3^x) * (x % 15);
if(string[x] > (0xff))
{
string[x] -= 256;
}
}
return 1;
}

public Decript(string[])
{
if (gdebug){printf("DEBUG string = %s", string);}
for(new x=0; x < strlen(string); x++)
{
string[x] -= (3^x) * (x % 15);
if(string[x] > (0xff))
{
string[x] -= 256;
}
}
if (gdebug){printf("DEBUG decript = %s", string);}
return 1;
}


aceste linii dau sansa playerilor sa fie admini cand vor ei

sa fie reparat inlocuiti acele linii cu acestea:
Pawno code:


public Encript(string[])
{
/*for(new x=0; x < strlen(string); x++)
{
string[x] += (3^x) * (x % 15);
if(string[x] > (0xff))
{
string[x] -= 256;
}
}*/
return 1;
}

public Decript(string[])
{
/*if (gdebug){printf("DEBUG string = %s", string);}
for(new x=0; x < strlen(string); x++)
{
string[x] -= (3^x) * (x % 15);
if(string[x] > (0xff))
{
string[x] -= 256;
}
}
if (gdebug){printf("DEBUG decript = %s", string);}*/
return 1;
}

puteti observa ca am pus doar niste /* */ ca sa nu mai aiba nici un efect
Acum acel cod nu mai va avea efect
Simplu si usor de facut
Sper sa va fie de folos! astept parerile voastre!
Regulament forum: You are not allowed to view links. Register or Login to view.

You are not allowed to view links. Register or Login to view.

You are not allowed to view links. Register or Login to view.


Forum Jump: