09.09.2017, 11:13
Hello.
I want to make a code system.
That is, when a player registers, it generates a rendering code that another player can use to use it.
The question is how to look for the code in the database ... that is, to find that code in the entire list of players and to check if it matches the one entered by the player.
A small example would be helpful ...
I tried that
I want to make a code system.
That is, when a player registers, it generates a rendering code that another player can use to use it.
The question is how to look for the code in the database ... that is, to find that code in the entire list of players and to check if it matches the one entered by the player.
A small example would be helpful ...
I tried that
Quote:
mysql_format(g_SQL, query, sizeof query, "SELECT `Cod` FROM `players` WHERE %s",inputtext); for(new i = 0; i < MAX_PLAYERS; i++) { cache_get_value_int(i, "Cod", string); //if(inputtext == string) if(!strcmp(string, inputtext)) { Mesaj("No correct code."); } else { } } |