25.12.2014, 08:24
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.
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.
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, "", "");