Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- forward top_respekt();
- public top_respekt()
- {
- new data[256], string[1000], i = 1, name_rep[MAX_PLAYER_NAME + 1], rep;
- mysql_query("SELECT `nick`, `score` FROM `players` WHERE `score` > 0 ORDER BY `score` DESC LIMIT 5");
- mysql_store_result();
- format(string, sizeof(string), "Top lista:");
- while(mysql_fetch_row(data, "|"))
- {
- sscanf(data, "p<|>s[24]d", name_rep, rep);
- format(string, sizeof(string), "%s\n{A40000}%d. {008000}%s {FFFFFF}- {008000}%d {FFFFFF}respektu", string, i, name_rep, rep);
- i++;
- }
- mysql_free_result();
- if(strlen(string))
- {
- Create3DTextLabel(string, 0xFFFFFFFF, 2151.58, 1020.5, 10.39, 70.0, 0, 0);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment