A little help!!!
#1

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
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
{

}
}

Reply
#2

totally understood nothing, can you tell us the concept from what are you doing, and tell us what exactly are you trying to do??
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)