Inserting random values in MYSQL.
#1

Hello, I have a quick question.
I have a SQL saving system and I have a shop system in which you can buy a cellphone and such.

pawn Код:
PlayerInfo[playerid][pNumber] = randomEx(1234567, 9999999);
format(query, sizeof(query), "UPDATE `users` SET `cellphone` = '1'", GetStringVar(playerid, "Cellphone"), GetName(playerid));
mysql_function_query(dbHandle, query, false, "", "");
Is there a way in MYSQL to add a random value like shown in the code randomEx(1234567, 9999999); as it's needed for my saving system. Thanks in advance.
Reply


Messages In This Thread
Inserting random values in MYSQL. - by Biess - 25.12.2014, 08:24
Re: Inserting random values in MYSQL. - by M4D - 25.12.2014, 08:29
Re: Inserting random values in MYSQL. - by Biess - 25.12.2014, 08:31
Re: Inserting random values in MYSQL. - by M4D - 25.12.2014, 08:36
Re: Inserting random values in MYSQL. - by Biess - 25.12.2014, 09:53
Re: Inserting random values in MYSQL. - by M4D - 25.12.2014, 10:02
Re: Inserting random values in MYSQL. - by Vince - 25.12.2014, 11:27
Re: Inserting random values in MYSQL. - by Biess - 25.12.2014, 11:42

Forum Jump:


Users browsing this thread: 1 Guest(s)