Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock mysql_PlayerGetInt(player[], key[]) {
- new tmpres;
- new nick[30], string2[123];
- mysql_real_escape_string(player, nick);
- format(string2, sizeof(string2), "select (%s) dupa from players where nick='%s'", key, nick);
- mysql_query(string2);
- printf("query: %s", string2);
- mysql_store_result();
- if(!mysql_num_rows())
- {
- mysql_free_result();
- return 0;
- }
- tmpres = mysql_fetch_int();
- mysql_free_result();
- return tmpres;
- }
Advertisement
Add Comment
Please, Sign In to add comment