Jump to content

[REZOLVAT] Problema adminlogs


Jakewow
 Share

Recommended Posts

new string[256];
format(string, sizeof(string), "Admin %s promoted %s to admin level %d.", GetName(playerid), GetName(id), level);
AdminLogs(string);

function AdminLogs(string[]) {
    new query[512];
    mysql_format(SQL, query, 512, "INSERT INTO adminlogs (`info`) VALUES ('%s')", string);
    mysql_query(SQL, query);
    return 1;
}

 

Respecta si vei fi respectat.

 

BigInt Pawn:

Pacman C++: 

Snake C++:

Minesweeper C++:

 

mattbb.cash

leaks.ro

Link to comment
Share on other sites

new string[256];
format(string, sizeof(string), "Admin %s promoted %s to admin level %d.", GetName(playerid), GetName(id), level);
AdminLogs(string);

function AdminLogs(string[]) {
    new query[512];
    mysql_format(SQL, query, 512, "INSERT INTO adminlogs (`info`) VALUES ('%s')", string);
    mysql_query(SQL, query);
    return 1;
}

 

Link to comment
Share on other sites

5 minutes ago, whorT said:

new string[256];
format(string, sizeof(string), "Admin %s promoted %s to admin level %d.", GetName(playerid), GetName(id), level);
AdminLogs(string);

function AdminLogs(string[]) {
    new query[512];
    mysql_format(SQL, query, 512, "INSERT INTO adminlogs (`info`) VALUES ('%s')", string);
    mysql_query(SQL, query);
    return 1;
}

 

da, faza e ca nu vreau sa folosesc format..

Link to comment
Share on other sites

10 minutes ago, Leonard said:

N-ai cum sa trimiti ceva in baza de date fara sa formatezi.

eu nu vreau sa folosesc 

new string[256];
format(string, sizeof(string), "Admin %s promoted %s to admin level %d.", GetName(playerid), GetName(id), level);

se poate fara?

Link to comment
Share on other sites

11 minutes ago, Atrocity said:

eu nu vreau sa folosesc 


new string[256];
format(string, sizeof(string), "Admin %s promoted %s to admin level %d.", GetName(playerid), GetName(id), level);

se poate fara?

Poti sa trimiti fara sa formatezi doar string-uri care nu mai trebuie formatate. Spre exemplu:

AdminLogs("used /kickall");

 

Respecta si vei fi respectat.

 

BigInt Pawn:

Pacman C++: 

Snake C++:

Minesweeper C++:

 

mattbb.cash

leaks.ro

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...