Problem with mysql phone number
#3

pawn Код:
RANDPHONE: //creating a point where you can go back to
randphone = 100000 + random(899999);
new Query[200];
format(Query, sizeof(Query), "SELECT * FROM `playerinfo` WHERE `phonenr` = '%d'", randphone);
mysql_query(Query);
foreach(Player, i) //use a normal for loop if you don't have for each (i < MAX_PLAYERS)
{
    if( randphone == PlayerInfo[i][pPnumber] )
        goto RANDPHONE; //goes back to that point we made earlier
    else
        PlayerInfo[playerid][pPnumber] = randphone;
}
The best way I can think of..
Reply


Messages In This Thread
Problem with mysql phone number - by vection - 07.10.2010, 18:51
Re: Problem with mysql phone number - by vection - 08.10.2010, 11:28
Re: Problem with mysql phone number - by LarzI - 08.10.2010, 11:32
Re: Problem with mysql phone number - by vection - 08.10.2010, 21:04
Re: Problem with mysql phone number - by Tommie1331 - 08.10.2010, 21:40

Forum Jump:


Users browsing this thread: 1 Guest(s)