Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:info(playerid, params[])
- {
- new ip[16], Date[16], Time[16];
- new str[64], strr[1024];
- mysql_format(MySQL, mquery, 128, "SELECT * FROM "TABLE_CONNECTS" WHERE `Name` = '%s'", GetName(playerid));
- int Cache:result = mysql_query(MySQL, mquery, true);
- if(!cache_num_rows()) return SendClientMessage(playerid, -1, "Нет последних подключений!");
- for(new i; i < cache_num_rows(); i++)
- {
- cache_get_value_index(i, 2, ip, 16);
- cache_get_value_index(i, 3, Date, 16);
- cache_get_value_index(i, 4, Time, 16);
- format(str, sizeof(str), ""WHITE"Ваш "LGREEN"%i"WHITE" вход был совершен "LGREEN"%s "WHITE"года в "LGREEN"%s с "YL"%s\n",i, Date, Time, ip);
- strcat(strr, str);
- }
- cache_delete(result);
- ShowPlayerDialog(playerid, D_NULL, 0, "Информация о последних подключений", strr, "Мне пора", "");
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement