PlayerToPoint In MysQl Query
#2

pawn Код:
stock
    SomeFunc( playerid )
{
    new
        string[ 80 ],
        Float: x, Float: y, Float: z;
       
    mysql_query( "SELECT `x`, `y`, `z` FROM `sometable`" );
    mysql_store_result( );
   
    if ( mysql_fetch_row( string ) )
    {
        sscanf( string, "p<|>fff", x, y, z );
       
        if ( IsPlayerInRangeOfPoint( playerid, 2.0, x, y, z ) )
            return true;
        else
            return false;
    }
    else
        print ( "Query failed." );
       
    return false;
}
Reply


Messages In This Thread
PlayerToPoint In MysQl Query - by LeNy - 02.01.2011, 12:04
Re: PlayerToPoint In MysQl Query - by kLx - 02.01.2011, 12:59

Forum Jump:


Users browsing this thread: 2 Guest(s)