Jump to content
  • 0

Ajutor Problema


PinDer

Question

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
Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

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;
    }

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0
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:
                {

Link to comment
Share on other sites

  • 0

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

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

Link to comment
Share on other sites

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.