Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×
  • 0

Question

Posted (edited)

Descrierea problemei:deci cind dau /clan--Clan Tag si setez tag clan si dau enter imi spune Felicitari,esti un prost cu diploma dar asta am adaugat la /changepass ca sa nu potata da restart orice nob

Liniile de cod / sursa / script-ul(obligatoriu):http://imgur.com/a/xje89
Imagini / Video (optional):http://imgur.com/a/xje89
Alte detalii:am adaugat dupa acest model http://pastebin.com/TQ5gtZ7cVa Rog Ajutatima!!! 

Edited by PinDer

8 answers to this question

Recommended Posts

  • 0
Posted

Dane comanda, nu stiu ce e cu tine, dar acolo scrie clar  Liniile de cod

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

  • 0
Posted

Sterge tot ce ai pus.

Mergi la public OnDialogResponse si adauga asta chiar sub public:

if(strfind(inputtext, "%", true) != -1 || strfind(inputtext, "`", true) != -1 || strfind(inputtext, "'", true) != -1 || strfind(inputtext, "#", true) != -1)
    {
        SendClientMessage(playerid, COLOR_WHITE, "Felicitari, esti un prost cu diploma~");
        return 1;
    }

  • 0
Posted

Alberto scap unele acolade...imi faci te rog un exemplu ? dupa acest model..

// OnDialogResponse
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
//---------------[Anti-sql-injection]-----------------------
{
    for(new i; i < sizeof(antisqlinjection); i++)
{
    if(strfind(inputtext, antisqlinjection, true) != -1)
    {
        SCM(playerid, -1, "Felicitari,esti un prost cu diploma.");
        return 1;
    }
//---------------[Anti-sql-injection]-----------------------
}
    new vehicleid = GetPlayerVehicleID(playerid);
    new sendername[25];
    new string[300];
    if(dialogid == 6267)
    {
        if(response)
        {
            switch(listitem)
            {
                case 0:
                {

20 hours ago, Gireada said:

Dane comanda, nu stiu ce e cu tine, dar acolo scrie clar  Liniile de cod

Vezi imaginile 

http://imgur.com/a/vcj6b

  • 0
Posted
Acum 12 ore, PinDer a spus:

Alberto scap unele acolade...imi faci te rog un exemplu ? dupa acest model..

// OnDialogResponse
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
//---------------[Anti-sql-injection]-----------------------
{
    for(new i; i < sizeof(antisqlinjection); i++)
{
    if(strfind(inputtext, antisqlinjection, true) != -1)
    {
        SCM(playerid, -1, "Felicitari,esti un prost cu diploma.");
        return 1;
    }
//---------------[Anti-sql-injection]-----------------------
}
    new vehicleid = GetPlayerVehicleID(playerid);
    new sendername[25];
    new string[300];
    if(dialogid == 6267)
    {
        if(response)
        {
            switch(listitem)
            {
                case 0:
                {

Vezi imaginile 

http://imgur.com/a/vcj6b

poftim, doar inlocuiesti:

// OnDialogResponse
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
//---------------[Anti-sql-injection]-----------------------
{

    if(strfind(inputtext, "%", true) != -1 || strfind(inputtext, "`", true) != -1 || strfind(inputtext, "'", true) != -1 || strfind(inputtext, "#", true) != -1)
    {
        SendClientMessage(playerid, COLOR_WHITE, "Felicitari, esti un prost cu diploma~");
        return 1;
    }
    new vehicleid = GetPlayerVehicleID(playerid);
    new sendername[25];
    new string[300];
    if(dialogid == 6267)
    {
        if(response)
        {
            switch(listitem)
            {
                case 0:
                {

  • 0
Posted

Problema rezolvata? Pot da T/C?

Acum 2 ore, PinDer a spus:

Alberto scap unele acolade...imi faci te rog un exemplu ? dupa acest model..

// OnDialogResponse
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
//---------------[Anti-sql-injection]-----------------------
{
    for(new i; i < sizeof(antisqlinjection); i++)
{
    if(strfind(inputtext, antisqlinjection, true) != -1)
    {
        SCM(playerid, -1, "Felicitari,esti un prost cu diploma.");
        return 1;
    }
//---------------[Anti-sql-injection]-----------------------
}
    new vehicleid = GetPlayerVehicleID(playerid);
    new sendername[25];
    new string[300];
    if(dialogid == 6267)
    {
        if(response)
        {
            switch(listitem)
            {
                case 0:
                {

Vezi imaginile 

http://imgur.com/a/vcj6b

Problema rezolvata? Pot da T/C?

**********************************

Servicii Scripting de calitate:

*********************************

Future Project: ExpertGame

*********************************

  • 0
Posted (edited)

Tot primesc asa...
Nu merge..e la fel ca la inceput

Edited by PinDer
  • 0
Posted
Acum 10 ore, PinDer a spus:

Tot primesc asa...
Nu merge..e la fel ca la inceput

Sterge asta ' strfind(inputtext, "#", true) != -1) ' ca ai #1 si #2 la taguri, de aceea primesti.

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.