Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:info(playerid, params[])
- {
- new ip, Date;
- new str[64], strr[1024];
- mysql_format(MySQL, mquery, 128, "SELECT * FROM `"TABLE_CONNECTS"` WHERE `ID` = '%i'", PlayerInfo[playerid][pID]);
- 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_int(i, 2, ip);
- cache_get_value_index_int(i, 3, Date);
- format(str, sizeof(str), "#%i\t%s\t%s\n",i, ip, Date);
- strcat(strr, str);
- }
- cache_delete(result);
- ShowPlayerDialog(playerid, D_NULL, 0, "info", strr, "Мне пора", "");
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement